mirror of
https://github.com/YACReader/yacreader
synced 2025-11-12 04:55:21 -05:00
added exclusive selection between folders and readlind lists views
This commit is contained in:
118
CHANGELOG.txt
Normal file
118
CHANGELOG.txt
Normal file
@ -0,0 +1,118 @@
|
||||
7.1.0
|
||||
A<EFBFBD>adida opci<63>n para resetear el rating de un comics
|
||||
Corregidos bugs que afectaban a la informaci<63>n de p<>gina.
|
||||
Corregido error que marcaba un comic terminado como empezado si se volv<6C>a a leer.
|
||||
A<EFBFBD>adidos 2 estados para las carpetas (Completo/Terminado)
|
||||
Corregido bug en la comunicaci<63>n YACReaderLibrary <-> YACReader
|
||||
A<EFBFBD>adidas las acciones relativas a los comics al men<65> contextual de la tabla de c<>mics.
|
||||
Corrgido bug que provocaba el crecimiento ilimatado del log del servidor
|
||||
Corregidos bugs menores
|
||||
|
||||
7.0.2 (S<>lo MacOSX)
|
||||
Eliminado el uso de Poppler en la versi<73>n de MacOSX
|
||||
Trabajo en traducciones.
|
||||
Corregidos bugs menores
|
||||
|
||||
7.0.1
|
||||
A<EFBFBD>adido QsLog a YACReader
|
||||
Corregido bug en la comunicaci<63>n YACReaderLibrary <-> YACReader
|
||||
|
||||
7.0 (Final)
|
||||
Corregidos eventos de teclado en algunos di<64>logos
|
||||
Corregido soporte para archivos Rar en sistemas Unix
|
||||
Corregidos problemas borrando c<>mics
|
||||
Mejorada la gesti<74>n de errores
|
||||
Corregida la comunicaci<63>n entre YACReader y YACReaderLibrary
|
||||
Corregida la toolBar en MacOSX
|
||||
Mejorada la compatabilidad de OpenGL en tarjetas NVIDIA
|
||||
Corregidos bugs menores
|
||||
|
||||
6.9 (No p<>blica)
|
||||
A<EFBFBD>adida la apertura autom<6F>tica del siguiente/anterior c<>mic al llegar al final/portada del c<>mic actual
|
||||
Corregido el comportamiento del di<64>logo de nueva versi<73>n detectada. Ahora avisa una vez al d<>a o si el usuario lo elige cada 14 d<>as.
|
||||
Corregido el ajuste a lo ancho del t<>tulo de la toolbar en YACReaderLibrary.
|
||||
A<EFBFBD>adido log a YACReaderLibrary (permitir<69> a los usuarios ofrecer m<>s informaci<63>n sobre sus bugs)
|
||||
Corregido bug en el historial de navegaci<63>n (y al editar comics) despu<70>s de usar el motor de b<>squeda.
|
||||
|
||||
6.8 (No p<>blica)
|
||||
Corregido bug que causaba un cierre inesperado despu<70>s de cambiar el modo de sincronizaci<63>n vertical (flow)
|
||||
Corregido bug que causaba que la toolbar en el visor no se pudiese ocultar/mostrar sin un c<>mic abierto
|
||||
Mejorada la gesti<74>n de errores al abrir c<>mics
|
||||
Corregidos algunos bugs relacionados con la apertura de c<>mics
|
||||
A<EFBFBD>adida funci<63>n de rating
|
||||
El visor ahora puede abrir archivos de imagen directamente. Si se abre un archivo de imagen se abre el directorio que lo contiene con todas las im<69>genes.
|
||||
Corregida la ordenaci<63>n de carpetas y c<>mics usada en la navegaci<63>n desde dispositivos iOS
|
||||
|
||||
6.7 (No p<>blica)
|
||||
A<EFBFBD>adidos nuevos campos en la base de datos para almacenar informaci<63>n adicional sobre c<>mics: rating, p<>gina actual, bookmarks y configuraci<63>n de imagen
|
||||
A<EFBFBD>adida comunicaci<63>n entre YACReaderLibrary y YACReader para poder almacenar el progreso de los c<>mics e informaci<63>n adicional
|
||||
|
||||
6.6 (No p<>blica)
|
||||
Modificado YACReader para que abra los archivos comprimidos usando 7z.dll (.so, .dylib)
|
||||
YACReader abre ahora los c<>mics por la <20>ltima p<>gina le<6C>da.
|
||||
Corregido bug que causaba que algunos c<>mics no se pudiesen abrir desde YACReaderLibrary en YACReader
|
||||
Corregido el modo en el que se actualizaba la "information label"
|
||||
|
||||
6.5
|
||||
Nueva interfaz principal de YACReaderLibrary y YACReader
|
||||
Corregido bug que causaba que el servidor no se activase en el primer arranque en MacOSX
|
||||
Corregido bug que causaba un fallo al cerrar YACReaderLibrary cada vez que se usaba el servidor
|
||||
Nuevo dise<73>o para el di<64>logo de propiedades de los c<>mics.
|
||||
A<EFBFBD>adida navegaci<63>n alante y atr<74>s de las carpetas visitadas.
|
||||
La edici<63>n del nombre de una biblioteca no fuerza ahora que se recargue la biblioteca
|
||||
Corregido el color de fondo en la lupa
|
||||
Nuevo bot<6F>n para ajustar a lo alto
|
||||
Eliminada la opci<63>n always on top
|
||||
Mostrar en carpeta contenedora arreglado en Windows y MacOSX
|
||||
|
||||
6.4 (No p<>blica)
|
||||
Normalizado el renderizado de p<>ginas en modo doble p<>gina
|
||||
A<EFBFBD>adida la funci<63>n de borrar c<>mics desde el disco duro
|
||||
Nuevos iconos de la barra de herramientas de c<>mics
|
||||
|
||||
6.3 (No p<>blica)
|
||||
Mejorada la gesti<74>n de errores relacionada con las bibliotecas
|
||||
A<EFBFBD>adido bot<6F>n que permite ocultar las portadas en la pantalla de importaci<63>n
|
||||
A<EFBFBD>adidos t<>tulos "Bibliotecas" y "Carpetas" a la barra de navegaci<63>n
|
||||
Nuevos iconos para seleccionar la carpeta ra<72>z, expandir y contraer todos.
|
||||
Bot<EFBFBD>n para cambiar el puerto del servidor por el usuario.
|
||||
Ahora las columnas de la lista de c<>mics pueden reordenarse
|
||||
Ahora YACReaderLibrary s<>lo permite una instancia ejecutandose.
|
||||
Columna le<6C>do a<>adida.
|
||||
Cambiado estilo de la lista de c<>mics
|
||||
Corregidos bugs relacionados con realizar operaciones sobre c<>mics cuando no hab<61>a ninguno seleccionado en la lista de c<>mics
|
||||
|
||||
6.2
|
||||
Nueva ventana de "bienvenida"
|
||||
Nueva ventana de importar/actualizar
|
||||
Nuevo control para la b<>squeda
|
||||
Nueva imagen para las marcas de c<>mics le<6C>dos (s<>lo en OpenGL)
|
||||
Cambiada la distribuci<63>n de algunos iconos
|
||||
Cambiado el modo de eliminar la metainformaci<63>n (borrar base de datos/portadas de disco)
|
||||
Ocultadas las opciones avanzadas de configuraci<63>n de YACReader Flow, accesibles ahora tras pulsar un bot<6F>n (di<64>logos de configuraci<63>n m<>s simples)
|
||||
|
||||
6.0.1 (No p<>blica)
|
||||
Corregido bug al usar las teclas Inicio/fin
|
||||
Corregido bug que al arrancar YACReaderLibrary por primera vez causaba que no se mostrasen las portadas (s<>lo bajo ciertas circunstancias)
|
||||
A<EFBFBD>adidos algunos atajos de teclado a YACReaderLibrary a los ya existentes
|
||||
|
||||
6.0
|
||||
|
||||
Mejorada la velocidad de inicio gracias al uso de /LTCG como opci<63>n de compilaci<63>n
|
||||
Corregido bug relacionado con OpenGL que causaba consumo excesivo de CPU en tarjetas NVidia
|
||||
A<EFBFBD>adidos iconos para cada tipo de archivo soportado en YACReaderLibrary
|
||||
Cambiado el icono "folder" en YACReaderLibrary
|
||||
A<EFBFBD>adida barra para ajustar el ancho de p<>gina en la toolbar de YACReader
|
||||
A<EFBFBD>adido widget para la information label
|
||||
A<EFBFBD>adido nuevo estilo visual a goToFlow
|
||||
A<EFBFBD>adidos filtros para controlar el brillo, el contraste y el valor gamma
|
||||
A<EFBFBD>adidas notificaciones de portada y <20>ltima p<>gina
|
||||
InformationLabel se muestra ahora en la esquina superiror derecha.
|
||||
InformationLabel se muestra en 3 tama<6D>os diferentes en funci<63>n de la resoluci<63>n
|
||||
Corregido bug que causaba que las marcas de c<>mic le<6C>do no se dibujasen adecuadamente.
|
||||
Se recuerda si se debe mostrar o no la "label" informaci<63>n.
|
||||
Corregido bug que provocaba el fallo de YACReader al pasar muy r<>pido las p<>ginas.
|
||||
A<EFBFBD>adida columna "Tama<6D>o" a la lista de c<>mics en YACReaderLibrary
|
||||
A<EFBFBD>adida la ordinaci<63>n "natural" de los comics que hay en directorio del c<>mic actual.
|
||||
Corregido bug que causaba que se abriese el c<>mic erroneo en YACReaderLibrary.
|
||||
Cambiado el modo en el que se cargan los lenguages, ahora se pueden a<>adir traducciones sin necesidad de recompilar.
|
||||
674
COPYING.txt
Normal file
674
COPYING.txt
Normal file
@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||
31
INSTALL.txt
Normal file
31
INSTALL.txt
Normal file
@ -0,0 +1,31 @@
|
||||
INSTALLATION GUIDE FOR LINUX USERS (BINARY PACKAGE)
|
||||
**********************************
|
||||
YACReader and YACReaderLibraries binaries are compiled under Ubuntu 13.10 and uses Qt5 and libpoppler-qt5.
|
||||
|
||||
|
||||
COMPILATION GUIDE FOR LINUX/UNIX USERS
|
||||
**********************************
|
||||
YACReader and YACReaderLibrary are build using qmake. To build and install the program, run:
|
||||
|
||||
qmake
|
||||
make
|
||||
make install
|
||||
|
||||
from the source dir. For seperate builds of YACReader or YACReaderLibrary, enter their respective subfolders and run the commands from there.
|
||||
|
||||
Build options:
|
||||
---------------------
|
||||
You can adjust the installation prefix as well als the path make install uses to install the files.
|
||||
Use "qmake PREFIX=DIR" to configure YACReader for your systems default prefix (for example "/", "/usr", "/usr/local").
|
||||
|
||||
For packaging purposes, you can use "make install INSTALL_ROOT=DIR" to install to a different location than the prefix.
|
||||
|
||||
Default values:
|
||||
|
||||
PREFIX=/usr
|
||||
INSTALL_ROOT=""
|
||||
|
||||
|
||||
DO YOU WANT TO HELP YACREADER?
|
||||
******************************
|
||||
If you have experience creating packages, please help to create a package for your favourite distro! Send me an e-mail to: info@yacreader.com
|
||||
249
QsLog/QsLog.cpp
Normal file
249
QsLog/QsLog.cpp
Normal file
@ -0,0 +1,249 @@
|
||||
// Copyright (c) 2013, Razvan Petru
|
||||
// All rights reserved.
|
||||
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
|
||||
// * Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright notice, this
|
||||
// list of conditions and the following disclaimer in the documentation and/or other
|
||||
// materials provided with the distribution.
|
||||
// * The name of the contributors may not be used to endorse or promote products
|
||||
// derived from this software without specific prior written permission.
|
||||
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
// IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
// OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
// OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include "QsLog.h"
|
||||
#include "QsLogDest.h"
|
||||
#ifdef QS_LOG_SEPARATE_THREAD
|
||||
#include <QThreadPool>
|
||||
#include <QRunnable>
|
||||
#endif
|
||||
#include <QMutex>
|
||||
#include <QVector>
|
||||
#include <QDateTime>
|
||||
#include <QtGlobal>
|
||||
#include <cassert>
|
||||
#include <cstdlib>
|
||||
#include <stdexcept>
|
||||
|
||||
namespace QsLogging
|
||||
{
|
||||
typedef QVector<DestinationPtr> DestinationList;
|
||||
|
||||
static const char TraceString[] = "TRACE";
|
||||
static const char DebugString[] = "DEBUG";
|
||||
static const char InfoString[] = "INFO ";
|
||||
static const char WarnString[] = "WARN ";
|
||||
static const char ErrorString[] = "ERROR";
|
||||
static const char FatalString[] = "FATAL";
|
||||
|
||||
// not using Qt::ISODate because we need the milliseconds too
|
||||
static const QString fmtDateTime("yyyy-MM-ddThh:mm:ss.zzz");
|
||||
|
||||
static Logger* sInstance = 0;
|
||||
|
||||
static const char* LevelToText(Level theLevel)
|
||||
{
|
||||
switch (theLevel) {
|
||||
case TraceLevel:
|
||||
return TraceString;
|
||||
case DebugLevel:
|
||||
return DebugString;
|
||||
case InfoLevel:
|
||||
return InfoString;
|
||||
case WarnLevel:
|
||||
return WarnString;
|
||||
case ErrorLevel:
|
||||
return ErrorString;
|
||||
case FatalLevel:
|
||||
return FatalString;
|
||||
case OffLevel:
|
||||
return "";
|
||||
default: {
|
||||
assert(!"bad log level");
|
||||
return InfoString;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef QS_LOG_SEPARATE_THREAD
|
||||
class LogWriterRunnable : public QRunnable
|
||||
{
|
||||
public:
|
||||
LogWriterRunnable(QString message, Level level);
|
||||
virtual void run();
|
||||
|
||||
private:
|
||||
QString mMessage;
|
||||
Level mLevel;
|
||||
};
|
||||
#endif
|
||||
|
||||
class LoggerImpl
|
||||
{
|
||||
public:
|
||||
LoggerImpl();
|
||||
|
||||
#ifdef QS_LOG_SEPARATE_THREAD
|
||||
QThreadPool threadPool;
|
||||
#endif
|
||||
QMutex logMutex;
|
||||
Level level;
|
||||
DestinationList destList;
|
||||
};
|
||||
|
||||
#ifdef QS_LOG_SEPARATE_THREAD
|
||||
LogWriterRunnable::LogWriterRunnable(QString message, Level level)
|
||||
: QRunnable()
|
||||
, mMessage(message)
|
||||
, mLevel(level)
|
||||
{
|
||||
}
|
||||
|
||||
void LogWriterRunnable::run()
|
||||
{
|
||||
Logger::instance().write(mMessage, mLevel);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
LoggerImpl::LoggerImpl()
|
||||
: level(InfoLevel)
|
||||
{
|
||||
// assume at least file + console
|
||||
destList.reserve(2);
|
||||
#ifdef QS_LOG_SEPARATE_THREAD
|
||||
threadPool.setMaxThreadCount(1);
|
||||
threadPool.setExpiryTimeout(-1);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Logger::Logger()
|
||||
: d(new LoggerImpl)
|
||||
{
|
||||
}
|
||||
|
||||
Logger& Logger::instance()
|
||||
{
|
||||
if (!sInstance)
|
||||
sInstance = new Logger;
|
||||
|
||||
return *sInstance;
|
||||
}
|
||||
|
||||
void Logger::destroyInstance()
|
||||
{
|
||||
delete sInstance;
|
||||
sInstance = 0;
|
||||
}
|
||||
|
||||
// tries to extract the level from a string log message. If available, conversionSucceeded will
|
||||
// contain the conversion result.
|
||||
Level Logger::levelFromLogMessage(const QString& logMessage, bool* conversionSucceeded)
|
||||
{
|
||||
if (conversionSucceeded)
|
||||
*conversionSucceeded = true;
|
||||
|
||||
if (logMessage.startsWith(QLatin1String(TraceString)))
|
||||
return TraceLevel;
|
||||
if (logMessage.startsWith(QLatin1String(DebugString)))
|
||||
return DebugLevel;
|
||||
if (logMessage.startsWith(QLatin1String(InfoString)))
|
||||
return InfoLevel;
|
||||
if (logMessage.startsWith(QLatin1String(WarnString)))
|
||||
return WarnLevel;
|
||||
if (logMessage.startsWith(QLatin1String(ErrorString)))
|
||||
return ErrorLevel;
|
||||
if (logMessage.startsWith(QLatin1String(FatalString)))
|
||||
return FatalLevel;
|
||||
|
||||
if (conversionSucceeded)
|
||||
*conversionSucceeded = false;
|
||||
return OffLevel;
|
||||
}
|
||||
|
||||
Logger::~Logger()
|
||||
{
|
||||
#ifdef QS_LOG_SEPARATE_THREAD
|
||||
d->threadPool.waitForDone();
|
||||
#endif
|
||||
delete d;
|
||||
d = 0;
|
||||
}
|
||||
|
||||
void Logger::addDestination(DestinationPtr destination)
|
||||
{
|
||||
assert(destination.data());
|
||||
d->destList.push_back(destination);
|
||||
}
|
||||
|
||||
void Logger::setLoggingLevel(Level newLevel)
|
||||
{
|
||||
d->level = newLevel;
|
||||
}
|
||||
|
||||
Level Logger::loggingLevel() const
|
||||
{
|
||||
return d->level;
|
||||
}
|
||||
|
||||
//! creates the complete log message and passes it to the logger
|
||||
void Logger::Helper::writeToLog()
|
||||
{
|
||||
const char* const levelName = LevelToText(level);
|
||||
const QString completeMessage(QString("%1 %2 %3")
|
||||
.arg(levelName)
|
||||
.arg(QDateTime::currentDateTime().toString(fmtDateTime))
|
||||
.arg(buffer)
|
||||
);
|
||||
|
||||
Logger::instance().enqueueWrite(completeMessage, level);
|
||||
}
|
||||
|
||||
Logger::Helper::~Helper()
|
||||
{
|
||||
try {
|
||||
writeToLog();
|
||||
}
|
||||
catch(std::exception&) {
|
||||
// you shouldn't throw exceptions from a sink
|
||||
assert(!"exception in logger helper destructor");
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
//! directs the message to the task queue or writes it directly
|
||||
void Logger::enqueueWrite(const QString& message, Level level)
|
||||
{
|
||||
#ifdef QS_LOG_SEPARATE_THREAD
|
||||
LogWriterRunnable *r = new LogWriterRunnable(message, level);
|
||||
d->threadPool.start(r);
|
||||
#else
|
||||
write(message, level);
|
||||
#endif
|
||||
}
|
||||
|
||||
//! Sends the message to all the destinations. The level for this message is passed in case
|
||||
//! it's useful for processing in the destination.
|
||||
void Logger::write(const QString& message, Level level)
|
||||
{
|
||||
QMutexLocker lock(&d->logMutex);
|
||||
for (DestinationList::iterator it = d->destList.begin(),
|
||||
endIt = d->destList.end();it != endIt;++it) {
|
||||
(*it)->write(message, level);
|
||||
}
|
||||
}
|
||||
|
||||
} // end namespace
|
||||
137
QsLog/QsLog.h
Normal file
137
QsLog/QsLog.h
Normal file
@ -0,0 +1,137 @@
|
||||
// Copyright (c) 2013, Razvan Petru
|
||||
// All rights reserved.
|
||||
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
|
||||
// * Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright notice, this
|
||||
// list of conditions and the following disclaimer in the documentation and/or other
|
||||
// materials provided with the distribution.
|
||||
// * The name of the contributors may not be used to endorse or promote products
|
||||
// derived from this software without specific prior written permission.
|
||||
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
// IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
// OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
// OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#ifndef QSLOG_H
|
||||
#define QSLOG_H
|
||||
|
||||
#include "QsLogLevel.h"
|
||||
#include "QsLogDest.h"
|
||||
#include <QDebug>
|
||||
#include <QString>
|
||||
|
||||
#define QS_LOG_VERSION "2.0b3"
|
||||
|
||||
namespace QsLogging
|
||||
{
|
||||
class Destination;
|
||||
class LoggerImpl; // d pointer
|
||||
|
||||
class QSLOG_SHARED_OBJECT Logger
|
||||
{
|
||||
public:
|
||||
static Logger& instance();
|
||||
static void destroyInstance();
|
||||
static Level levelFromLogMessage(const QString& logMessage, bool* conversionSucceeded = 0);
|
||||
|
||||
~Logger();
|
||||
|
||||
//! Adds a log message destination. Don't add null destinations.
|
||||
void addDestination(DestinationPtr destination);
|
||||
//! Logging at a level < 'newLevel' will be ignored
|
||||
void setLoggingLevel(Level newLevel);
|
||||
//! The default level is INFO
|
||||
Level loggingLevel() const;
|
||||
|
||||
//! The helper forwards the streaming to QDebug and builds the final
|
||||
//! log message.
|
||||
class QSLOG_SHARED_OBJECT Helper
|
||||
{
|
||||
public:
|
||||
explicit Helper(Level logLevel) :
|
||||
level(logLevel),
|
||||
qtDebug(&buffer) {}
|
||||
~Helper();
|
||||
QDebug& stream(){ return qtDebug; }
|
||||
|
||||
private:
|
||||
void writeToLog();
|
||||
|
||||
Level level;
|
||||
QString buffer;
|
||||
QDebug qtDebug;
|
||||
};
|
||||
|
||||
private:
|
||||
Logger();
|
||||
Logger(const Logger&); // not available
|
||||
Logger& operator=(const Logger&); // not available
|
||||
|
||||
void enqueueWrite(const QString& message, Level level);
|
||||
void write(const QString& message, Level level);
|
||||
|
||||
LoggerImpl* d;
|
||||
|
||||
friend class LogWriterRunnable;
|
||||
};
|
||||
|
||||
} // end namespace
|
||||
|
||||
//! Logging macros: define QS_LOG_LINE_NUMBERS to get the file and line number
|
||||
//! in the log output.
|
||||
#ifndef QS_LOG_LINE_NUMBERS
|
||||
#define QLOG_TRACE() \
|
||||
if (QsLogging::Logger::instance().loggingLevel() > QsLogging::TraceLevel) {} \
|
||||
else QsLogging::Logger::Helper(QsLogging::TraceLevel).stream()
|
||||
#define QLOG_DEBUG() \
|
||||
if (QsLogging::Logger::instance().loggingLevel() > QsLogging::DebugLevel) {} \
|
||||
else QsLogging::Logger::Helper(QsLogging::DebugLevel).stream()
|
||||
#define QLOG_INFO() \
|
||||
if (QsLogging::Logger::instance().loggingLevel() > QsLogging::InfoLevel) {} \
|
||||
else QsLogging::Logger::Helper(QsLogging::InfoLevel).stream()
|
||||
#define QLOG_WARN() \
|
||||
if (QsLogging::Logger::instance().loggingLevel() > QsLogging::WarnLevel) {} \
|
||||
else QsLogging::Logger::Helper(QsLogging::WarnLevel).stream()
|
||||
#define QLOG_ERROR() \
|
||||
if (QsLogging::Logger::instance().loggingLevel() > QsLogging::ErrorLevel) {} \
|
||||
else QsLogging::Logger::Helper(QsLogging::ErrorLevel).stream()
|
||||
#define QLOG_FATAL() \
|
||||
if (QsLogging::Logger::instance().loggingLevel() > QsLogging::FatalLevel) {} \
|
||||
else QsLogging::Logger::Helper(QsLogging::FatalLevel).stream()
|
||||
#else
|
||||
#define QLOG_TRACE() \
|
||||
if (QsLogging::Logger::instance().loggingLevel() > QsLogging::TraceLevel) {} \
|
||||
else QsLogging::Logger::Helper(QsLogging::TraceLevel).stream() << __FILE__ << '@' << __LINE__
|
||||
#define QLOG_DEBUG() \
|
||||
if (QsLogging::Logger::instance().loggingLevel() > QsLogging::DebugLevel) {} \
|
||||
else QsLogging::Logger::Helper(QsLogging::DebugLevel).stream() << __FILE__ << '@' << __LINE__
|
||||
#define QLOG_INFO() \
|
||||
if (QsLogging::Logger::instance().loggingLevel() > QsLogging::InfoLevel) {} \
|
||||
else QsLogging::Logger::Helper(QsLogging::InfoLevel).stream() << __FILE__ << '@' << __LINE__
|
||||
#define QLOG_WARN() \
|
||||
if (QsLogging::Logger::instance().loggingLevel() > QsLogging::WarnLevel) {} \
|
||||
else QsLogging::Logger::Helper(QsLogging::WarnLevel).stream() << __FILE__ << '@' << __LINE__
|
||||
#define QLOG_ERROR() \
|
||||
if (QsLogging::Logger::instance().loggingLevel() > QsLogging::ErrorLevel) {} \
|
||||
else QsLogging::Logger::Helper(QsLogging::ErrorLevel).stream() << __FILE__ << '@' << __LINE__
|
||||
#define QLOG_FATAL() \
|
||||
if (QsLogging::Logger::instance().loggingLevel() > QsLogging::FatalLevel) {} \
|
||||
else QsLogging::Logger::Helper(QsLogging::FatalLevel).stream() << __FILE__ << '@' << __LINE__
|
||||
#endif
|
||||
|
||||
#ifdef QS_LOG_DISABLE
|
||||
#include "QsLogDisableForThisFile.h"
|
||||
#endif
|
||||
|
||||
#endif // QSLOG_H
|
||||
22
QsLog/QsLog.pri
Normal file
22
QsLog/QsLog.pri
Normal file
@ -0,0 +1,22 @@
|
||||
INCLUDEPATH += $$PWD
|
||||
#DEFINES += QS_LOG_LINE_NUMBERS # automatically writes the file and line for each log message
|
||||
#DEFINES += QS_LOG_DISABLE # logging code is replaced with a no-op
|
||||
#DEFINES += QS_LOG_SEPARATE_THREAD # messages are queued and written from a separate thread
|
||||
SOURCES += $$PWD/QsLogDest.cpp \
|
||||
$$PWD/QsLog.cpp \
|
||||
$$PWD/QsLogDestConsole.cpp \
|
||||
$$PWD/QsLogDestFile.cpp \
|
||||
$$PWD/QsLogDestFunctor.cpp
|
||||
|
||||
HEADERS += $$PWD/QSLogDest.h \
|
||||
$$PWD/QsLog.h \
|
||||
$$PWD/QsLogDestConsole.h \
|
||||
$$PWD/QsLogLevel.h \
|
||||
$$PWD/QsLogDestFile.h \
|
||||
$$PWD/QsLogDisableForThisFile.h \
|
||||
$$PWD/QsLogDestFunctor.h
|
||||
|
||||
OTHER_FILES += \
|
||||
$$PWD/QsLogChanges.txt \
|
||||
$$PWD/QsLogReadme.txt \
|
||||
$$PWD/LICENSE.txt
|
||||
70
QsLog/QsLogDest.cpp
Normal file
70
QsLog/QsLogDest.cpp
Normal file
@ -0,0 +1,70 @@
|
||||
// Copyright (c) 2013, Razvan Petru
|
||||
// All rights reserved.
|
||||
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
|
||||
// * Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright notice, this
|
||||
// list of conditions and the following disclaimer in the documentation and/or other
|
||||
// materials provided with the distribution.
|
||||
// * The name of the contributors may not be used to endorse or promote products
|
||||
// derived from this software without specific prior written permission.
|
||||
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
// IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
// OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
// OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include "QsLogDest.h"
|
||||
#include "QsLogDestConsole.h"
|
||||
#include "QsLogDestFile.h"
|
||||
#include "QsLogDestFunctor.h"
|
||||
#include <QString>
|
||||
|
||||
namespace QsLogging
|
||||
{
|
||||
|
||||
Destination::~Destination()
|
||||
{
|
||||
}
|
||||
|
||||
//! destination factory
|
||||
DestinationPtr DestinationFactory::MakeFileDestination(const QString& filePath,
|
||||
LogRotationOption rotation, const MaxSizeBytes &sizeInBytesToRotateAfter,
|
||||
const MaxOldLogCount &oldLogsToKeep)
|
||||
{
|
||||
if (EnableLogRotation == rotation) {
|
||||
QScopedPointer<SizeRotationStrategy> logRotation(new SizeRotationStrategy);
|
||||
logRotation->setMaximumSizeInBytes(sizeInBytesToRotateAfter.size);
|
||||
logRotation->setBackupCount(oldLogsToKeep.count);
|
||||
|
||||
return DestinationPtr(new FileDestination(filePath, RotationStrategyPtr(logRotation.take())));
|
||||
}
|
||||
|
||||
return DestinationPtr(new FileDestination(filePath, RotationStrategyPtr(new NullRotationStrategy)));
|
||||
}
|
||||
|
||||
DestinationPtr DestinationFactory::MakeDebugOutputDestination()
|
||||
{
|
||||
return DestinationPtr(new DebugOutputDestination);
|
||||
}
|
||||
|
||||
DestinationPtr DestinationFactory::MakeFunctorDestination(QsLogging::Destination::LogFunction f)
|
||||
{
|
||||
return DestinationPtr(new FunctorDestination(f));
|
||||
}
|
||||
|
||||
DestinationPtr DestinationFactory::MakeFunctorDestination(QObject *receiver, const char *member)
|
||||
{
|
||||
return DestinationPtr(new FunctorDestination(receiver, member));
|
||||
}
|
||||
|
||||
} // end namespace
|
||||
99
QsLog/QsLogDest.h
Normal file
99
QsLog/QsLogDest.h
Normal file
@ -0,0 +1,99 @@
|
||||
// Copyright (c) 2013, Razvan Petru
|
||||
// All rights reserved.
|
||||
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
|
||||
// * Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright notice, this
|
||||
// list of conditions and the following disclaimer in the documentation and/or other
|
||||
// materials provided with the distribution.
|
||||
// * The name of the contributors may not be used to endorse or promote products
|
||||
// derived from this software without specific prior written permission.
|
||||
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
// IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
// OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
// OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#ifndef QSLOGDEST_H
|
||||
#define QSLOGDEST_H
|
||||
|
||||
#include "QsLogLevel.h"
|
||||
#include <QSharedPointer>
|
||||
#include <QtGlobal>
|
||||
class QString;
|
||||
class QObject;
|
||||
|
||||
#ifdef QSLOG_IS_SHARED_LIBRARY
|
||||
#define QSLOG_SHARED_OBJECT Q_DECL_EXPORT
|
||||
#elif QSLOG_IS_SHARED_LIBRARY_IMPORT
|
||||
#define QSLOG_SHARED_OBJECT Q_DECL_IMPORT
|
||||
#else
|
||||
#define QSLOG_SHARED_OBJECT
|
||||
#endif
|
||||
|
||||
namespace QsLogging
|
||||
{
|
||||
|
||||
class QSLOG_SHARED_OBJECT Destination
|
||||
{
|
||||
public:
|
||||
typedef void (*LogFunction)(const QString &message, Level level);
|
||||
|
||||
public:
|
||||
virtual ~Destination();
|
||||
virtual void write(const QString& message, Level level) = 0;
|
||||
virtual bool isValid() = 0; // returns whether the destination was created correctly
|
||||
};
|
||||
typedef QSharedPointer<Destination> DestinationPtr;
|
||||
|
||||
|
||||
// a series of "named" paramaters, to make the file destination creation more readable
|
||||
enum LogRotationOption
|
||||
{
|
||||
DisableLogRotation = 0,
|
||||
EnableLogRotation = 1
|
||||
};
|
||||
|
||||
struct QSLOG_SHARED_OBJECT MaxSizeBytes
|
||||
{
|
||||
MaxSizeBytes() : size(0) {}
|
||||
explicit MaxSizeBytes(qint64 size_) : size(size_) {}
|
||||
qint64 size;
|
||||
};
|
||||
|
||||
struct QSLOG_SHARED_OBJECT MaxOldLogCount
|
||||
{
|
||||
MaxOldLogCount() : count(0) {}
|
||||
explicit MaxOldLogCount(int count_) : count(count_) {}
|
||||
int count;
|
||||
};
|
||||
|
||||
|
||||
//! Creates logging destinations/sinks. The caller shares ownership of the destinations with the logger.
|
||||
//! After being added to a logger, the caller can discard the pointers.
|
||||
class QSLOG_SHARED_OBJECT DestinationFactory
|
||||
{
|
||||
public:
|
||||
static DestinationPtr MakeFileDestination(const QString& filePath,
|
||||
LogRotationOption rotation = DisableLogRotation,
|
||||
const MaxSizeBytes &sizeInBytesToRotateAfter = MaxSizeBytes(),
|
||||
const MaxOldLogCount &oldLogsToKeep = MaxOldLogCount());
|
||||
static DestinationPtr MakeDebugOutputDestination();
|
||||
// takes a pointer to a function
|
||||
static DestinationPtr MakeFunctorDestination(Destination::LogFunction f);
|
||||
// takes a QObject + signal/slot
|
||||
static DestinationPtr MakeFunctorDestination(QObject *receiver, const char *member);
|
||||
};
|
||||
|
||||
} // end namespace
|
||||
|
||||
#endif // QSLOGDEST_H
|
||||
55
QsLog/QsLogDestConsole.cpp
Normal file
55
QsLog/QsLogDestConsole.cpp
Normal file
@ -0,0 +1,55 @@
|
||||
// Copyright (c) 2013, Razvan Petru
|
||||
// All rights reserved.
|
||||
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
|
||||
// * Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright notice, this
|
||||
// list of conditions and the following disclaimer in the documentation and/or other
|
||||
// materials provided with the distribution.
|
||||
// * The name of the contributors may not be used to endorse or promote products
|
||||
// derived from this software without specific prior written permission.
|
||||
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
// IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
// OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
// OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include "QsLogDestConsole.h"
|
||||
#include <QString>
|
||||
#include <QtGlobal>
|
||||
|
||||
#if defined(Q_OS_WIN)
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <Windows.h>
|
||||
void QsDebugOutput::output( const QString& message )
|
||||
{
|
||||
OutputDebugStringW(reinterpret_cast<const WCHAR*>(message.utf16()));
|
||||
OutputDebugStringW(L"\n");
|
||||
}
|
||||
#elif defined(Q_OS_UNIX)
|
||||
#include <cstdio>
|
||||
void QsDebugOutput::output( const QString& message )
|
||||
{
|
||||
fprintf(stderr, "%s\n", qPrintable(message));
|
||||
fflush(stderr);
|
||||
}
|
||||
#endif
|
||||
|
||||
void QsLogging::DebugOutputDestination::write(const QString& message, Level)
|
||||
{
|
||||
QsDebugOutput::output(message);
|
||||
}
|
||||
|
||||
bool QsLogging::DebugOutputDestination::isValid()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
52
QsLog/QsLogDestConsole.h
Normal file
52
QsLog/QsLogDestConsole.h
Normal file
@ -0,0 +1,52 @@
|
||||
// Copyright (c) 2013, Razvan Petru
|
||||
// All rights reserved.
|
||||
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
|
||||
// * Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright notice, this
|
||||
// list of conditions and the following disclaimer in the documentation and/or other
|
||||
// materials provided with the distribution.
|
||||
// * The name of the contributors may not be used to endorse or promote products
|
||||
// derived from this software without specific prior written permission.
|
||||
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
// IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
// OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
// OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#ifndef QSLOGDESTCONSOLE_H
|
||||
#define QSLOGDESTCONSOLE_H
|
||||
|
||||
#include "QsLogDest.h"
|
||||
|
||||
class QString;
|
||||
|
||||
class QsDebugOutput
|
||||
{
|
||||
public:
|
||||
static void output(const QString& a_message);
|
||||
};
|
||||
|
||||
namespace QsLogging
|
||||
{
|
||||
|
||||
// debugger sink
|
||||
class DebugOutputDestination : public Destination
|
||||
{
|
||||
public:
|
||||
virtual void write(const QString& message, Level level);
|
||||
virtual bool isValid();
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // QSLOGDESTCONSOLE_H
|
||||
155
QsLog/QsLogDestFile.cpp
Normal file
155
QsLog/QsLogDestFile.cpp
Normal file
@ -0,0 +1,155 @@
|
||||
// Copyright (c) 2013, Razvan Petru
|
||||
// All rights reserved.
|
||||
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
|
||||
// * Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright notice, this
|
||||
// list of conditions and the following disclaimer in the documentation and/or other
|
||||
// materials provided with the distribution.
|
||||
// * The name of the contributors may not be used to endorse or promote products
|
||||
// derived from this software without specific prior written permission.
|
||||
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
// IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
// OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
// OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include "QsLogDestFile.h"
|
||||
#include <QTextCodec>
|
||||
#include <QDateTime>
|
||||
#include <QtGlobal>
|
||||
#include <iostream>
|
||||
|
||||
const int QsLogging::SizeRotationStrategy::MaxBackupCount = 10;
|
||||
|
||||
QsLogging::RotationStrategy::~RotationStrategy()
|
||||
{
|
||||
}
|
||||
|
||||
QsLogging::SizeRotationStrategy::SizeRotationStrategy()
|
||||
: mCurrentSizeInBytes(0)
|
||||
, mMaxSizeInBytes(0)
|
||||
, mBackupsCount(0)
|
||||
{
|
||||
}
|
||||
|
||||
void QsLogging::SizeRotationStrategy::setInitialInfo(const QFile &file)
|
||||
{
|
||||
mFileName = file.fileName();
|
||||
mCurrentSizeInBytes = file.size();
|
||||
}
|
||||
|
||||
void QsLogging::SizeRotationStrategy::includeMessageInCalculation(const QString &message)
|
||||
{
|
||||
mCurrentSizeInBytes += message.toUtf8().size();
|
||||
}
|
||||
|
||||
bool QsLogging::SizeRotationStrategy::shouldRotate()
|
||||
{
|
||||
return mCurrentSizeInBytes > mMaxSizeInBytes;
|
||||
}
|
||||
|
||||
// Algorithm assumes backups will be named filename.X, where 1 <= X <= mBackupsCount.
|
||||
// All X's will be shifted up.
|
||||
void QsLogging::SizeRotationStrategy::rotate()
|
||||
{
|
||||
if (!mBackupsCount) {
|
||||
if (!QFile::remove(mFileName))
|
||||
std::cerr << "QsLog: backup delete failed " << qPrintable(mFileName);
|
||||
return;
|
||||
}
|
||||
|
||||
// 1. find the last existing backup than can be shifted up
|
||||
const QString logNamePattern = mFileName + QString::fromUtf8(".%1");
|
||||
int lastExistingBackupIndex = 0;
|
||||
for (int i = 1;i <= mBackupsCount;++i) {
|
||||
const QString backupFileName = logNamePattern.arg(i);
|
||||
if (QFile::exists(backupFileName))
|
||||
lastExistingBackupIndex = qMin(i, mBackupsCount - 1);
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
||||
// 2. shift up
|
||||
for (int i = lastExistingBackupIndex;i >= 1;--i) {
|
||||
const QString oldName = logNamePattern.arg(i);
|
||||
const QString newName = logNamePattern.arg(i + 1);
|
||||
QFile::remove(newName);
|
||||
const bool renamed = QFile::rename(oldName, newName);
|
||||
if (!renamed) {
|
||||
std::cerr << "QsLog: could not rename backup " << qPrintable(oldName)
|
||||
<< " to " << qPrintable(newName);
|
||||
}
|
||||
}
|
||||
|
||||
// 3. rename current log file
|
||||
const QString newName = logNamePattern.arg(1);
|
||||
if (QFile::exists(newName))
|
||||
QFile::remove(newName);
|
||||
if (!QFile::rename(mFileName, newName)) {
|
||||
std::cerr << "QsLog: could not rename log " << qPrintable(mFileName)
|
||||
<< " to " << qPrintable(newName);
|
||||
}
|
||||
}
|
||||
|
||||
QIODevice::OpenMode QsLogging::SizeRotationStrategy::recommendedOpenModeFlag()
|
||||
{
|
||||
return QIODevice::Append;
|
||||
}
|
||||
|
||||
void QsLogging::SizeRotationStrategy::setMaximumSizeInBytes(qint64 size)
|
||||
{
|
||||
Q_ASSERT(size >= 0);
|
||||
mMaxSizeInBytes = size;
|
||||
}
|
||||
|
||||
void QsLogging::SizeRotationStrategy::setBackupCount(int backups)
|
||||
{
|
||||
Q_ASSERT(backups >= 0);
|
||||
mBackupsCount = qMin(backups, SizeRotationStrategy::MaxBackupCount);
|
||||
}
|
||||
|
||||
|
||||
QsLogging::FileDestination::FileDestination(const QString& filePath, RotationStrategyPtr rotationStrategy)
|
||||
: mRotationStrategy(rotationStrategy)
|
||||
{
|
||||
mFile.setFileName(filePath);
|
||||
if (!mFile.open(QFile::WriteOnly | QFile::Text | mRotationStrategy->recommendedOpenModeFlag()))
|
||||
std::cerr << "QsLog: could not open log file " << qPrintable(filePath);
|
||||
mOutputStream.setDevice(&mFile);
|
||||
mOutputStream.setCodec(QTextCodec::codecForName("UTF-8"));
|
||||
|
||||
mRotationStrategy->setInitialInfo(mFile);
|
||||
}
|
||||
|
||||
void QsLogging::FileDestination::write(const QString& message, Level)
|
||||
{
|
||||
mRotationStrategy->includeMessageInCalculation(message);
|
||||
if (mRotationStrategy->shouldRotate()) {
|
||||
mOutputStream.setDevice(NULL);
|
||||
mFile.close();
|
||||
mRotationStrategy->rotate();
|
||||
if (!mFile.open(QFile::WriteOnly | QFile::Text | mRotationStrategy->recommendedOpenModeFlag()))
|
||||
std::cerr << "QsLog: could not reopen log file " << qPrintable(mFile.fileName());
|
||||
mRotationStrategy->setInitialInfo(mFile);
|
||||
mOutputStream.setDevice(&mFile);
|
||||
}
|
||||
|
||||
mOutputStream << message << endl;
|
||||
mOutputStream.flush();
|
||||
}
|
||||
|
||||
bool QsLogging::FileDestination::isValid()
|
||||
{
|
||||
return mFile.isOpen();
|
||||
}
|
||||
|
||||
101
QsLog/QsLogDestFile.h
Normal file
101
QsLog/QsLogDestFile.h
Normal file
@ -0,0 +1,101 @@
|
||||
// Copyright (c) 2013, Razvan Petru
|
||||
// All rights reserved.
|
||||
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
|
||||
// * Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright notice, this
|
||||
// list of conditions and the following disclaimer in the documentation and/or other
|
||||
// materials provided with the distribution.
|
||||
// * The name of the contributors may not be used to endorse or promote products
|
||||
// derived from this software without specific prior written permission.
|
||||
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
// IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
// OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
// OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#ifndef QSLOGDESTFILE_H
|
||||
#define QSLOGDESTFILE_H
|
||||
|
||||
#include "QsLogDest.h"
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QtGlobal>
|
||||
#include <QSharedPointer>
|
||||
|
||||
namespace QsLogging
|
||||
{
|
||||
class RotationStrategy
|
||||
{
|
||||
public:
|
||||
virtual ~RotationStrategy();
|
||||
|
||||
virtual void setInitialInfo(const QFile &file) = 0;
|
||||
virtual void includeMessageInCalculation(const QString &message) = 0;
|
||||
virtual bool shouldRotate() = 0;
|
||||
virtual void rotate() = 0;
|
||||
virtual QIODevice::OpenMode recommendedOpenModeFlag() = 0;
|
||||
};
|
||||
|
||||
// Never rotates file, overwrites existing file.
|
||||
class NullRotationStrategy : public RotationStrategy
|
||||
{
|
||||
public:
|
||||
virtual void setInitialInfo(const QFile &) {}
|
||||
virtual void includeMessageInCalculation(const QString &) {}
|
||||
virtual bool shouldRotate() { return false; }
|
||||
virtual void rotate() {}
|
||||
virtual QIODevice::OpenMode recommendedOpenModeFlag() { return QIODevice::Truncate; }
|
||||
};
|
||||
|
||||
// Rotates after a size is reached, keeps a number of <= 10 backups, appends to existing file.
|
||||
class SizeRotationStrategy : public RotationStrategy
|
||||
{
|
||||
public:
|
||||
SizeRotationStrategy();
|
||||
static const int MaxBackupCount;
|
||||
|
||||
virtual void setInitialInfo(const QFile &file);
|
||||
virtual void includeMessageInCalculation(const QString &message);
|
||||
virtual bool shouldRotate();
|
||||
virtual void rotate();
|
||||
virtual QIODevice::OpenMode recommendedOpenModeFlag();
|
||||
|
||||
void setMaximumSizeInBytes(qint64 size);
|
||||
void setBackupCount(int backups);
|
||||
|
||||
private:
|
||||
QString mFileName;
|
||||
qint64 mCurrentSizeInBytes;
|
||||
qint64 mMaxSizeInBytes;
|
||||
int mBackupsCount;
|
||||
};
|
||||
|
||||
typedef QSharedPointer<RotationStrategy> RotationStrategyPtr;
|
||||
|
||||
// file message sink
|
||||
class FileDestination : public Destination
|
||||
{
|
||||
public:
|
||||
FileDestination(const QString& filePath, RotationStrategyPtr rotationStrategy);
|
||||
virtual void write(const QString& message, Level level);
|
||||
virtual bool isValid();
|
||||
|
||||
private:
|
||||
QFile mFile;
|
||||
QTextStream mOutputStream;
|
||||
QSharedPointer<RotationStrategy> mRotationStrategy;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // QSLOGDESTFILE_H
|
||||
57
QsLog/QsLogDestFunctor.cpp
Normal file
57
QsLog/QsLogDestFunctor.cpp
Normal file
@ -0,0 +1,57 @@
|
||||
// Copyright (c) 2014, Razvan Petru
|
||||
// Copyright (c) 2014, Omar Carey
|
||||
// All rights reserved.
|
||||
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
|
||||
// * Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright notice, this
|
||||
// list of conditions and the following disclaimer in the documentation and/or other
|
||||
// materials provided with the distribution.
|
||||
// * The name of the contributors may not be used to endorse or promote products
|
||||
// derived from this software without specific prior written permission.
|
||||
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
// IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
// OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
// OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include "QsLogDestFunctor.h"
|
||||
#include <cstddef>
|
||||
#include <QtGlobal>
|
||||
|
||||
QsLogging::FunctorDestination::FunctorDestination(LogFunction f)
|
||||
: QObject(NULL)
|
||||
, mLogFunction(f)
|
||||
{
|
||||
}
|
||||
|
||||
QsLogging::FunctorDestination::FunctorDestination(QObject *receiver, const char *member)
|
||||
: QObject(NULL)
|
||||
, mLogFunction(NULL)
|
||||
{
|
||||
connect(this, SIGNAL(logMessageReady(QString,int)), receiver, member, Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
|
||||
void QsLogging::FunctorDestination::write(const QString &message, QsLogging::Level level)
|
||||
{
|
||||
if (mLogFunction)
|
||||
mLogFunction(message, level);
|
||||
|
||||
if (level > QsLogging::TraceLevel)
|
||||
emit logMessageReady(message, static_cast<int>(level));
|
||||
}
|
||||
|
||||
bool QsLogging::FunctorDestination::isValid()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
59
QsLog/QsLogDestFunctor.h
Normal file
59
QsLog/QsLogDestFunctor.h
Normal file
@ -0,0 +1,59 @@
|
||||
// Copyright (c) 2014, Razvan Petru
|
||||
// Copyright (c) 2014, Omar Carey
|
||||
// All rights reserved.
|
||||
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
|
||||
// * Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright notice, this
|
||||
// list of conditions and the following disclaimer in the documentation and/or other
|
||||
// materials provided with the distribution.
|
||||
// * The name of the contributors may not be used to endorse or promote products
|
||||
// derived from this software without specific prior written permission.
|
||||
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
// IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
// OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
// OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#ifndef QSLOGDESTFUNCTOR_H
|
||||
#define QSLOGDESTFUNCTOR_H
|
||||
|
||||
#include "QsLogDest.h"
|
||||
#include <QObject>
|
||||
|
||||
namespace QsLogging
|
||||
{
|
||||
// Offers various types of function-like sinks.
|
||||
// This is an advanced destination type. Depending on your configuration, LogFunction might be
|
||||
// called from a different thread or even a different binary. You should not access QsLog from
|
||||
// inside LogFunction and should not perform any time-consuming operations.
|
||||
// logMessageReady is connected through a queued connection and trace messages are not included
|
||||
class FunctorDestination : public QObject, public Destination
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit FunctorDestination(LogFunction f);
|
||||
FunctorDestination(QObject *receiver, const char *member);
|
||||
|
||||
virtual void write(const QString &message, Level level);
|
||||
virtual bool isValid();
|
||||
|
||||
protected:
|
||||
// int used to avoid registering a new enum type
|
||||
Q_SIGNAL void logMessageReady(const QString &message, int level);
|
||||
|
||||
private:
|
||||
LogFunction mLogFunction;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // QSLOGDESTFUNCTOR_H
|
||||
22
QsLog/QsLogDisableForThisFile.h
Normal file
22
QsLog/QsLogDisableForThisFile.h
Normal file
@ -0,0 +1,22 @@
|
||||
#ifndef QSLOGDISABLEFORTHISFILE_H
|
||||
#define QSLOGDISABLEFORTHISFILE_H
|
||||
|
||||
#include <QtDebug>
|
||||
// When included AFTER QsLog.h, this file will disable logging in that C++ file. When included
|
||||
// before, it will lead to compiler warnings or errors about macro redefinitions.
|
||||
|
||||
#undef QLOG_TRACE
|
||||
#undef QLOG_DEBUG
|
||||
#undef QLOG_INFO
|
||||
#undef QLOG_WARN
|
||||
#undef QLOG_ERROR
|
||||
#undef QLOG_FATAL
|
||||
|
||||
#define QLOG_TRACE() if (1) {} else qDebug()
|
||||
#define QLOG_DEBUG() if (1) {} else qDebug()
|
||||
#define QLOG_INFO() if (1) {} else qDebug()
|
||||
#define QLOG_WARN() if (1) {} else qDebug()
|
||||
#define QLOG_ERROR() if (1) {} else qDebug()
|
||||
#define QLOG_FATAL() if (1) {} else qDebug()
|
||||
|
||||
#endif // QSLOGDISABLEFORTHISFILE_H
|
||||
45
QsLog/QsLogLevel.h
Normal file
45
QsLog/QsLogLevel.h
Normal file
@ -0,0 +1,45 @@
|
||||
// Copyright (c) 2013, Razvan Petru
|
||||
// All rights reserved.
|
||||
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
|
||||
// * Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright notice, this
|
||||
// list of conditions and the following disclaimer in the documentation and/or other
|
||||
// materials provided with the distribution.
|
||||
// * The name of the contributors may not be used to endorse or promote products
|
||||
// derived from this software without specific prior written permission.
|
||||
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
// IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
// OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
// OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#ifndef QSLOGLEVEL_H
|
||||
#define QSLOGLEVEL_H
|
||||
|
||||
namespace QsLogging
|
||||
{
|
||||
|
||||
enum Level
|
||||
{
|
||||
TraceLevel = 0,
|
||||
DebugLevel,
|
||||
InfoLevel,
|
||||
WarnLevel,
|
||||
ErrorLevel,
|
||||
FatalLevel,
|
||||
OffLevel
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // QSLOGLEVEL_H
|
||||
35
QsLog/QsLogSharedLibrary.pro
Normal file
35
QsLog/QsLogSharedLibrary.pro
Normal file
@ -0,0 +1,35 @@
|
||||
# This pro file will build QsLog as a shared library
|
||||
include(QsLog.pri)
|
||||
|
||||
TARGET = QsLog
|
||||
VERSION = "2.0.0"
|
||||
QT -= gui
|
||||
CONFIG -= console
|
||||
CONFIG -= app_bundle
|
||||
CONFIG += shared
|
||||
TEMPLATE = lib
|
||||
|
||||
DESTDIR = $$PWD/build-QsLogShared
|
||||
OBJECTS_DIR = $$DESTDIR/obj
|
||||
MOC_DIR = $$DESTDIR/moc
|
||||
|
||||
win32 {
|
||||
DEFINES += QSLOG_IS_SHARED_LIBRARY
|
||||
}
|
||||
|
||||
unix:!macx {
|
||||
# make install will install the shared object in the appropriate folders
|
||||
headers.files = QsLog.h QsLogDest.h QsLogLevel.h
|
||||
headers.path = /usr/include/$(QMAKE_TARGET)
|
||||
|
||||
other_files.files = *.txt
|
||||
other_files.path = /usr/local/share/$(QMAKE_TARGET)
|
||||
|
||||
contains(QT_ARCH, x86_64) {
|
||||
target.path = /usr/lib64
|
||||
} else {
|
||||
target.path = /usr/lib
|
||||
}
|
||||
|
||||
INSTALLS += headers target other_files
|
||||
}
|
||||
22
README.txt
Normal file
22
README.txt
Normal file
@ -0,0 +1,22 @@
|
||||
LICENSE
|
||||
*******
|
||||
This software has been developed by Luis <20>ngel San Mart<72>n Rodr<64>guez (luisangelsm@gmail.com) under GPL v3 license
|
||||
(for more details read COPYING.txt).
|
||||
|
||||
CONTACT
|
||||
*******
|
||||
Project home page : www.yacreader.com
|
||||
e-mail:
|
||||
info@yacreader.com
|
||||
support@yacreader.com
|
||||
Social:
|
||||
Facebook - http://www.facebook.com/YACReader
|
||||
Twitter - https://twitter.com/yacreader
|
||||
YouTube - https://www.youtube.com/user/yacreader
|
||||
|
||||
If you need help or have any suggestion, please, send me an e-mail.
|
||||
|
||||
DONATIONS
|
||||
*********
|
||||
YACReader is free but it needs money to still be alive, so please,
|
||||
if you like YACReader, visit the home page and make a donation.
|
||||
50
YACReader.1
Normal file
50
YACReader.1
Normal file
@ -0,0 +1,50 @@
|
||||
.\" Manpage for YACReader.
|
||||
.\" Contact yoann.gauthier9@gmail.com to correct errors or typos.
|
||||
.TH man 1 "28 September 2014" "2.0" "YACReader man page"
|
||||
.SH NAME
|
||||
YACReader \- launch YACReader application.
|
||||
.SH SYNOPSIS
|
||||
YACReader [\fBFile\fR | \fBDirectory\fR]
|
||||
.br
|
||||
YACReader [\fB\-h\fR | \fB\-\-help\fR]
|
||||
.br
|
||||
YACReader [\fB\-v\fR | \fB\-\-version\fR]
|
||||
.SH DESCRIPTION
|
||||
YACReader is a free cross-platform comic reader with support for multiple comic files and image formats.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.BR File
|
||||
Open comic file.
|
||||
.TP
|
||||
.BR Directory
|
||||
Open comic directory.
|
||||
.TP
|
||||
.BR \-h, \-\- help
|
||||
Display this text and exit.
|
||||
.TP
|
||||
.BR \-v, \-\- version
|
||||
Display version information and exit.
|
||||
.SH FEATURES
|
||||
- rar, zip, cbr, cbz, tar, pdf, 7z and cb7 comics support with compatibility for jpeg, gif, png, tiff and bmp images.
|
||||
.TP
|
||||
- Fast and easy to use.
|
||||
.TP
|
||||
- Use your keyboard or mouse for easy navigation.
|
||||
.TP
|
||||
- Fully customizable magnifying glass.
|
||||
.TP
|
||||
- Image rotation, double page mode, full size view, fullscreen mode, customizable background color and more.
|
||||
.TP
|
||||
- Bookmarks and resume reading.
|
||||
.TP
|
||||
- Find any page easily and quickly with "go to flow", a customizable eye candy effect for browsing comic pages.
|
||||
.SH CONTACTS
|
||||
To report bug or contact developpers, send a mail to :
|
||||
.RS 3
|
||||
.TP
|
||||
\fBinfo@yacreader.com\fR : for general information or suggestions about YACReader.
|
||||
.TP
|
||||
\fBsupport@yacreader.com\fR : for problems with YACReader or bugs detected.
|
||||
.RE
|
||||
.SH AUTHOR
|
||||
Luis Ángel San Martín Rodríguez (luisangelsm@gmail.com)
|
||||
13
YACReader.desktop
Normal file
13
YACReader.desktop
Normal file
@ -0,0 +1,13 @@
|
||||
[Desktop Entry]
|
||||
Name=YACReader
|
||||
GenericName=Yet Another Comic Reader
|
||||
Comment=A comic reader with support for .cb*, .pdf and whole directories.
|
||||
Exec=YACReader %f
|
||||
Icon=/usr/share/yacreader/icon.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
StartupNotify=true
|
||||
Categories=Graphics;Viewer;
|
||||
MimeType=application/x-cbz;application/x-cbr;application/x-cbt;application/x-cb7;application/x-pdf;application/x-zip;application/x-rar;application/x-7z;inode/directory;
|
||||
Keywords=comic;viewer;pdf;reader;
|
||||
X-Desktop-File-Install-Version=0.22
|
||||
3
YACReader.pro
Normal file
3
YACReader.pro
Normal file
@ -0,0 +1,3 @@
|
||||
TEMPLATE = subdirs
|
||||
SUBDIRS = YACReader YACReaderLibrary
|
||||
YACReaderLibrary.depends = YACReader
|
||||
BIN
YACReader/YACReader.icns
Normal file
BIN
YACReader/YACReader.icns
Normal file
Binary file not shown.
148
YACReader/YACReader.pri
Normal file
148
YACReader/YACReader.pri
Normal file
@ -0,0 +1,148 @@
|
||||
INCLUDEPATH += $$PWD
|
||||
DEPENDPATH += $$PWD
|
||||
INCLUDEPATH += .
|
||||
INCLUDEPATH += $$PWD/../common \
|
||||
$$PWD/../custom_widgets
|
||||
|
||||
win32 {
|
||||
LIBS += -L$$PWD/../dependencies/poppler/lib -loleaut32 -lole32
|
||||
|
||||
isEqual(QT_MAJOR_VERSION, 5) {
|
||||
LIBS += -lpoppler-qt5
|
||||
INCLUDEPATH += ../dependencies/poppler/include/qt5
|
||||
}
|
||||
else {
|
||||
LIBS += -lpoppler-qt4
|
||||
INCLUDEPATH += ../dependencies/poppler/include/qt4
|
||||
}
|
||||
|
||||
QMAKE_CXXFLAGS_RELEASE += /MP /Ob2 /Oi /Ot /GT /GL
|
||||
QMAKE_LFLAGS_RELEASE += /LTCG
|
||||
CONFIG -= embed_manifest_exe
|
||||
}
|
||||
|
||||
unix:!macx{
|
||||
|
||||
isEqual(QT_MAJOR_VERSION, 5) {
|
||||
INCLUDEPATH += /usr/include/poppler/qt5
|
||||
LIBS += -L/usr/lib -lpoppler-qt5
|
||||
}
|
||||
else {
|
||||
INCLUDEPATH += /usr/include/poppler/qt4
|
||||
LIBS += -L/usr/lib -lpoppler-qt4
|
||||
|
||||
}
|
||||
LIBS += -lGLU
|
||||
}
|
||||
|
||||
macx{
|
||||
#INCLUDEPATH += "/Volumes/Mac OS X Lion/usr/X11/include"
|
||||
#isEqual(QT_MAJOR_VERSION, 5) {
|
||||
#INCLUDEPATH += /usr/local/include/poppler/qt5
|
||||
#LIBS += -L/usr/local/lib -lpoppler-qt5
|
||||
#}
|
||||
#else {
|
||||
#INCLUDEPATH += /usr/local/include/poppler/qt4
|
||||
#LIBS += -L/usr/local/lib -lpoppler-qt4
|
||||
#}
|
||||
CONFIG += objective_c
|
||||
QT += macextras gui-private
|
||||
|
||||
|
||||
LIBS += -framework Foundation -framework ApplicationServices -framework AppKit
|
||||
|
||||
OBJECTIVE_SOURCES += $$PWD/../common/pdf_comic.mm
|
||||
HEADERS += $$PWD/../common/pdf_comic.h
|
||||
|
||||
|
||||
}
|
||||
|
||||
QT += network opengl
|
||||
#CONFIG += release
|
||||
CONFIG -= flat
|
||||
|
||||
isEqual(QT_MAJOR_VERSION, 5) {
|
||||
QT += multimedia
|
||||
} else {
|
||||
QT += phonon
|
||||
}
|
||||
|
||||
# Input
|
||||
HEADERS += $$PWD/../common/comic.h \
|
||||
$$PWD/configuration.h \
|
||||
$$PWD/goto_dialog.h \
|
||||
$$PWD/magnifying_glass.h \
|
||||
$$PWD/main_window_viewer.h \
|
||||
$$PWD/viewer.h \
|
||||
$$PWD/goto_flow.h \
|
||||
$$PWD/options_dialog.h \
|
||||
$$PWD/../common/bookmarks.h \
|
||||
$$PWD/bookmarks_dialog.h \
|
||||
$$PWD/render.h \
|
||||
$$PWD/shortcuts_dialog.h \
|
||||
$$PWD/translator.h \
|
||||
$$PWD/goto_flow_gl.h \
|
||||
$$PWD/goto_flow_widget.h \
|
||||
$$PWD/page_label_widget.h \
|
||||
$$PWD/goto_flow_toolbar.h \
|
||||
$$PWD/goto_flow_decorationbar.h \
|
||||
$$PWD/width_slider.h \
|
||||
$$PWD/notifications_label_widget.h \
|
||||
$$PWD/../common/pictureflow.h \
|
||||
$$PWD/../common/custom_widgets.h \
|
||||
$$PWD/../common/check_new_version.h \
|
||||
$$PWD/../common/qnaturalsorting.h \
|
||||
$$PWD/../common/yacreader_flow_gl.h \
|
||||
$$PWD/../common/yacreader_global.h \
|
||||
$$PWD/../common/onstart_flow_selection_dialog.h \
|
||||
$$PWD/../common/comic_db.h \
|
||||
$$PWD/../common/folder.h \
|
||||
$$PWD/../common/library_item.h \
|
||||
$$PWD/yacreader_local_client.h \
|
||||
$$PWD/../common/http_worker.h \
|
||||
$$PWD/../common/exit_check.h \
|
||||
|
||||
SOURCES += $$PWD/../common/comic.cpp \
|
||||
$$PWD/configuration.cpp \
|
||||
$$PWD/goto_dialog.cpp \
|
||||
$$PWD/magnifying_glass.cpp \
|
||||
$$PWD/main_window_viewer.cpp \
|
||||
$$PWD/viewer.cpp \
|
||||
$$PWD/goto_flow.cpp \
|
||||
$$PWD/options_dialog.cpp \
|
||||
$$PWD/../common/bookmarks.cpp \
|
||||
$$PWD/bookmarks_dialog.cpp \
|
||||
$$PWD/render.cpp \
|
||||
$$PWD/shortcuts_dialog.cpp \
|
||||
$$PWD/translator.cpp \
|
||||
$$PWD/goto_flow_gl.cpp \
|
||||
$$PWD/goto_flow_widget.cpp \
|
||||
$$PWD/page_label_widget.cpp \
|
||||
$$PWD/goto_flow_toolbar.cpp \
|
||||
$$PWD/goto_flow_decorationbar.cpp \
|
||||
$$PWD/width_slider.cpp \
|
||||
$$PWD/notifications_label_widget.cpp \
|
||||
$$PWD/../common/pictureflow.cpp \
|
||||
$$PWD/../common/custom_widgets.cpp \
|
||||
$$PWD/../common/check_new_version.cpp \
|
||||
$$PWD/../common/qnaturalsorting.cpp \
|
||||
$$PWD/../common/yacreader_flow_gl.cpp \
|
||||
$$PWD/../common/onstart_flow_selection_dialog.cpp \
|
||||
$$PWD/../common/comic_db.cpp \
|
||||
$$PWD/../common/folder.cpp \
|
||||
$$PWD/../common/library_item.cpp \
|
||||
$$PWD/yacreader_local_client.cpp \
|
||||
$$PWD/../common/http_worker.cpp \
|
||||
$$PWD/../common/yacreader_global.cpp \
|
||||
$$PWD/../common/exit_check.cpp \
|
||||
|
||||
include($$PWD/../custom_widgets/custom_widgets_yacreader.pri)
|
||||
include($$PWD/../compressed_archive/wrapper.pri)
|
||||
include($$PWD/../shortcuts_management/shortcuts_management.pri)
|
||||
|
||||
RESOURCES += $$PWD/yacreader_images.qrc \
|
||||
$$PWD/yacreader_files.qrc
|
||||
|
||||
win32:RESOURCES += $$PWD/yacreader_images_win.qrc
|
||||
unix:!macx:RESOURCES += $$PWD/yacreader_images_win.qrc
|
||||
macx:RESOURCES += $$PWD/yacreader_images_osx.qrc
|
||||
107
YACReader/YACReader.pro
Normal file
107
YACReader/YACReader.pro
Normal file
@ -0,0 +1,107 @@
|
||||
# #####################################################################
|
||||
# Automatically generated by qmake (2.01a) mi<EFBFBD> 8. oct 20:54:05 2008
|
||||
# #####################################################################
|
||||
TEMPLATE = app
|
||||
TARGET = YACReader
|
||||
DEPENDPATH += . \
|
||||
release
|
||||
|
||||
DEFINES += NOMINMAX YACREADER
|
||||
|
||||
unix:!macx{
|
||||
QMAKE_CXXFLAGS += -std=c++11
|
||||
}
|
||||
|
||||
isEqual(QT_MAJOR_VERSION, 5) {
|
||||
Release:DESTDIR = ../release5
|
||||
Debug:DESTDIR = ../debug5
|
||||
|
||||
} else {
|
||||
Release:DESTDIR = ../release
|
||||
Debug:DESTDIR = ../debug
|
||||
}
|
||||
|
||||
SOURCES += main.cpp
|
||||
include(YACReader.pri)
|
||||
include(../QsLog/QsLog.pri)
|
||||
|
||||
RC_FILE = icon.rc
|
||||
|
||||
macx {
|
||||
ICON = YACReader.icns
|
||||
}
|
||||
|
||||
TRANSLATIONS = yacreader_es.ts \
|
||||
yacreader_fr.ts \
|
||||
yacreader_ru.ts \
|
||||
yacreader_pt.ts \
|
||||
yacreader_nl.ts \
|
||||
yacreader_tr.ts \
|
||||
yacreader_de.ts \
|
||||
yacreader_source.ts
|
||||
|
||||
|
||||
win32 {
|
||||
!exists (../compressed_archive/lib7zip) {
|
||||
error(You\'ll need 7zip source code to compile YACReader. \
|
||||
Please check the compressed_archive folder for further instructions.)
|
||||
}
|
||||
}
|
||||
|
||||
unix {
|
||||
exists (../compressed_archive/libp7zip) {
|
||||
message(Found p7zip source code...)
|
||||
system(patch -d ../compressed_archive -N -p0 -i libp7zip.patch)
|
||||
} else {
|
||||
error(You\'ll need 7zip source code to compile YACReader. \
|
||||
Please check the compressed_archive folder for further instructions.)
|
||||
}
|
||||
}
|
||||
|
||||
unix:!macx {
|
||||
#set install prefix if it's empty
|
||||
isEmpty(PREFIX) {
|
||||
PREFIX = /usr
|
||||
}
|
||||
|
||||
BINDIR = $$PREFIX/bin
|
||||
LIBDIR = $$PREFIX/lib
|
||||
DATADIR = $$PREFIX/share
|
||||
|
||||
DEFINES += "LIBDIR=\\\"$$LIBDIR\\\"" "DATADIR=\\\"$$DATADIR\\\""
|
||||
|
||||
#MAKE INSTALL
|
||||
|
||||
INSTALLS += bin docs icon desktop translation manpage
|
||||
|
||||
bin.path = $$BINDIR
|
||||
isEmpty(DESTDIR) {
|
||||
bin.files = YACReader
|
||||
} else {
|
||||
bin.files = $$DESTDIR/YACReader
|
||||
}
|
||||
|
||||
docs.path = $$DATADIR/doc/yacreader
|
||||
|
||||
#rename docs for better packageability
|
||||
docs.extra = cp ../CHANGELOG.txt ../changelog; cp ../README.txt ../README
|
||||
docs.files = ../README ../changelog
|
||||
|
||||
icon.path = $$DATADIR/yacreader
|
||||
icon.files = ../images/icon.png
|
||||
|
||||
desktop.path = $$DATADIR/applications
|
||||
desktop.extra = desktop-file-edit --set-icon=$$DATADIR/yacreader/icon.png $$PWD/../YACReader.desktop
|
||||
desktop.files = ../YACReader.desktop
|
||||
|
||||
#TODO: icons should be located at /usr/share/icons and have the same basename as their application
|
||||
|
||||
translation.path = $$DATADIR/yacreader/languages
|
||||
translation.files = ../release/languages/yacreader_*
|
||||
|
||||
manpage.path = $$DATADIR/man/man1
|
||||
manpage.files = ../YACReader.1
|
||||
|
||||
#remove leftover doc files when 'make clean' is invoked
|
||||
QMAKE_CLEAN += "../changelog" "../README"
|
||||
}
|
||||
197
YACReader/bookmarks_dialog.cpp
Normal file
197
YACReader/bookmarks_dialog.cpp
Normal file
@ -0,0 +1,197 @@
|
||||
#include "bookmarks_dialog.h"
|
||||
|
||||
#include <QGridLayout>
|
||||
#include <QLabel>
|
||||
#include <QApplication>
|
||||
#include <QDesktopWidget>
|
||||
#include <QFrame>
|
||||
#include <QImage>
|
||||
|
||||
#include "bookmarks.h"
|
||||
|
||||
BookmarksDialog::BookmarksDialog(QWidget * parent)
|
||||
:QDialog(parent)
|
||||
{
|
||||
setModal(true);
|
||||
|
||||
//animation = new QPropertyAnimation(this,"windowOpacity");
|
||||
//animation->setDuration(150);
|
||||
|
||||
QHBoxLayout * layout = new QHBoxLayout();
|
||||
|
||||
//bookmarks
|
||||
QGridLayout * bookmarksL = new QGridLayout();
|
||||
|
||||
pages.push_back(new QLabel(tr("Lastest Page")));
|
||||
for(int i=0;i<3;i++)
|
||||
pages.push_back(new QLabel("-"));
|
||||
|
||||
QString labelsStyle = "QLabel {color:white;}";
|
||||
|
||||
foreach(QLabel * label,pages)
|
||||
{
|
||||
label->setStyleSheet(labelsStyle);
|
||||
}
|
||||
|
||||
int heightDesktopResolution = QApplication::desktop()->screenGeometry().height();
|
||||
int height,width;
|
||||
height = heightDesktopResolution*0.50;
|
||||
width = height*0.65;
|
||||
|
||||
coverSize = QSize(width,height);
|
||||
|
||||
for(int i=0;i<4;i++)
|
||||
{
|
||||
QLabel * l = new QLabel();
|
||||
l->setFixedSize(coverSize);
|
||||
l->setScaledContents(false);
|
||||
//l->setPixmap(QPixmap(":/images/notCover.png"));
|
||||
l->installEventFilter(this);
|
||||
images.push_back(l);
|
||||
}
|
||||
|
||||
for(int i=0;i<3;i++)
|
||||
bookmarksL->addWidget(pages.at(i+1),0,i,Qt::AlignCenter);
|
||||
|
||||
for(int i=0;i<3;i++)
|
||||
bookmarksL->addWidget(images.at(i+1),1,i,Qt::AlignCenter);
|
||||
|
||||
|
||||
//last page
|
||||
QGridLayout * lp = new QGridLayout();
|
||||
lp->addWidget(pages.at(0),0,0,Qt::AlignCenter);
|
||||
lp->addWidget(images.at(0),1,0,Qt::AlignCenter);
|
||||
|
||||
layout->addLayout(bookmarksL);
|
||||
QFrame *f = new QFrame( this );
|
||||
f->setFrameStyle( QFrame::VLine | QFrame::Sunken );
|
||||
layout->addWidget(f);
|
||||
layout->addLayout(lp);
|
||||
|
||||
QHBoxLayout * buttons = new QHBoxLayout();
|
||||
|
||||
cancel = new QPushButton(tr("Close"));
|
||||
cancel->setFlat(true);
|
||||
connect(cancel,SIGNAL(clicked()),this,SLOT(hide()));
|
||||
buttons->addStretch();
|
||||
buttons->addWidget(cancel);
|
||||
|
||||
cancel->setStyleSheet("QPushButton {border: 1px solid #242424; background: #2e2e2e; color:white; padding: 5px 26px 5px 26px; font-size:12px;font-family:Arial; font-weight:bold;}");
|
||||
|
||||
QVBoxLayout * l = new QVBoxLayout();
|
||||
|
||||
l->addWidget(new QLabel("<font color=\"#FFFFFF\">"+tr("Click on any image to go to the bookmark")+"</font>"),0,Qt::AlignCenter);
|
||||
l->addLayout(layout);
|
||||
#ifdef Q_OS_MAC
|
||||
l->addLayout(buttons);
|
||||
#endif
|
||||
|
||||
QPalette Pal(palette());
|
||||
// set black background
|
||||
Pal.setColor(QPalette::Background, QColor("#454545"));
|
||||
this->setAutoFillBackground(true);
|
||||
this->setPalette(Pal);
|
||||
|
||||
setLayout(l);
|
||||
}
|
||||
|
||||
void BookmarksDialog::setBookmarks(const Bookmarks & bm)
|
||||
{
|
||||
lastPage = bm.getLastPage();
|
||||
if (lastPage > 0)
|
||||
{
|
||||
QPixmap p = QPixmap::fromImage(bm.getLastPagePixmap());
|
||||
if(p.isNull())
|
||||
{
|
||||
images.at(0)->setAlignment(Qt::AlignHCenter|Qt::AlignVCenter);
|
||||
images.at(0)->setText(tr("Loading..."));
|
||||
}
|
||||
else
|
||||
{
|
||||
images.at(0)->setAlignment(Qt::AlignHCenter|Qt::AlignBottom);
|
||||
images.at(0)->setPixmap(p.scaled(coverSize,Qt::KeepAspectRatio,Qt::SmoothTransformation));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
images.at(0)->setAlignment(Qt::AlignHCenter|Qt::AlignVCenter);
|
||||
images.at(0)->setPixmap(QPixmap(":/images/notCover.png").scaled(coverSize,Qt::KeepAspectRatio,Qt::SmoothTransformation));
|
||||
|
||||
}
|
||||
|
||||
QList<int> l = bm.getBookmarkPages();
|
||||
int s = l.count();
|
||||
for(int i=0;i<s;i++)
|
||||
{
|
||||
pages.at(i+1)->setText(QString::number(l.at(i)+1));
|
||||
QPixmap p = QPixmap::fromImage(bm.getBookmarkPixmap(l.at(i)));
|
||||
if(p.isNull())
|
||||
{
|
||||
images.at(i+1)->setAlignment(Qt::AlignHCenter|Qt::AlignVCenter);
|
||||
images.at(i+1)->setText(tr("Loading..."));
|
||||
}
|
||||
else
|
||||
{
|
||||
images.at(i+1)->setAlignment(Qt::AlignHCenter|Qt::AlignBottom);
|
||||
images.at(i+1)->setPixmap(p.scaled(coverSize,Qt::KeepAspectRatio,Qt::SmoothTransformation));
|
||||
}
|
||||
}
|
||||
for(int i=s;i<3;i++)
|
||||
{
|
||||
pages.at(i+1)->setText("-");
|
||||
images.at(i+1)->setAlignment(Qt::AlignHCenter|Qt::AlignVCenter);
|
||||
images.at(i+1)->setPixmap(QPixmap(":/images/notCover.png").scaled(coverSize,Qt::KeepAspectRatio,Qt::SmoothTransformation));
|
||||
}
|
||||
}
|
||||
|
||||
bool BookmarksDialog::eventFilter(QObject *obj, QEvent *event)
|
||||
{
|
||||
if(event->type() == QEvent::MouseButtonPress)
|
||||
{
|
||||
if (obj == images.at(0))
|
||||
{
|
||||
emit(goToPage(lastPage));
|
||||
close();
|
||||
event->accept();
|
||||
}
|
||||
for(int i=1;i<=3;i++)
|
||||
{
|
||||
if(obj == images.at(i))
|
||||
{
|
||||
bool b;
|
||||
int page = pages.at(i)->text().toInt(&b)-1;
|
||||
if(b)
|
||||
{
|
||||
emit(goToPage(page));
|
||||
close();
|
||||
}
|
||||
event->accept();
|
||||
}
|
||||
}
|
||||
}
|
||||
// pass the event on to the parent class
|
||||
return QDialog::eventFilter(obj, event);
|
||||
}
|
||||
|
||||
void BookmarksDialog::keyPressEvent(QKeyEvent * event)
|
||||
{
|
||||
if(event->key() == Qt::Key_M)
|
||||
hide();
|
||||
}
|
||||
/*
|
||||
void BookmarksDialog::show()
|
||||
{
|
||||
QDialog::show();
|
||||
disconnect(animation,SIGNAL(finished()),this,SLOT(close()));
|
||||
animation->setStartValue(0);
|
||||
animation->setEndValue(1);
|
||||
animation->start();
|
||||
}
|
||||
|
||||
void BookmarksDialog::hide()
|
||||
{
|
||||
connect(animation,SIGNAL(finished()),this,SLOT(close()));
|
||||
animation->setStartValue(1);
|
||||
animation->setEndValue(0);
|
||||
animation->start();
|
||||
}*/
|
||||
45
YACReader/bookmarks_dialog.h
Normal file
45
YACReader/bookmarks_dialog.h
Normal file
@ -0,0 +1,45 @@
|
||||
#ifndef __BOOKMARKS_DIALOG_H
|
||||
#define __BOOKMARKS_DIALOG_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QDialog>
|
||||
#include <QLabel>
|
||||
#include <QPushButton>
|
||||
#include <QEvent>
|
||||
#include <QKeyEvent>
|
||||
#include <QPropertyAnimation>
|
||||
|
||||
#include "bookmarks.h"
|
||||
|
||||
class BookmarksDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
protected:
|
||||
QList<QLabel *> pages;
|
||||
QList<QLabel *> images;
|
||||
|
||||
int lastPage;
|
||||
|
||||
QPushButton * accept;
|
||||
QPushButton * cancel;
|
||||
|
||||
QSize coverSize;
|
||||
|
||||
bool eventFilter(QObject *obj, QEvent *event);
|
||||
void keyPressEvent(QKeyEvent * event);
|
||||
//QPropertyAnimation * animation;
|
||||
|
||||
public:
|
||||
BookmarksDialog(QWidget * parent = 0);
|
||||
|
||||
public slots:
|
||||
void setBookmarks(const Bookmarks & bookmarks);
|
||||
//void show();
|
||||
//void hide();
|
||||
|
||||
signals:
|
||||
void goToPage(unsigned int page);
|
||||
};
|
||||
|
||||
#endif // BOOKMARKS_DIALOG_H
|
||||
58
YACReader/configuration.cpp
Normal file
58
YACReader/configuration.cpp
Normal file
@ -0,0 +1,58 @@
|
||||
#include "configuration.h"
|
||||
|
||||
#include <QFile>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QCoreApplication>
|
||||
#include <QStringList>
|
||||
#include <QMessageBox>
|
||||
|
||||
#include "yacreader_global.h"
|
||||
|
||||
Configuration::Configuration()
|
||||
{
|
||||
//read configuration
|
||||
//load("/YACReader.conf");
|
||||
}
|
||||
|
||||
/*Configuration::Configuration(const Configuration & conf)
|
||||
{
|
||||
//nothing
|
||||
}*/
|
||||
|
||||
void Configuration::load(QSettings * settings)
|
||||
{
|
||||
this->settings = settings;
|
||||
|
||||
//TODO set defaults
|
||||
if(!settings->contains(PATH))
|
||||
settings->setValue(PATH,".");
|
||||
if(!settings->contains(GO_TO_FLOW_SIZE))
|
||||
settings->setValue(GO_TO_FLOW_SIZE,QSize(126,200));
|
||||
if(!settings->contains(MAG_GLASS_SIZE))
|
||||
settings->setValue(MAG_GLASS_SIZE,QSize(350,175));
|
||||
if(!settings->contains(ZOOM_LEVEL))
|
||||
settings->setValue(MAG_GLASS_SIZE,QSize(350,175));
|
||||
if(!settings->contains(FIT))
|
||||
settings->setValue(FIT,false);
|
||||
if(!settings->contains(FLOW_TYPE))
|
||||
settings->setValue(FLOW_TYPE,0);
|
||||
if(!settings->contains(FULLSCREEN))
|
||||
settings->setValue(FULLSCREEN,false);
|
||||
if(!settings->contains(FIT_TO_WIDTH_RATIO))
|
||||
settings->setValue(FIT_TO_WIDTH_RATIO,1);
|
||||
if(!settings->contains(Y_WINDOW_SIZE))
|
||||
settings->setValue(Y_WINDOW_SIZE,QSize(0,0));
|
||||
if(!settings->contains(MAXIMIZED))
|
||||
settings->setValue(MAXIMIZED,false);
|
||||
if(!settings->contains(DOUBLE_PAGE))
|
||||
settings->setValue(DOUBLE_PAGE,false);
|
||||
if(!settings->contains(ADJUST_TO_FULL_SIZE))
|
||||
settings->setValue(ADJUST_TO_FULL_SIZE,false);
|
||||
if(!settings->contains(BACKGROUND_COLOR))
|
||||
settings->setValue(BACKGROUND_COLOR,QColor(40,40,40));
|
||||
if(!settings->contains(ALWAYS_ON_TOP))
|
||||
settings->setValue(ALWAYS_ON_TOP,false);
|
||||
if(!settings->contains(SHOW_TOOLBARS))
|
||||
settings->setValue(SHOW_TOOLBARS, true);
|
||||
}
|
||||
97
YACReader/configuration.h
Normal file
97
YACReader/configuration.h
Normal file
@ -0,0 +1,97 @@
|
||||
#ifndef __CONFIGURATION_H
|
||||
#define __CONFIGURATION_H
|
||||
#include <QString>
|
||||
#include <QSize>
|
||||
#include <QObject>
|
||||
#include <QPoint>
|
||||
#include <QColor>
|
||||
#include <QSettings>
|
||||
#include <QDate>
|
||||
|
||||
#include "yacreader_global.h"
|
||||
|
||||
#define CONF_FILE_PATH "."
|
||||
#define SLIDE_ASPECT_RATIO 1.585
|
||||
|
||||
using namespace YACReader;
|
||||
|
||||
class Configuration : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
QSettings * settings;
|
||||
|
||||
QString defaultPath;
|
||||
//configuration properties
|
||||
QSize magnifyingGlassSize;
|
||||
QSize gotoSlideSize;
|
||||
float zoomLevel;
|
||||
bool adjustToWidth;
|
||||
bool fullScreen;
|
||||
FlowType flowType;
|
||||
float fitToWidthRatio;
|
||||
QPoint windowPos;
|
||||
QSize windowSize;
|
||||
bool maximized;
|
||||
bool doublePage;
|
||||
bool doubleMangaPage;
|
||||
bool alwaysOnTop;
|
||||
bool adjustToFullSize;
|
||||
QColor backgroundColor;
|
||||
|
||||
Configuration();
|
||||
//Configuration(const Configuration & conf);
|
||||
void load(const QString & path = CONF_FILE_PATH);
|
||||
|
||||
|
||||
public:
|
||||
static Configuration & getConfiguration()
|
||||
{
|
||||
static Configuration configuration;
|
||||
return configuration;
|
||||
};
|
||||
void load(QSettings * settings);
|
||||
QString getDefaultPath() { return settings->value(PATH).toString(); }
|
||||
void setDefaultPath(QString defaultPath){settings->setValue(PATH,defaultPath);}
|
||||
QSize getMagnifyingGlassSize() { return settings->value(MAG_GLASS_SIZE).toSize();}
|
||||
void setMagnifyingGlassSize(const QSize & mgs) { settings->setValue(MAG_GLASS_SIZE,mgs);}
|
||||
QSize getGotoSlideSize() { return settings->value(GO_TO_FLOW_SIZE).toSize();}
|
||||
void setGotoSlideSize(const QSize & gss) { settings->setValue(GO_TO_FLOW_SIZE,gss);}
|
||||
float getZoomLevel() { return settings->value(ZOOM_LEVEL).toFloat();}
|
||||
void setZoomLevel(float zl) { settings->setValue(ZOOM_LEVEL,zl);}
|
||||
bool getAdjustToWidth() {return settings->value(FIT).toBool();}
|
||||
void setAdjustToWidth(bool atw=true) {settings->setValue(FIT,atw);}
|
||||
FlowType getFlowType(){return (FlowType)settings->value(FLOW_TYPE_SW).toInt();}
|
||||
void setFlowType(FlowType type){settings->setValue(FLOW_TYPE_SW,type);}
|
||||
bool getFullScreen(){return settings->value(FULLSCREEN).toBool();}
|
||||
void setFullScreen(bool f){settings->setValue(FULLSCREEN,f);}
|
||||
float getFitToWidthRatio(){return settings->value(FIT_TO_WIDTH_RATIO).toFloat();}
|
||||
void setFitToWidthRatio(float r){settings->setValue(FIT_TO_WIDTH_RATIO,r);}
|
||||
QPoint getPos(){return settings->value(Y_WINDOW_POS).toPoint();}
|
||||
void setPos(QPoint p){settings->setValue(Y_WINDOW_POS,p);}
|
||||
QSize getSize(){return settings->value(Y_WINDOW_SIZE).toSize();}
|
||||
void setSize(QSize s){settings->setValue(Y_WINDOW_SIZE,s);}
|
||||
bool getMaximized(){return settings->value(MAXIMIZED).toBool();}
|
||||
void setMaximized(bool b){settings->setValue(MAXIMIZED,b);}
|
||||
bool getDoublePage(){return settings->value(DOUBLE_PAGE).toBool();}
|
||||
void setDoublePage(bool b){settings->setValue(DOUBLE_PAGE,b);}
|
||||
bool getDoubleMangaPage(){return settings->value(DOUBLE_MANGA_PAGE).toBool();}
|
||||
void setDoubleMangaPage(bool b){settings->setValue(DOUBLE_MANGA_PAGE,b);}
|
||||
bool getAdjustToFullSize(){return settings->value(ADJUST_TO_FULL_SIZE).toBool();}
|
||||
void setAdjustToFullSize(bool b){settings->setValue(ADJUST_TO_FULL_SIZE,b);}
|
||||
QColor getBackgroundColor(){return settings->value(BACKGROUND_COLOR).value<QColor>();}
|
||||
void setBackgroundColor(const QColor& color){settings->value(BACKGROUND_COLOR,color);}
|
||||
bool getAlwaysOnTop(){return settings->value(ALWAYS_ON_TOP).toBool();}
|
||||
void setAlwaysOnTop(bool b){ settings->setValue(ALWAYS_ON_TOP,b);}
|
||||
bool getShowToolbars(){return settings->value(SHOW_TOOLBARS).toBool();}
|
||||
void setShowToolbars(bool b){settings->setValue(SHOW_TOOLBARS,b);}
|
||||
bool getShowInformation(){return settings->value(SHOW_INFO,false).toBool();}
|
||||
void setShowInformation(bool b){settings->setValue(SHOW_INFO,b);}
|
||||
QDate getLastVersionCheck(){return settings->value(LAST_VERSION_CHECK).toDate();}
|
||||
void setLastVersionCheck(const QDate & date){ settings->setValue(LAST_VERSION_CHECK,date);}
|
||||
int getNumDaysBetweenVersionChecks() {return settings->value(NUM_DAYS_BETWEEN_VERSION_CHECKS,1).toInt();}
|
||||
void setNumDaysBetweenVersionChecks(int days) {return settings->setValue(NUM_DAYS_BETWEEN_VERSION_CHECKS,days);}
|
||||
};
|
||||
|
||||
#endif
|
||||
84
YACReader/goto_dialog.cpp
Normal file
84
YACReader/goto_dialog.cpp
Normal file
@ -0,0 +1,84 @@
|
||||
#include "goto_dialog.h"
|
||||
|
||||
#include <QHBoxLayout>
|
||||
#include <QVBoxLayout>
|
||||
#include <QIntValidator>
|
||||
|
||||
|
||||
|
||||
GoToDialog::GoToDialog(QWidget * parent)
|
||||
:QDialog(parent)
|
||||
{
|
||||
setupUI();
|
||||
}
|
||||
|
||||
void GoToDialog::setupUI()
|
||||
{
|
||||
textLabel = new QLabel(tr("Page : "));
|
||||
pageNumber = new QLineEdit;
|
||||
v = new QIntValidator(this);
|
||||
v->setBottom(1);
|
||||
pageNumber->setValidator(v);
|
||||
textLabel->setBuddy(pageNumber);
|
||||
textLabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
|
||||
accept = new QPushButton(tr("Go To"));
|
||||
connect(accept,SIGNAL(clicked()),this,SLOT(goTo()));
|
||||
cancel = new QPushButton(tr("Cancel"));
|
||||
connect(cancel,SIGNAL(clicked()),this,SLOT(close()));
|
||||
|
||||
QHBoxLayout *topLayout = new QHBoxLayout;
|
||||
|
||||
topLayout->addWidget(textLabel);
|
||||
topLayout->addWidget(pageNumber);
|
||||
|
||||
QHBoxLayout *bottomLayout = new QHBoxLayout;
|
||||
bottomLayout->addStretch();
|
||||
bottomLayout->addWidget(accept);
|
||||
bottomLayout->addWidget(cancel);
|
||||
|
||||
QVBoxLayout *mainLayout = new QVBoxLayout;
|
||||
mainLayout->addWidget(numPagesLabel = new QLabel(tr("Total pages : ")));
|
||||
mainLayout->addLayout(topLayout);
|
||||
mainLayout->addStretch();
|
||||
mainLayout->addLayout(bottomLayout);
|
||||
|
||||
QHBoxLayout *imgMainLayout = new QHBoxLayout;
|
||||
QLabel * imgLabel = new QLabel();
|
||||
QPixmap p(":/images/goto.png");
|
||||
imgLabel->setPixmap(p);
|
||||
imgMainLayout->addWidget(imgLabel);
|
||||
imgMainLayout->addLayout(mainLayout);
|
||||
|
||||
setLayout(imgMainLayout);
|
||||
|
||||
setWindowTitle(tr("Go to..."));
|
||||
setModal (true);
|
||||
|
||||
pageNumber->setFocusPolicy(Qt::StrongFocus);
|
||||
pageNumber->setFocus();
|
||||
}
|
||||
|
||||
void GoToDialog::goTo()
|
||||
{
|
||||
unsigned int page = pageNumber->text().toInt();
|
||||
pageNumber->clear();
|
||||
|
||||
if(page >= 1)
|
||||
emit(goToPage(page-1));
|
||||
|
||||
close();
|
||||
|
||||
}
|
||||
|
||||
void GoToDialog::setNumPages(unsigned int numPages)
|
||||
{
|
||||
numPagesLabel->setText(tr("Total pages : ")+QString::number(numPages));
|
||||
v->setTop(numPages);
|
||||
}
|
||||
|
||||
void GoToDialog::open()
|
||||
{
|
||||
pageNumber->setFocus();
|
||||
QDialog::open();
|
||||
}
|
||||
32
YACReader/goto_dialog.h
Normal file
32
YACReader/goto_dialog.h
Normal file
@ -0,0 +1,32 @@
|
||||
#ifndef __GOTODIALOG_H
|
||||
#define __GOTODIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
#include <QPushButton>
|
||||
#include <QIntValidator>
|
||||
|
||||
class GoToDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
GoToDialog(QWidget * parent = 0);
|
||||
private:
|
||||
QLabel * numPagesLabel;
|
||||
QLabel * textLabel;
|
||||
QLineEdit * pageNumber;
|
||||
QIntValidator * v;
|
||||
QPushButton * accept;
|
||||
QPushButton * cancel;
|
||||
void setupUI();
|
||||
public slots:
|
||||
void goTo();
|
||||
void setNumPages(unsigned int numPages);
|
||||
void open();
|
||||
signals:
|
||||
void goToPage(unsigned int page);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
320
YACReader/goto_flow.cpp
Normal file
320
YACReader/goto_flow.cpp
Normal file
@ -0,0 +1,320 @@
|
||||
#include "goto_flow.h"
|
||||
#include "configuration.h"
|
||||
#include "comic.h"
|
||||
|
||||
#include <QVBoxLayout>
|
||||
#include <QSize>
|
||||
#include <QImage>
|
||||
#include <QLabel>
|
||||
#include <QPushButton>
|
||||
#include <QMutex>
|
||||
#include <QApplication>
|
||||
|
||||
#include <QLineEdit>
|
||||
#include <QPushButton>
|
||||
#include <QPixmap>
|
||||
#include <QThread>
|
||||
#include <QSize>
|
||||
#include <QIntValidator>
|
||||
#include <QWaitCondition>
|
||||
#include <QObject>
|
||||
#include <QEvent>
|
||||
#include <QLabel>
|
||||
|
||||
#include "yacreader_flow.h"
|
||||
|
||||
#include "goto_flow_toolbar.h"
|
||||
#include "goto_flow_decorationbar.h"
|
||||
|
||||
|
||||
GoToFlow::GoToFlow(QWidget *parent,FlowType flowType)
|
||||
:GoToFlowWidget(parent),ready(false)
|
||||
{
|
||||
updateTimer = new QTimer;
|
||||
connect(updateTimer, SIGNAL(timeout()), this, SLOT(updateImageData()));
|
||||
|
||||
worker = new PageLoader(&mutexGoToFlow);
|
||||
|
||||
|
||||
flow = new YACReaderFlow(this,flowType);
|
||||
flow->setReflectionEffect(PictureFlow::PlainReflection);
|
||||
imageSize = Configuration::getConfiguration().getGotoSlideSize();
|
||||
|
||||
flow->setSlideSize(imageSize);
|
||||
connect(flow,SIGNAL(centerIndexChanged(int)),this,SLOT(setPageNumber(int)));
|
||||
connect(flow,SIGNAL(selected(unsigned int)),this,SIGNAL(goToPage(unsigned int)));
|
||||
|
||||
connect(toolBar,SIGNAL(goTo(unsigned int)),this,SIGNAL(goToPage(unsigned int)));
|
||||
connect(toolBar,SIGNAL(setCenter(unsigned int)),flow,SLOT(showSlide(unsigned int)));
|
||||
|
||||
mainLayout->insertWidget(1,flow);
|
||||
mainLayout->setStretchFactor(flow,1);
|
||||
|
||||
resize(static_cast<int>(5*imageSize.width()),static_cast<int>(imageSize.height()*1.7));
|
||||
|
||||
//install eventFilter
|
||||
//flow->installEventFilter(this);
|
||||
/*edit->installEventFilter(this);
|
||||
centerButton->installEventFilter(this);
|
||||
goToButton->installEventFilter(this);
|
||||
|
||||
connect(edit,SIGNAL(returnPressed()),goToButton,SIGNAL(clicked()));*/
|
||||
|
||||
this->setCursor(QCursor(Qt::ArrowCursor));
|
||||
|
||||
|
||||
}
|
||||
GoToFlow::~GoToFlow()
|
||||
{
|
||||
delete flow;
|
||||
delete updateTimer;
|
||||
worker->deleteLater();
|
||||
}
|
||||
|
||||
void GoToFlow::keyPressEvent(QKeyEvent *event)
|
||||
{
|
||||
switch (event->key())
|
||||
{
|
||||
case Qt::Key_Left: case Qt::Key_Right: case Qt::Key_Up:
|
||||
QApplication::sendEvent(flow,event);
|
||||
return;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
GoToFlowWidget::keyPressEvent(event);
|
||||
}
|
||||
|
||||
void GoToFlow::centerSlide(int slide)
|
||||
{
|
||||
if(flow->centerIndex()!=slide)
|
||||
{
|
||||
flow->setCenterIndex(slide);
|
||||
if(ready)// load images if pages are loaded.
|
||||
{
|
||||
//worker->reset(); //BUG FIXED : image didn't load if worker was working
|
||||
preload();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void GoToFlow::setNumSlides(unsigned int slides)
|
||||
{
|
||||
// numPagesLabel->setText(tr("Total pages : ")+QString::number(slides));
|
||||
// numPagesLabel->adjustSize();
|
||||
imagesReady.clear();
|
||||
imagesReady.fill(false,slides);
|
||||
|
||||
rawImages.clear();
|
||||
rawImages.resize(slides);
|
||||
|
||||
toolBar->setTop(slides);
|
||||
|
||||
SlideInitializer * si = new SlideInitializer(&mutexGoToFlow,flow,slides);
|
||||
|
||||
imagesLoaded.clear();
|
||||
imagesLoaded.fill(false,slides);
|
||||
|
||||
imagesSetted.clear();
|
||||
imagesSetted.fill(false,slides);
|
||||
|
||||
numImagesLoaded = 0;
|
||||
|
||||
connect(flow, SIGNAL(centerIndexChanged(int)), this, SLOT(preload()));
|
||||
connect(flow, SIGNAL(centerIndexChangedSilent(int)), this, SLOT(preload()));
|
||||
|
||||
ready = true;
|
||||
worker->reset();
|
||||
|
||||
si->start();
|
||||
}
|
||||
|
||||
void GoToFlow::reset()
|
||||
{
|
||||
updateTimer->stop();
|
||||
/*imagesLoaded.clear();
|
||||
numImagesLoaded = 0;
|
||||
imagesReady.clear();
|
||||
rawImages.clear();*/
|
||||
ready = false;
|
||||
}
|
||||
|
||||
void GoToFlow::setImageReady(int index,const QByteArray & image)
|
||||
{
|
||||
rawImages[index]=image;
|
||||
imagesReady[index]=true;
|
||||
preload();
|
||||
}
|
||||
|
||||
void GoToFlow::preload()
|
||||
{
|
||||
if(numImagesLoaded < imagesLoaded.size())
|
||||
updateTimer->start(30); //TODO comprobar rendimiento, antes era 70
|
||||
}
|
||||
|
||||
void GoToFlow::updateImageData()
|
||||
{
|
||||
// can't do anything, wait for the next possibility
|
||||
if(worker->busy())
|
||||
return;
|
||||
|
||||
// set image of last one
|
||||
int idx = worker->index();
|
||||
if( idx >= 0 && !worker->result().isNull())
|
||||
{
|
||||
if(!imagesSetted[idx])
|
||||
{
|
||||
flow->setSlide(idx, worker->result());
|
||||
imagesSetted[idx] = true;
|
||||
numImagesLoaded++;
|
||||
rawImages[idx].clear();; //release memory
|
||||
imagesLoaded[idx]=true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// try to load only few images on the left and right side
|
||||
// i.e. all visible ones plus some extra
|
||||
#define COUNT 8
|
||||
int indexes[2*COUNT+1];
|
||||
int center = flow->centerIndex();
|
||||
indexes[0] = center;
|
||||
for(int j = 0; j < COUNT; j++)
|
||||
{
|
||||
indexes[j*2+1] = center+j+1;
|
||||
indexes[j*2+2] = center-j-1;
|
||||
}
|
||||
for(int c = 0; c < 2*COUNT+1; c++)
|
||||
{
|
||||
int i = indexes[c];
|
||||
if((i >= 0) && (i < flow->slideCount()))
|
||||
if(!imagesLoaded[i]&&imagesReady[i])//slide(i).isNull())
|
||||
{
|
||||
// schedule thumbnail generation
|
||||
|
||||
worker->generate(i, flow->slideSize(),rawImages[i]);
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// no need to generate anything? stop polling...
|
||||
updateTimer->stop();
|
||||
}
|
||||
|
||||
void GoToFlow::wheelEvent(QWheelEvent * event)
|
||||
{
|
||||
if(event->delta()<0)
|
||||
flow->showNext();
|
||||
else
|
||||
flow->showPrevious();
|
||||
event->accept();
|
||||
}
|
||||
|
||||
void GoToFlow::setFlowType(FlowType flowType)
|
||||
{
|
||||
flow->setFlowType(flowType);
|
||||
}
|
||||
|
||||
void GoToFlow::updateSize() //TODO : fix. it doesn't work.
|
||||
{
|
||||
imageSize = Configuration::getConfiguration().getGotoSlideSize();
|
||||
flow->setSlideSize(imageSize);
|
||||
resize(static_cast<int>(5*imageSize.width()),static_cast<int>(imageSize.height()*1.7));
|
||||
}
|
||||
|
||||
void GoToFlow::updateConfig(QSettings * settings)
|
||||
{
|
||||
Q_UNUSED(settings)
|
||||
}
|
||||
//-----------------------------------------------------------------------------
|
||||
//SlideInitializer
|
||||
//-----------------------------------------------------------------------------
|
||||
SlideInitializer::SlideInitializer(QMutex * m,PictureFlow * flow,int slides)
|
||||
:QThread(),mutex(m),_flow(flow),_slides(slides)
|
||||
{
|
||||
|
||||
}
|
||||
void SlideInitializer::run()
|
||||
{
|
||||
mutex->lock();
|
||||
|
||||
_flow->clear();
|
||||
for(int i=0;i<_slides;i++)
|
||||
_flow->addSlide(QImage());
|
||||
_flow->setCenterIndex(0);
|
||||
|
||||
mutex->unlock();
|
||||
}
|
||||
//-----------------------------------------------------------------------------
|
||||
//PageLoader
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
PageLoader::PageLoader(QMutex * m):
|
||||
QThread(),mutex(m), restart(false), working(false), idx(-1)
|
||||
{
|
||||
}
|
||||
|
||||
PageLoader::~PageLoader()
|
||||
{
|
||||
mutex->lock();
|
||||
condition.wakeOne();
|
||||
mutex->unlock();
|
||||
wait();
|
||||
}
|
||||
|
||||
bool PageLoader::busy() const
|
||||
{
|
||||
return isRunning() ? working : false;
|
||||
}
|
||||
|
||||
void PageLoader::generate(int index, QSize size,const QByteArray & rImage)
|
||||
{
|
||||
mutex->lock();
|
||||
this->idx = index;
|
||||
//this->img = QImage();
|
||||
this->size = size;
|
||||
this->rawImage = rImage;
|
||||
mutex->unlock();
|
||||
|
||||
if (!isRunning())
|
||||
start();
|
||||
else
|
||||
{
|
||||
// already running, wake up whenever ready
|
||||
restart = true;
|
||||
condition.wakeOne();
|
||||
}
|
||||
}
|
||||
|
||||
void PageLoader::run()
|
||||
{
|
||||
for(;;)
|
||||
{
|
||||
// copy necessary data
|
||||
mutex->lock();
|
||||
this->working = true;
|
||||
//int idx = this->idx;
|
||||
|
||||
|
||||
QImage image;
|
||||
image.loadFromData(this->rawImage);
|
||||
// let everyone knows it is ready
|
||||
image = image.scaled(this->size,Qt::KeepAspectRatio,Qt::SmoothTransformation);
|
||||
|
||||
mutex->unlock();
|
||||
|
||||
mutex->lock();
|
||||
this->working = false;
|
||||
this->img = image;
|
||||
mutex->unlock();
|
||||
|
||||
// put to sleep
|
||||
mutex->lock();
|
||||
if (!this->restart)
|
||||
condition.wait(mutex);
|
||||
restart = false;
|
||||
mutex->unlock();
|
||||
}
|
||||
}
|
||||
110
YACReader/goto_flow.h
Normal file
110
YACReader/goto_flow.h
Normal file
@ -0,0 +1,110 @@
|
||||
#ifndef __GOTO_FLOW_H
|
||||
#define __GOTO_FLOW_H
|
||||
|
||||
#include "goto_flow_widget.h"
|
||||
#include <QThread>
|
||||
|
||||
#include <QWaitCondition>
|
||||
#include <QMutex>
|
||||
|
||||
class QLineEdit;
|
||||
class QPushButton;
|
||||
class QPixmap;
|
||||
class QThread;
|
||||
class QSize;
|
||||
class QIntValidator;
|
||||
class QWaitCondition;
|
||||
class QEvent;
|
||||
class QLabel;
|
||||
|
||||
|
||||
class Comic;
|
||||
class SlideInitializer;
|
||||
class PageLoader;
|
||||
class YACReaderFlow;
|
||||
class PictureFlow;
|
||||
class QKeyEvent;
|
||||
|
||||
class GoToFlow : public GoToFlowWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
GoToFlow(QWidget* parent = 0,FlowType flowType = CoverFlowLike);
|
||||
~GoToFlow();
|
||||
bool ready; //comic is ready for read.
|
||||
private:
|
||||
YACReaderFlow * flow;
|
||||
void keyPressEvent(QKeyEvent* event);
|
||||
//Comic * comic;
|
||||
QSize imageSize;
|
||||
|
||||
QVector<bool> imagesLoaded;
|
||||
QVector<bool> imagesSetted;
|
||||
int numImagesLoaded;
|
||||
QVector<bool> imagesReady;
|
||||
QVector<QByteArray> rawImages;
|
||||
QTimer* updateTimer;
|
||||
PageLoader* worker;
|
||||
virtual void wheelEvent(QWheelEvent * event);
|
||||
QMutex mutexGoToFlow;
|
||||
|
||||
private slots:
|
||||
void preload();
|
||||
void updateImageData();
|
||||
|
||||
public slots:
|
||||
void centerSlide(int slide);
|
||||
void reset();
|
||||
void setNumSlides(unsigned int slides);
|
||||
void setImageReady(int index,const QByteArray & image);
|
||||
void setFlowType(FlowType flowType);
|
||||
void updateSize();
|
||||
void updateConfig(QSettings * settings);
|
||||
signals:
|
||||
void goToPage(unsigned int page);
|
||||
|
||||
};
|
||||
//-----------------------------------------------------------------------------
|
||||
//SlideInitializer
|
||||
//-----------------------------------------------------------------------------
|
||||
class SlideInitializer : public QThread
|
||||
{
|
||||
public:
|
||||
SlideInitializer(QMutex * m,PictureFlow * flow,int slides);
|
||||
private:
|
||||
QMutex * mutex;
|
||||
PictureFlow * _flow;
|
||||
int _slides;
|
||||
void run();
|
||||
};
|
||||
//-----------------------------------------------------------------------------
|
||||
//PageLoader
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class PageLoader : public QThread
|
||||
{
|
||||
public:
|
||||
PageLoader(QMutex * m);
|
||||
~PageLoader();
|
||||
// returns FALSE if worker is still busy and can't take the task
|
||||
bool busy() const;
|
||||
void generate(int index, QSize size,const QByteArray & rImage);
|
||||
void reset(){idx = -1;};
|
||||
int index() const { return idx; }
|
||||
QImage result() const { return img; }
|
||||
protected:
|
||||
void run();
|
||||
private:
|
||||
QMutex * mutex;
|
||||
QWaitCondition condition;
|
||||
|
||||
bool restart;
|
||||
bool working;
|
||||
int idx;
|
||||
|
||||
QSize size;
|
||||
QImage img;
|
||||
QByteArray rawImage;
|
||||
};
|
||||
|
||||
#endif
|
||||
33
YACReader/goto_flow_decorationbar.cpp
Normal file
33
YACReader/goto_flow_decorationbar.cpp
Normal file
@ -0,0 +1,33 @@
|
||||
#include "goto_flow_decorationbar.h"
|
||||
|
||||
#include <QHBoxLayout>
|
||||
#include <qlabel.h>
|
||||
|
||||
GoToFlowDecorationBar::GoToFlowDecorationBar(QWidget * parent)
|
||||
:QWidget(parent)
|
||||
{
|
||||
QHBoxLayout * topBar = new QHBoxLayout();
|
||||
|
||||
QLabel * imgTopLeft = new QLabel();
|
||||
QLabel * imgTopRight = new QLabel();
|
||||
QLabel * imgTopMiddle = new QLabel();
|
||||
QPixmap pL(":/images/imgTopLeft.png");
|
||||
QPixmap pM(":/images/imgTopMiddle.png");
|
||||
QPixmap pR(":/images/imgTopRight.png");
|
||||
imgTopLeft->setPixmap(pL);
|
||||
imgTopRight->setPixmap(pR);
|
||||
imgTopMiddle->setPixmap(pM);
|
||||
imgTopMiddle->setScaledContents(true);
|
||||
|
||||
topBar->addWidget(imgTopLeft);
|
||||
topBar->addWidget(imgTopMiddle);
|
||||
topBar->addWidget(imgTopRight);
|
||||
topBar->setStretchFactor(imgTopLeft,0);
|
||||
topBar->setStretchFactor(imgTopMiddle,1);
|
||||
topBar->setStretchFactor(imgTopRight,0);
|
||||
|
||||
topBar->setMargin(0);
|
||||
topBar->setSpacing(0);
|
||||
|
||||
setLayout(topBar);
|
||||
}
|
||||
13
YACReader/goto_flow_decorationbar.h
Normal file
13
YACReader/goto_flow_decorationbar.h
Normal file
@ -0,0 +1,13 @@
|
||||
#ifndef GOTO_FLOW_DECORATIONBAR_H
|
||||
#define GOTO_FLOW_DECORATIONBAR_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class GoToFlowDecorationBar : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
GoToFlowDecorationBar(QWidget * parent = 0);
|
||||
};
|
||||
|
||||
#endif
|
||||
158
YACReader/goto_flow_gl.cpp
Normal file
158
YACReader/goto_flow_gl.cpp
Normal file
@ -0,0 +1,158 @@
|
||||
#include "goto_flow_gl.h"
|
||||
|
||||
#include <QLineEdit>
|
||||
#include <QIntValidator>
|
||||
#include <QPushButton>
|
||||
#include <QPushButton>
|
||||
#include <QSize>
|
||||
#include <QApplication>
|
||||
|
||||
#include "configuration.h"
|
||||
|
||||
#include "goto_flow_toolbar.h"
|
||||
#include "goto_flow_decorationbar.h"
|
||||
|
||||
GoToFlowGL::GoToFlowGL(QWidget* parent, FlowType flowType)
|
||||
:GoToFlowWidget(parent)
|
||||
{
|
||||
Q_UNUSED(flowType)
|
||||
flow = new YACReaderPageFlowGL(this);
|
||||
flow->setShowMarks(false);
|
||||
|
||||
imageSize = Configuration::getConfiguration().getGotoSlideSize();
|
||||
|
||||
flow->setSlideSize(imageSize);
|
||||
connect(flow,SIGNAL(centerIndexChanged(int)),this,SLOT(setPageNumber(int)));
|
||||
connect(flow,SIGNAL(selected(unsigned int)),this,SIGNAL(goToPage(unsigned int)));
|
||||
|
||||
connect(toolBar,SIGNAL(goTo(unsigned int)),this,SIGNAL(goToPage(unsigned int)));
|
||||
connect(toolBar,SIGNAL(setCenter(unsigned int)),flow,SLOT(setCenterIndex(unsigned int)));
|
||||
|
||||
mainLayout->insertWidget(1,flow);
|
||||
mainLayout->setStretchFactor(flow,1);
|
||||
|
||||
resize(static_cast<int>(5*imageSize.width()),static_cast<int>(imageSize.height()*1.7));
|
||||
|
||||
this->setCursor(QCursor(Qt::ArrowCursor));
|
||||
}
|
||||
|
||||
GoToFlowGL::~GoToFlowGL()
|
||||
{
|
||||
delete flow;
|
||||
}
|
||||
|
||||
void GoToFlowGL::reset()
|
||||
{
|
||||
flow->reset();
|
||||
}
|
||||
|
||||
void GoToFlowGL::centerSlide(int slide)
|
||||
{
|
||||
if(flow->centerIndex()!=slide)
|
||||
{
|
||||
flow->setCenterIndex(slide);
|
||||
}
|
||||
}
|
||||
|
||||
void GoToFlowGL::setFlowType(FlowType flowType)
|
||||
{
|
||||
if(flowType == CoverFlowLike)
|
||||
flow->setPreset(presetYACReaderFlowClassicConfig);
|
||||
else if(flowType == Strip)
|
||||
flow->setPreset(presetYACReaderFlowStripeConfig);
|
||||
else if(flowType == StripOverlapped)
|
||||
flow->setPreset(presetYACReaderFlowOverlappedStripeConfig);
|
||||
else
|
||||
flow->setPreset(defaultYACReaderFlowConfig);
|
||||
}
|
||||
|
||||
void GoToFlowGL::setNumSlides(unsigned int slides)
|
||||
{
|
||||
flow->populate(slides);
|
||||
toolBar->setTop(slides);
|
||||
}
|
||||
void GoToFlowGL::setImageReady(int index,const QByteArray & imageData)
|
||||
{
|
||||
flow->rawImages[index] = imageData;
|
||||
flow->imagesReady[index] = true;
|
||||
}
|
||||
|
||||
void GoToFlowGL::updateSize()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void GoToFlowGL::updateConfig(QSettings * settings)
|
||||
{
|
||||
Performance performance = medium;
|
||||
|
||||
switch (settings->value(PERFORMANCE).toInt())
|
||||
{
|
||||
case 0:
|
||||
performance = low;
|
||||
break;
|
||||
case 1:
|
||||
performance = medium;
|
||||
break;
|
||||
case 2:
|
||||
performance = high;
|
||||
break;
|
||||
case 3:
|
||||
performance = ultraHigh;
|
||||
break;
|
||||
}
|
||||
|
||||
flow->setPerformance(performance);
|
||||
|
||||
switch (settings->value(FLOW_TYPE_GL).toInt())
|
||||
{
|
||||
case 0:
|
||||
flow->setPreset(presetYACReaderFlowClassicConfig);
|
||||
return;
|
||||
case 1:
|
||||
flow->setPreset(presetYACReaderFlowStripeConfig);
|
||||
return;
|
||||
case 2:
|
||||
flow->setPreset(presetYACReaderFlowOverlappedStripeConfig);
|
||||
return;
|
||||
case 3:
|
||||
flow->setPreset(defaultYACReaderFlowConfig);
|
||||
return;
|
||||
case 4:
|
||||
flow->setPreset(pressetYACReaderFlowDownConfig);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
//custom config
|
||||
|
||||
flow->setCF_RX(settings->value(X_ROTATION).toInt());
|
||||
flow->setCF_Y(settings->value(Y_POSITION).toInt());
|
||||
flow->setX_Distance(settings->value(COVER_DISTANCE).toInt());
|
||||
flow->setCenter_Distance(settings->value(CENTRAL_DISTANCE).toInt());
|
||||
flow->setCF_Z(settings->value(ZOOM_LEVEL).toInt());
|
||||
flow->setY_Distance(settings->value(Y_COVER_OFFSET).toInt());
|
||||
flow->setZ_Distance(settings->value(Z_COVER_OFFSET).toInt());
|
||||
flow->setRotation(settings->value(COVER_ROTATION).toInt());
|
||||
flow->setFadeOutDist(settings->value(FADE_OUT_DIST).toInt());
|
||||
flow->setLightStrenght(settings->value(LIGHT_STRENGTH).toInt());
|
||||
flow->setMaxAngle(settings->value(MAX_ANGLE).toInt());
|
||||
|
||||
/* flow->setVisibility(settings->value("visibilityDistance").toInt());
|
||||
flow->setLightStrenght(settings->value("lightStrength").toInt())*/;
|
||||
|
||||
}
|
||||
|
||||
void GoToFlowGL::keyPressEvent(QKeyEvent* event)
|
||||
{
|
||||
switch (event->key())
|
||||
{
|
||||
case Qt::Key_Left: case Qt::Key_Right: case Qt::Key_Up:
|
||||
QApplication::sendEvent(flow,event);
|
||||
return;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
GoToFlowWidget::keyPressEvent(event);
|
||||
}
|
||||
39
YACReader/goto_flow_gl.h
Normal file
39
YACReader/goto_flow_gl.h
Normal file
@ -0,0 +1,39 @@
|
||||
#ifndef __GOTO_FLOW_GL_H
|
||||
#define __GOTO_FLOW_GL_H
|
||||
|
||||
#include "yacreader_global.h"
|
||||
#include "goto_flow_widget.h"
|
||||
#include "yacreader_flow_gl.h"
|
||||
|
||||
class QLineEdit;
|
||||
class QIntValidator;
|
||||
class QPushButton;
|
||||
class QPushButton;
|
||||
class QSize;
|
||||
class QKeyEvent;
|
||||
|
||||
class GoToFlowGL : public GoToFlowWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
GoToFlowGL(QWidget* parent = 0,FlowType flowType = CoverFlowLike);
|
||||
~GoToFlowGL();
|
||||
void reset();
|
||||
void centerSlide(int slide);
|
||||
void setFlowType(FlowType flowType);
|
||||
void setNumSlides(unsigned int slides);
|
||||
void setImageReady(int index,const QByteArray & image);
|
||||
void updateSize();
|
||||
|
||||
void updateConfig(QSettings * settings);
|
||||
|
||||
signals:
|
||||
void goToPage(unsigned int page);
|
||||
private:
|
||||
YACReaderPageFlowGL * flow;
|
||||
void keyPressEvent(QKeyEvent* event);
|
||||
//Comic * comic;
|
||||
QSize imageSize;
|
||||
};
|
||||
|
||||
#endif
|
||||
122
YACReader/goto_flow_toolbar.cpp
Normal file
122
YACReader/goto_flow_toolbar.cpp
Normal file
@ -0,0 +1,122 @@
|
||||
#include "goto_flow_toolbar.h"
|
||||
|
||||
#include <QLineEdit>
|
||||
#include <QIntValidator>
|
||||
#include <QPushButton>
|
||||
#include <QLabel>
|
||||
#include <QHBoxLayout>
|
||||
#include <QVBoxLayout>
|
||||
#include <QResizeEvent>
|
||||
|
||||
GoToFlowToolBar::GoToFlowToolBar(QWidget * parent)
|
||||
:QWidget(parent)
|
||||
{
|
||||
//fondo
|
||||
QBoxLayout * background = new QHBoxLayout(this);
|
||||
|
||||
QLabel * imgBottomLeft = new QLabel(this);
|
||||
QLabel * imgBottomRight = new QLabel(this);
|
||||
QLabel * imgBottomMiddle = new QLabel(this);
|
||||
QPixmap pBL(":/images/imgBottomLeft.png");
|
||||
QPixmap pBM(":/images/imgBottomMiddle.png");
|
||||
QPixmap pBR(":/images/imgBottomRight.png");
|
||||
imgBottomLeft->setPixmap(pBL);
|
||||
imgBottomRight->setPixmap(pBR);
|
||||
imgBottomMiddle->setPixmap(pBM);
|
||||
imgBottomMiddle->setScaledContents(true);
|
||||
//imgTop->setStyleSheet("background-image: url(:/images/numPagesLabel.png); width: 100%; height:100%; background-repeat: none; border: none");
|
||||
|
||||
background->addWidget(imgBottomLeft);
|
||||
background->addWidget(imgBottomMiddle);
|
||||
background->addWidget(imgBottomRight);
|
||||
background->setStretchFactor(imgBottomLeft,0);
|
||||
background->setStretchFactor(imgBottomMiddle,1);
|
||||
background->setStretchFactor(imgBottomRight,0);
|
||||
|
||||
background->setMargin(0);
|
||||
background->setSpacing(0);
|
||||
|
||||
//elementos interactivos
|
||||
//QVBoxLayout * mainLayout = new QVBoxLayout;
|
||||
bar = new QWidget(this);
|
||||
QHBoxLayout * bottom = new QHBoxLayout(bar);
|
||||
bottom->addStretch();
|
||||
bottom->addWidget(new QLabel(tr("Page : "),bar));
|
||||
bottom->addWidget(edit = new QLineEdit(bar));
|
||||
v = new QIntValidator(bar);
|
||||
v->setBottom(1);
|
||||
edit->setValidator(v);
|
||||
edit->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
edit->setStyleSheet("background-image: url(:/images/imgEdit.png); width: 100%; height:100%; background-repeat: none; border: none; padding: 3px; color: white;");
|
||||
QPixmap p(":/images/imgEdit.png");
|
||||
edit->setFixedSize(54,50);
|
||||
edit->setAttribute(Qt::WA_MacShowFocusRect,false);
|
||||
edit->setAttribute(Qt::WA_LayoutUsesWidgetRect,true);
|
||||
//edit->resize(QSize(54,50));
|
||||
edit->setSizePolicy(QSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed));
|
||||
edit->setAutoFillBackground(false);
|
||||
connect(edit,SIGNAL(returnPressed()),this,SLOT(goTo()));
|
||||
|
||||
QString centerButtonCSS = "QPushButton {background-image: url(:/images/imgCenterSlide.png); width: 100%; height:100%; background-repeat: none; border: none;} "
|
||||
"QPushButton:focus { border: none; outline: none;}"
|
||||
"QPushButton:pressed {background-image: url(:/images/imgCenterSlidePressed.png); width: 100%; height:100%; background-repeat: none; border: none;} ";
|
||||
centerButton = new QPushButton(bar);
|
||||
//centerButton->setIcon(QIcon(":/images/center.png"));
|
||||
centerButton->setStyleSheet(centerButtonCSS);
|
||||
centerButton->setFixedSize(26,50);
|
||||
centerButton->setAttribute(Qt::WA_LayoutUsesWidgetRect,true);
|
||||
connect(centerButton,SIGNAL(clicked()),this,SLOT(centerSlide()));
|
||||
bottom->addWidget(centerButton);
|
||||
|
||||
QString goToButtonCSS = "QPushButton {background-image: url(:/images/imgGoToSlide.png); width: 100%; height:100%; background-repeat: none; border: none;} "
|
||||
"QPushButton:focus { border: none; outline: none;}"
|
||||
"QPushButton:pressed {background-image: url(:/images/imgGoToSlidePressed.png); width: 100%; height:100%; background-repeat: none; border: none;} ";
|
||||
goToButton = new QPushButton(bar);
|
||||
//goToButton->setIcon(QIcon(":/images/goto.png"));
|
||||
goToButton->setStyleSheet(goToButtonCSS);
|
||||
goToButton->setFixedSize(32,50);
|
||||
goToButton->setAttribute(Qt::WA_LayoutUsesWidgetRect,true);
|
||||
|
||||
connect(goToButton,SIGNAL(clicked()),this,SLOT(goTo()));
|
||||
bottom->addWidget(goToButton);
|
||||
|
||||
bottom->addStretch();
|
||||
bottom->setMargin(0);
|
||||
bottom->setSpacing(0);
|
||||
|
||||
bar->setLayout(bottom);
|
||||
//mainLayout->addWidget(bar);
|
||||
setLayout(background);
|
||||
bar->setGeometry(QRect(0,0,400,50));
|
||||
|
||||
}
|
||||
|
||||
void GoToFlowToolBar::setPage(int pageNumber)
|
||||
{
|
||||
edit->setText(QString::number(pageNumber+1));
|
||||
}
|
||||
|
||||
void GoToFlowToolBar::setTop(int numPages)
|
||||
{
|
||||
v->setTop(numPages);
|
||||
}
|
||||
|
||||
void GoToFlowToolBar::resizeEvent(QResizeEvent * event)
|
||||
{
|
||||
|
||||
bar->setGeometry(QRect(0,(event->size().height()-50)+((50-bar->height())/2),event->size().width(),50));
|
||||
|
||||
QWidget::resizeEvent(event);
|
||||
}
|
||||
|
||||
void GoToFlowToolBar::goTo()
|
||||
{
|
||||
if(edit->text().toInt()!=0)
|
||||
emit(goTo(edit->text().toInt()-1));
|
||||
}
|
||||
|
||||
void GoToFlowToolBar::centerSlide()
|
||||
{
|
||||
if(edit->text().toInt()!=0)
|
||||
emit(setCenter(edit->text().toInt()-1));
|
||||
}
|
||||
33
YACReader/goto_flow_toolbar.h
Normal file
33
YACReader/goto_flow_toolbar.h
Normal file
@ -0,0 +1,33 @@
|
||||
#ifndef GOTO_FLOW_TOOLBAR_H
|
||||
#define GOTO_FLOW_TOOLBAR_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class QLineEdit;
|
||||
class QIntValidator;
|
||||
class QPushButton;
|
||||
|
||||
class GoToFlowToolBar : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
QLineEdit * edit;
|
||||
QIntValidator * v;
|
||||
QPushButton * centerButton;
|
||||
QPushButton * goToButton;
|
||||
QWidget * bar;
|
||||
void resizeEvent(QResizeEvent * event);
|
||||
|
||||
public:
|
||||
GoToFlowToolBar(QWidget * parent = 0);
|
||||
public slots:
|
||||
void setPage(int pageNumber);
|
||||
void setTop(int numPages);
|
||||
void goTo();
|
||||
void centerSlide();
|
||||
signals:
|
||||
void setCenter(unsigned int);
|
||||
void goTo(unsigned int);
|
||||
};
|
||||
|
||||
#endif
|
||||
75
YACReader/goto_flow_widget.cpp
Normal file
75
YACReader/goto_flow_widget.cpp
Normal file
@ -0,0 +1,75 @@
|
||||
#include "goto_flow_widget.h"
|
||||
|
||||
#include <QSettings>
|
||||
#include <QHBoxLayout>
|
||||
#include <QKeyEvent>
|
||||
#include <QCoreApplication>
|
||||
|
||||
#include "goto_flow_toolbar.h"
|
||||
#include "goto_flow_decorationbar.h"
|
||||
|
||||
GoToFlowWidget::GoToFlowWidget(QWidget * parent)
|
||||
:QWidget(parent)
|
||||
{
|
||||
mainLayout = new QVBoxLayout;
|
||||
|
||||
mainLayout->setMargin(0);
|
||||
mainLayout->setSpacing(0);
|
||||
|
||||
topBar = new GoToFlowDecorationBar(this);
|
||||
toolBar = new GoToFlowToolBar(this);
|
||||
|
||||
mainLayout->addWidget(topBar);
|
||||
mainLayout->addWidget(toolBar);
|
||||
|
||||
mainLayout->setMargin(0);
|
||||
mainLayout->setSpacing(0);
|
||||
|
||||
setLayout(mainLayout);
|
||||
|
||||
//toolBar->installEventFilter(this);
|
||||
}
|
||||
|
||||
GoToFlowWidget::~GoToFlowWidget() {
|
||||
delete topBar;
|
||||
delete toolBar;
|
||||
delete mainLayout;
|
||||
}
|
||||
|
||||
void GoToFlowWidget::setPageNumber(int page)
|
||||
{
|
||||
toolBar->setPage(page);
|
||||
}
|
||||
|
||||
void GoToFlowWidget::keyPressEvent(QKeyEvent* event)
|
||||
{
|
||||
switch (event->key())
|
||||
{
|
||||
case Qt::Key_Return: case Qt::Key_Enter:
|
||||
toolBar->goTo();
|
||||
toolBar->centerSlide();
|
||||
break;
|
||||
case Qt::Key_Space:
|
||||
toolBar->centerSlide();
|
||||
break;
|
||||
case Qt::Key_S:
|
||||
QCoreApplication::sendEvent(this->parent(),event);
|
||||
break;
|
||||
}
|
||||
|
||||
event->accept();
|
||||
}
|
||||
|
||||
/*bool GoToFlowWidget::eventFilter(QObject * target, QEvent * event)
|
||||
{
|
||||
if(event->type() == QEvent::KeyPress)
|
||||
{
|
||||
QKeyEvent * e = static_cast<QKeyEvent *>(event);
|
||||
if(e->key()==Qt::Key_S || e->key() == Qt::Key_Space)
|
||||
{
|
||||
this->keyPressEvent(e);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return QWidget::eventFilter(target,event);
|
||||
}*/
|
||||
41
YACReader/goto_flow_widget.h
Normal file
41
YACReader/goto_flow_widget.h
Normal file
@ -0,0 +1,41 @@
|
||||
#ifndef __GOTO_FLOW_WIDGET_H
|
||||
#define __GOTO_FLOW_WIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QSettings>
|
||||
#include "yacreader_global.h"
|
||||
|
||||
using namespace YACReader;
|
||||
|
||||
class QSettings;
|
||||
class GoToFlowDecorationBar;
|
||||
class GoToFlowToolBar;
|
||||
class QVBoxLayout;
|
||||
|
||||
class GoToFlowWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
protected:
|
||||
QVBoxLayout * mainLayout;
|
||||
GoToFlowDecorationBar * topBar;
|
||||
GoToFlowToolBar * toolBar;
|
||||
public:
|
||||
GoToFlowWidget(QWidget * paret = 0);
|
||||
virtual ~GoToFlowWidget() = 0;
|
||||
public slots:
|
||||
virtual void reset() = 0;
|
||||
virtual void centerSlide(int slide) = 0;
|
||||
virtual void setPageNumber(int page);
|
||||
virtual void setFlowType(FlowType flowType) = 0;
|
||||
virtual void setNumSlides(unsigned int slides) = 0;
|
||||
virtual void setImageReady(int index,const QByteArray & image) = 0;
|
||||
virtual void updateSize() = 0;
|
||||
virtual void updateConfig(QSettings * settings) = 0;
|
||||
|
||||
protected:
|
||||
void keyPressEvent(QKeyEvent* event);
|
||||
//bool eventFilter(QObject *, QEvent *);
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
BIN
YACReader/icon.ico
Normal file
BIN
YACReader/icon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 97 KiB |
1
YACReader/icon.rc
Normal file
1
YACReader/icon.rc
Normal file
@ -0,0 +1 @@
|
||||
IDI_ICON1 ICON DISCARDABLE "icon.ico"
|
||||
292
YACReader/magnifying_glass.cpp
Normal file
292
YACReader/magnifying_glass.cpp
Normal file
@ -0,0 +1,292 @@
|
||||
#include "magnifying_glass.h"
|
||||
#include "viewer.h"
|
||||
#include "configuration.h"
|
||||
#include "shortcuts_manager.h"
|
||||
|
||||
#include <QScrollBar>
|
||||
|
||||
MagnifyingGlass::MagnifyingGlass(int w, int h, QWidget * parent)
|
||||
:QLabel(parent),zoomLevel(0.5)
|
||||
{
|
||||
setup(QSize(w,h));
|
||||
}
|
||||
|
||||
MagnifyingGlass::MagnifyingGlass(const QSize & size, QWidget * parent)
|
||||
:QLabel(parent),zoomLevel(0.5)
|
||||
{
|
||||
setup(size);
|
||||
}
|
||||
|
||||
void MagnifyingGlass::setup(const QSize & size)
|
||||
{
|
||||
resize(size);
|
||||
setScaledContents(true);
|
||||
setMouseTracking(true);
|
||||
setCursor(QCursor(QBitmap(1,1),QBitmap(1,1)));
|
||||
}
|
||||
|
||||
void MagnifyingGlass::mouseMoveEvent(QMouseEvent * event)
|
||||
{
|
||||
updateImage();
|
||||
event->accept();
|
||||
}
|
||||
|
||||
void MagnifyingGlass::updateImage(int x, int y)
|
||||
{
|
||||
//image section augmented
|
||||
int zoomWidth = static_cast<int>(width() * zoomLevel);
|
||||
int zoomHeight = static_cast<int>(height() * zoomLevel);
|
||||
Viewer * p = (Viewer *)parent();
|
||||
int currentPos = p->verticalScrollBar()->sliderPosition();
|
||||
const QPixmap * image = p->pixmap();
|
||||
int iWidth = image->width();
|
||||
int iHeight = image->height();
|
||||
float wFactor = static_cast<float>(iWidth) / p->widget()->width();
|
||||
float hFactor = static_cast<float>(iHeight) / p->widget()->height();
|
||||
zoomWidth *= wFactor;
|
||||
zoomHeight *= hFactor;
|
||||
if(p->verticalScrollBar()->minimum()==p->verticalScrollBar()->maximum())
|
||||
{
|
||||
int xp = static_cast<int>(((x-p->widget()->pos().x())*wFactor)-zoomWidth/2);
|
||||
int yp = static_cast<int>((y-p->widget()->pos().y()+currentPos)*hFactor-zoomHeight/2);
|
||||
int xOffset=0;
|
||||
int yOffset=0;
|
||||
int zw=zoomWidth;
|
||||
int zh=zoomHeight;
|
||||
//int wOffset,hOffset=0;
|
||||
bool outImage = false;
|
||||
if(xp<0)
|
||||
{
|
||||
xOffset = -xp;
|
||||
xp=0;
|
||||
zw = zw - xOffset;
|
||||
outImage = true;
|
||||
}
|
||||
if(yp<0)
|
||||
{
|
||||
yOffset = -yp;
|
||||
yp=0;
|
||||
zh = zh - yOffset;
|
||||
outImage = true;
|
||||
}
|
||||
|
||||
if(xp+zoomWidth >= image->width())
|
||||
{
|
||||
zw -= xp+zw - image->width();
|
||||
outImage = true;
|
||||
}
|
||||
if(yp+zoomHeight >= image->height())
|
||||
{
|
||||
zh -= yp+zh - image->height();
|
||||
outImage = true;
|
||||
}
|
||||
if(outImage)
|
||||
{
|
||||
QImage img(zoomWidth,zoomHeight,QImage::Format_RGB32);
|
||||
img.fill(Configuration::getConfiguration().getBackgroundColor());
|
||||
if(zw>0&&zh>0)
|
||||
{
|
||||
QPainter painter(&img);
|
||||
painter.drawPixmap(xOffset,yOffset,p->pixmap()->copy(xp,yp,zw,zh));
|
||||
}
|
||||
setPixmap(QPixmap().fromImage(img));
|
||||
}
|
||||
else
|
||||
setPixmap(p->pixmap()->copy(xp,yp,zoomWidth,zoomHeight));
|
||||
}
|
||||
else
|
||||
{
|
||||
int xp = static_cast<int>(((x-p->widget()->pos().x())*wFactor)-zoomWidth/2);
|
||||
int yp = static_cast<int>((y+currentPos)*hFactor-zoomHeight/2);
|
||||
int xOffset=0;
|
||||
int yOffset=0;
|
||||
int zw=zoomWidth;
|
||||
int zh=zoomHeight;
|
||||
//int wOffset,hOffset=0;
|
||||
bool outImage = false;
|
||||
if(xp<0)
|
||||
{
|
||||
xOffset = -xp;
|
||||
xp=0;
|
||||
zw = zw - xOffset;
|
||||
outImage = true;
|
||||
}
|
||||
if(yp<0)
|
||||
{
|
||||
yOffset = -yp;
|
||||
yp=0;
|
||||
zh = zh - yOffset;
|
||||
outImage = true;
|
||||
}
|
||||
|
||||
if(xp+zoomWidth >= image->width())
|
||||
{
|
||||
zw -= xp+zw - image->width();
|
||||
outImage = true;
|
||||
}
|
||||
if(yp+zoomHeight >= image->height())
|
||||
{
|
||||
zh -= yp+zh - image->height();
|
||||
outImage = true;
|
||||
}
|
||||
if(outImage)
|
||||
{
|
||||
QImage img(zoomWidth,zoomHeight,QImage::Format_RGB32);
|
||||
img.fill(Configuration::getConfiguration().getBackgroundColor());
|
||||
if(zw>0&&zh>0)
|
||||
{
|
||||
QPainter painter(&img);
|
||||
painter.drawPixmap(xOffset,yOffset,p->pixmap()->copy(xp,yp,zw,zh));
|
||||
}
|
||||
setPixmap(QPixmap().fromImage(img));
|
||||
}
|
||||
else
|
||||
setPixmap(p->pixmap()->copy(xp,yp,zoomWidth,zoomHeight));
|
||||
}
|
||||
move(static_cast<int>(x-float(width())/2),static_cast<int>(y-float(height())/2));
|
||||
}
|
||||
|
||||
void MagnifyingGlass::updateImage()
|
||||
{
|
||||
if(isVisible())
|
||||
{
|
||||
QPoint p = QPoint(cursor().pos().x(),cursor().pos().y());
|
||||
p = this->parentWidget()->mapFromGlobal(p);
|
||||
updateImage(p.x(),p.y());
|
||||
}
|
||||
}
|
||||
void MagnifyingGlass::wheelEvent(QWheelEvent * event)
|
||||
{
|
||||
switch(event->modifiers())
|
||||
{
|
||||
//size
|
||||
case Qt::NoModifier:
|
||||
if(event->delta()<0)
|
||||
sizeUp();
|
||||
else
|
||||
sizeDown();
|
||||
break;
|
||||
//size height
|
||||
case Qt::ControlModifier:
|
||||
if(event->delta()<0)
|
||||
heightUp();
|
||||
else
|
||||
heightDown();
|
||||
break;
|
||||
//size width
|
||||
case Qt::AltModifier:
|
||||
if(event->delta()<0)
|
||||
widthUp();
|
||||
else
|
||||
widthDown();
|
||||
break;
|
||||
//zoom level
|
||||
case Qt::ShiftModifier:
|
||||
if(event->delta()<0)
|
||||
zoomIn();
|
||||
else
|
||||
zoomOut();
|
||||
break;
|
||||
}
|
||||
updateImage();
|
||||
event->setAccepted(true);
|
||||
}
|
||||
void MagnifyingGlass::zoomIn()
|
||||
{
|
||||
if(zoomLevel>0.2f)
|
||||
zoomLevel -= 0.025f;
|
||||
}
|
||||
|
||||
void MagnifyingGlass::zoomOut()
|
||||
{
|
||||
if(zoomLevel<0.9f)
|
||||
zoomLevel += 0.025f;
|
||||
}
|
||||
|
||||
void MagnifyingGlass::sizeUp()
|
||||
{
|
||||
Viewer * p = (Viewer *)parent();
|
||||
if(width()<(p->width()*0.90f))
|
||||
resize(width()+30,height()+15);
|
||||
}
|
||||
|
||||
void MagnifyingGlass::sizeDown()
|
||||
{
|
||||
if(width()>175)
|
||||
resize(width()-30,height()-15);
|
||||
}
|
||||
|
||||
void MagnifyingGlass::heightUp()
|
||||
{
|
||||
Viewer * p = (Viewer *)parent();
|
||||
if(height()<(p->height()*0.90f))
|
||||
resize(width(),height()+15);
|
||||
}
|
||||
|
||||
void MagnifyingGlass::heightDown()
|
||||
{
|
||||
if(height()>80)
|
||||
resize(width(),height()-15);
|
||||
}
|
||||
|
||||
void MagnifyingGlass::widthUp()
|
||||
{
|
||||
Viewer * p = (Viewer *)parent();
|
||||
if(width()<(p->width()*0.90f))
|
||||
resize(width()+30,height());
|
||||
}
|
||||
|
||||
void MagnifyingGlass::widthDown()
|
||||
{
|
||||
if(width()>175)
|
||||
resize(width()-30,height());
|
||||
}
|
||||
|
||||
void MagnifyingGlass::keyPressEvent(QKeyEvent *event)
|
||||
{
|
||||
bool validKey = false;
|
||||
|
||||
int _key = event->key();
|
||||
Qt::KeyboardModifiers modifiers = event->modifiers();
|
||||
|
||||
if(modifiers & Qt::ShiftModifier)
|
||||
_key |= Qt::SHIFT;
|
||||
if (modifiers & Qt::ControlModifier)
|
||||
_key |= Qt::CTRL;
|
||||
if (modifiers & Qt::MetaModifier)
|
||||
_key |= Qt::META;
|
||||
if (modifiers & Qt::AltModifier)
|
||||
_key |= Qt::ALT;
|
||||
|
||||
QKeySequence key(_key);
|
||||
|
||||
if (key == ShortcutsManager::getShortcutsManager().getShortcut(SIZE_UP_MGLASS_ACTION_Y))
|
||||
{
|
||||
sizeUp();
|
||||
validKey = true;
|
||||
}
|
||||
|
||||
else if (key == ShortcutsManager::getShortcutsManager().getShortcut(SIZE_DOWN_MGLASS_ACTION_Y))
|
||||
{
|
||||
sizeDown();
|
||||
validKey = true;
|
||||
}
|
||||
|
||||
else if (key == ShortcutsManager::getShortcutsManager().getShortcut(ZOOM_IN_MGLASS_ACTION_Y))
|
||||
{
|
||||
zoomIn();
|
||||
validKey = true;
|
||||
}
|
||||
|
||||
else if (key == ShortcutsManager::getShortcutsManager().getShortcut(ZOOM_OUT_MGLASS_ACTION_Y))
|
||||
{
|
||||
zoomOut();
|
||||
validKey = true;
|
||||
}
|
||||
|
||||
if(validKey)
|
||||
{
|
||||
updateImage();
|
||||
event->setAccepted(true);
|
||||
}
|
||||
}
|
||||
34
YACReader/magnifying_glass.h
Normal file
34
YACReader/magnifying_glass.h
Normal file
@ -0,0 +1,34 @@
|
||||
#ifndef __MAGNIFYING_GLASS
|
||||
#define __MAGNIFYING_GLASS
|
||||
|
||||
#include <QLabel>
|
||||
#include <QtGui>
|
||||
#include <QMouseEvent>
|
||||
#include <QWidget>
|
||||
|
||||
class MagnifyingGlass : public QLabel
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
float zoomLevel;
|
||||
void setup(const QSize & size);
|
||||
void keyPressEvent(QKeyEvent * event);
|
||||
public:
|
||||
MagnifyingGlass(int width,int height,QWidget * parent);
|
||||
MagnifyingGlass(const QSize & size, QWidget * parent);
|
||||
void mouseMoveEvent(QMouseEvent * event);
|
||||
public slots:
|
||||
void updateImage(int x, int y);
|
||||
void updateImage();
|
||||
void wheelEvent(QWheelEvent * event);
|
||||
void zoomIn();
|
||||
void zoomOut();
|
||||
void sizeUp();
|
||||
void sizeDown();
|
||||
void heightUp();
|
||||
void heightDown();
|
||||
void widthUp();
|
||||
void widthDown();
|
||||
};
|
||||
|
||||
#endif
|
||||
167
YACReader/main.cpp
Normal file
167
YACReader/main.cpp
Normal file
@ -0,0 +1,167 @@
|
||||
#include <QApplication>
|
||||
#include <QPixmap>
|
||||
#include <QLabel>
|
||||
//#include <QMetaObject>
|
||||
#include <QPushButton>
|
||||
#include <QMainWindow>
|
||||
#include <QtCore>
|
||||
#include <QThread>
|
||||
#include <QFile>
|
||||
#include <QDataStream>
|
||||
#include <QTranslator>
|
||||
#include <QSysInfo>
|
||||
#include "main_window_viewer.h"
|
||||
#include "configuration.h"
|
||||
#include "exit_check.h"
|
||||
|
||||
#include "QsLog.h"
|
||||
#include "QsLogDest.h"
|
||||
|
||||
using namespace QsLogging;
|
||||
|
||||
#if defined(WIN32) && defined(_DEBUG)
|
||||
#define _CRTDBG_MAP_ALLOC
|
||||
#include <stdlib.h>
|
||||
#include <crtdbg.h>
|
||||
#define DEBUG_NEW new( _NORMAL_BLOCK, __FILE__, __LINE__ )
|
||||
#define new DEBUG_NEW
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
#include <QEvent>
|
||||
class YACReaderApplication: public QApplication
|
||||
{
|
||||
public:
|
||||
YACReaderApplication(int & argc, char ** argv) : QApplication(argc,argv)
|
||||
{}
|
||||
|
||||
void setWindow(MainWindowViewer * w)
|
||||
{
|
||||
window = w;
|
||||
}
|
||||
|
||||
protected:
|
||||
bool event(QEvent * event)
|
||||
{
|
||||
switch(event->type())
|
||||
{
|
||||
case QEvent::FileOpen:
|
||||
window->openComicFromPath(static_cast<QFileOpenEvent *>(event)->file());
|
||||
return true;
|
||||
default:
|
||||
return QApplication::event(event);
|
||||
}
|
||||
}
|
||||
private:
|
||||
MainWindowViewer * window;
|
||||
};
|
||||
#endif
|
||||
|
||||
int main(int argc, char * argv[])
|
||||
{
|
||||
#if defined(_MSC_VER) && defined(_DEBUG)
|
||||
_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
|
||||
#endif
|
||||
|
||||
//fix for misplaced text in Qt4.8 and Mavericks
|
||||
#ifdef Q_OS_MAC
|
||||
#if QT_VERSION < 0x050000
|
||||
if(QSysInfo::MacintoshVersion > QSysInfo::MV_10_8)
|
||||
QFont::insertSubstitution(".Lucida Grande UI", "Lucida Grande");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
YACReaderApplication app(argc,argv);
|
||||
#else
|
||||
QApplication app(argc, argv);
|
||||
#endif
|
||||
|
||||
app.setApplicationName("YACReader");
|
||||
app.setOrganizationName("YACReader");
|
||||
qApp->setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||
//simple command line parser
|
||||
//will be replaced by QCommandLineParser in the future
|
||||
QStringList optlist;
|
||||
QStringList arglist;
|
||||
|
||||
if (argc > 1)
|
||||
{
|
||||
//extract options and arguments
|
||||
optlist = QCoreApplication::arguments().filter(QRegExp ("^-{1,2}")); //options starting with "-"
|
||||
arglist = QCoreApplication::arguments().filter(QRegExp ("^(?!-{1,2})")); //positional arguments
|
||||
//deal with standard options
|
||||
if (!optlist.isEmpty())
|
||||
{
|
||||
QTextStream parser(stdout);
|
||||
if (optlist.contains("--version") || optlist.contains("-v"))
|
||||
{
|
||||
parser << app.applicationName() << " " << QString(VERSION) << endl << "Copyright 2014 by Luis Angel San Martin Rodriguez" << endl;
|
||||
return 0;
|
||||
}
|
||||
if (optlist.contains("--help") || optlist.contains("-h"))
|
||||
{
|
||||
parser << endl << "Usage: YACReader [File|Directory|Option]" << endl << endl;
|
||||
parser << "Options:" << endl;
|
||||
parser << " -h, --help\t\tDisplay this text and exit." << endl;
|
||||
parser << " -v, --version\t\tDisplay version information and exit." << endl << endl;
|
||||
parser << "Arguments:" << endl;
|
||||
parser << " file\t\t\tOpen comic file." <<endl;
|
||||
parser << " directory\t\tOpen comic directory." << endl << endl;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
QString destLog = YACReader::getSettingsPath()+"/yacreader.log";
|
||||
QDir().mkpath(YACReader::getSettingsPath());
|
||||
|
||||
Logger& logger = Logger::instance();
|
||||
logger.setLoggingLevel(QsLogging::TraceLevel);
|
||||
|
||||
DestinationPtr fileDestination(DestinationFactory::MakeFileDestination(
|
||||
destLog, EnableLogRotation, MaxSizeBytes(1048576), MaxOldLogCount(2)));
|
||||
DestinationPtr debugDestination(DestinationFactory::MakeDebugOutputDestination());
|
||||
logger.addDestination(debugDestination);
|
||||
logger.addDestination(fileDestination);
|
||||
|
||||
QTranslator translator;
|
||||
QString sufix = QLocale::system().name();
|
||||
#if defined Q_OS_UNIX && !defined Q_OS_MAC
|
||||
translator.load(QString(DATADIR)+"/yacreader/languages/yacreader_"+sufix);
|
||||
#else
|
||||
translator.load(QCoreApplication::applicationDirPath()+"/languages/yacreader_"+sufix);
|
||||
#endif
|
||||
app.installTranslator(&translator);
|
||||
MainWindowViewer * mwv = new MainWindowViewer();
|
||||
//parser code for comic loading needs to be processed after MainWindowViewer creation
|
||||
//if we have a valid request, open it - if not, load normally
|
||||
if (argc > 1)
|
||||
{
|
||||
if (!optlist.filter("--comicId=").isEmpty() && !optlist.filter("--libraryId=").isEmpty())
|
||||
{
|
||||
if (arglist.count()>1)
|
||||
{
|
||||
mwv->open(arglist.at(1), optlist.filter("--comicId=").at(0).split("=").at(1).toULongLong(), optlist.filter("--libraryId=").at(0).split("=").at(1).toULongLong());
|
||||
}
|
||||
}
|
||||
else if ((arglist.count()>1))
|
||||
{
|
||||
//open first positional argument, silently ignore all following positional arguments
|
||||
mwv->openComicFromPath(arglist.at(1));
|
||||
}
|
||||
}
|
||||
#ifdef Q_OS_MAC
|
||||
app.setWindow(mwv);
|
||||
#endif
|
||||
mwv->show();
|
||||
|
||||
int ret = app.exec();
|
||||
|
||||
//Configuration::getConfiguration().save();
|
||||
|
||||
YACReader::exitCheck(ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
1388
YACReader/main_window_viewer.cpp
Normal file
1388
YACReader/main_window_viewer.cpp
Normal file
File diff suppressed because it is too large
Load Diff
163
YACReader/main_window_viewer.h
Normal file
163
YACReader/main_window_viewer.h
Normal file
@ -0,0 +1,163 @@
|
||||
#ifndef __MAIN_WINDOW_VIEWER_H
|
||||
#define __MAIN_WINDOW_VIEWER_H
|
||||
#include <QMainWindow>
|
||||
#include <QScrollArea>
|
||||
#include <QToolBar>
|
||||
#include <QAction>
|
||||
#include <QKeyEvent>
|
||||
#include <QMouseEvent>
|
||||
#include <QCloseEvent>
|
||||
#include <QSettings>
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
#include "yacreader_macosx_toolbar.h"
|
||||
#endif
|
||||
|
||||
#include "comic_db.h"
|
||||
|
||||
class Comic;
|
||||
class Viewer;
|
||||
class OptionsDialog;
|
||||
class HelpAboutDialog;
|
||||
class HttpVersionChecker;
|
||||
class ShortcutsDialog;
|
||||
class YACReaderSliderAction;
|
||||
class YACReaderSlider;
|
||||
class EditShortcutsDialog;
|
||||
|
||||
class MainWindowViewer : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public slots:
|
||||
void open();
|
||||
void open(QString path, ComicDB & comic, QList<ComicDB> & siblings);
|
||||
void open(QString path, qint64 comicId, qint64 libraryId);
|
||||
void openFolder();
|
||||
void saveImage();
|
||||
void toggleToolBars();
|
||||
void hideToolBars();
|
||||
void showToolBars();
|
||||
void changeFit();
|
||||
void enableActions();
|
||||
void disableActions();
|
||||
void toggleFullScreen();
|
||||
void toFullScreen();
|
||||
void toNormal();
|
||||
void loadConfiguration();
|
||||
void newVersion();
|
||||
void openPreviousComic();
|
||||
void openNextComic();
|
||||
void openComicFromPath(QString pathFile);
|
||||
void openFolderFromPath(QString pathDir);
|
||||
void openFolderFromPath(QString pathFile, QString atFileName);
|
||||
void alwaysOnTopSwitch();
|
||||
void adjustToFullSizeSwitch();
|
||||
void reloadOptions();
|
||||
void fitToWidth();
|
||||
void fitToHeight();
|
||||
void checkNewVersion();
|
||||
void processReset();
|
||||
void setUpShortcutsManagement();
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
void toggleFitToWidthSlider();
|
||||
#endif
|
||||
/*void viewComic();
|
||||
void prev();
|
||||
void next();
|
||||
void updatePage();*/
|
||||
|
||||
private:
|
||||
//!State
|
||||
bool fullscreen;
|
||||
bool toolbars;
|
||||
bool alwaysOnTop;
|
||||
bool fromMaximized;
|
||||
|
||||
QString currentDirectory;
|
||||
QString currentDirectoryImgDest;
|
||||
//!Widgets
|
||||
Viewer * viewer;
|
||||
//GoToDialog * goToDialog;
|
||||
OptionsDialog * optionsDialog;
|
||||
HelpAboutDialog * had;
|
||||
ShortcutsDialog * shortcutsDialog;
|
||||
EditShortcutsDialog * editShortcutsDialog;
|
||||
|
||||
//! ToolBars
|
||||
#ifdef Q_OS_MAC
|
||||
YACReaderMacOSXToolbar * comicToolBar;
|
||||
#else
|
||||
QToolBar * comicToolBar;
|
||||
#endif
|
||||
|
||||
//! Actions
|
||||
QAction *openAction;
|
||||
QAction *openFolderAction;
|
||||
QAction *saveImageAction;
|
||||
QAction *openPreviousComicAction;
|
||||
QAction *openNextComicAction;
|
||||
QAction *nextAction;
|
||||
QAction *prevAction;
|
||||
QAction *adjustWidthAction;
|
||||
QAction *adjustHeightAction;
|
||||
QAction *goToPageAction;
|
||||
QAction *optionsAction;
|
||||
QAction *helpAboutAction;
|
||||
QAction *showMagnifyingGlassAction;
|
||||
QAction *setBookmarkAction;
|
||||
QAction *showBookmarksAction;
|
||||
QAction *leftRotationAction;
|
||||
QAction *rightRotationAction;
|
||||
QAction *showInfoAction;
|
||||
QAction *closeAction;
|
||||
QAction *doublePageAction;
|
||||
QAction *doubleMangaPageAction;
|
||||
QAction *showShorcutsAction;
|
||||
QAction *showDictionaryAction;
|
||||
QAction *alwaysOnTopAction;
|
||||
QAction *adjustToFullSizeAction;
|
||||
QAction *showFlowAction;
|
||||
|
||||
QAction *showEditShortcutsAction;
|
||||
#ifdef Q_OS_MAC
|
||||
YACReaderSlider * sliderAction;
|
||||
#else
|
||||
YACReaderSliderAction * sliderAction;
|
||||
#endif
|
||||
|
||||
HttpVersionChecker * versionChecker;
|
||||
QString previousComicPath;
|
||||
QString nextComicPath;
|
||||
//! M<>todo que inicializa el interfaz.
|
||||
void setupUI();
|
||||
void createActions();
|
||||
void createToolBars();
|
||||
void getSiblingComics(QString path,QString currentComic);
|
||||
|
||||
//! Manejadores de evento:
|
||||
void keyPressEvent(QKeyEvent *event);
|
||||
//void resizeEvent(QResizeEvent * event);
|
||||
void mouseDoubleClickEvent ( QMouseEvent * event );
|
||||
void dropEvent(QDropEvent *event);
|
||||
void dragEnterEvent(QDragEnterEvent *event);
|
||||
|
||||
QSettings * settings;
|
||||
|
||||
ComicDB currentComicDB;
|
||||
QList<ComicDB> siblingComics;
|
||||
bool isClient;
|
||||
QString startComicPath;
|
||||
quint64 libraryId;
|
||||
signals:
|
||||
void closed();
|
||||
protected:
|
||||
virtual void closeEvent ( QCloseEvent * event );
|
||||
void sendComic();
|
||||
public:
|
||||
MainWindowViewer();
|
||||
~MainWindowViewer();
|
||||
|
||||
};
|
||||
#endif
|
||||
83
YACReader/notifications_label_widget.cpp
Normal file
83
YACReader/notifications_label_widget.cpp
Normal file
@ -0,0 +1,83 @@
|
||||
#include "notifications_label_widget.h"
|
||||
|
||||
#include <QLabel>
|
||||
#include <QHBoxLayout>
|
||||
#include <QPropertyAnimation>
|
||||
#include <QGraphicsOpacityEffect>
|
||||
|
||||
NotificationsLabelWidget::NotificationsLabelWidget(QWidget * parent)
|
||||
:QWidget(parent)
|
||||
{
|
||||
setAttribute(Qt::WA_LayoutUsesWidgetRect,true);
|
||||
effect = new QGraphicsOpacityEffect(this);
|
||||
effect->setOpacity(1.0);
|
||||
|
||||
effect2= new QGraphicsOpacityEffect(this);
|
||||
effect->setOpacity(1.0);
|
||||
|
||||
anim = new QPropertyAnimation(effect,"opacity");
|
||||
anim->setDuration(500);
|
||||
anim->setStartValue(1.0);
|
||||
anim->setEndValue(0.0);
|
||||
anim->setEasingCurve(QEasingCurve::InExpo);
|
||||
|
||||
anim2 = new QPropertyAnimation(effect2,"opacity");
|
||||
anim2->setDuration(500);
|
||||
anim2->setStartValue(1.0);
|
||||
anim2->setEndValue(0.0);
|
||||
anim2->setEasingCurve(QEasingCurve::InExpo);
|
||||
anim2->start();
|
||||
|
||||
connect(anim,SIGNAL(finished()),this,SLOT(hide()));
|
||||
|
||||
imgLabel = new QLabel(this);
|
||||
QPixmap p(":/images/notificationsLabel.png");
|
||||
imgLabel->resize(p.size());
|
||||
imgLabel->setPixmap(p);
|
||||
imgLabel->setAttribute(Qt::WA_LayoutUsesWidgetRect,true);
|
||||
|
||||
textLabel = new QLabel(this);
|
||||
textLabel->setAlignment(Qt::AlignVCenter|Qt::AlignHCenter);
|
||||
textLabel->setStyleSheet("QLabel { color : white; font-size:24px; }");
|
||||
textLabel->setAttribute(Qt::WA_LayoutUsesWidgetRect,true);
|
||||
|
||||
textLabel->setGeometry(imgLabel->geometry());
|
||||
#ifndef Q_OS_MAC
|
||||
imgLabel->setGraphicsEffect(effect);
|
||||
textLabel->setGraphicsEffect(effect2);
|
||||
#endif
|
||||
resize(p.size());
|
||||
updatePosition();
|
||||
|
||||
}
|
||||
|
||||
void NotificationsLabelWidget::flash()
|
||||
{
|
||||
updatePosition();
|
||||
anim->stop();
|
||||
anim2->stop();
|
||||
anim->start();
|
||||
anim2->start();
|
||||
|
||||
setVisible(true);
|
||||
}
|
||||
|
||||
void NotificationsLabelWidget::setText(const QString & text)
|
||||
{
|
||||
textLabel->setText(text);
|
||||
QRect geom = imgLabel->geometry();
|
||||
QSize size = geom.size();
|
||||
size.setHeight(size.height() - 10); //TODO remove this amazing magic number
|
||||
geom.setSize(size);
|
||||
textLabel->setGeometry(geom);
|
||||
}
|
||||
|
||||
void NotificationsLabelWidget::updatePosition()
|
||||
{
|
||||
QWidget * parent = dynamic_cast<QWidget *>(this->parent());
|
||||
if(parent == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
move(QPoint((parent->geometry().size().width()-this->width())/2,(parent->geometry().size().height()-this->height())/2));
|
||||
}
|
||||
29
YACReader/notifications_label_widget.h
Normal file
29
YACReader/notifications_label_widget.h
Normal file
@ -0,0 +1,29 @@
|
||||
#ifndef NOTIFICATIONS_LABEL_WIDGET_H
|
||||
#define NOTIFICATIONS_LABEL_WIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class QLabel;
|
||||
class QPropertyAnimation;
|
||||
class QGraphicsOpacityEffect;
|
||||
|
||||
class NotificationsLabelWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
QLabel * imgLabel;
|
||||
QLabel * textLabel;
|
||||
QPropertyAnimation * anim;
|
||||
QPropertyAnimation * anim2;
|
||||
QGraphicsOpacityEffect * effect;
|
||||
QGraphicsOpacityEffect * effect2;
|
||||
public:
|
||||
NotificationsLabelWidget(QWidget * parent);
|
||||
|
||||
public slots:
|
||||
void flash();
|
||||
void setText(const QString & text);
|
||||
void updatePosition();
|
||||
};
|
||||
|
||||
#endif
|
||||
307
YACReader/options_dialog.cpp
Normal file
307
YACReader/options_dialog.cpp
Normal file
@ -0,0 +1,307 @@
|
||||
#include "options_dialog.h"
|
||||
#include "configuration.h"
|
||||
#include <QVBoxLayout>
|
||||
#include <QHBoxLayout>
|
||||
#include <QFileDialog>
|
||||
#include <QGroupBox>
|
||||
#include <QRadioButton>
|
||||
#include <QTabWidget>
|
||||
#include <QSlider>
|
||||
#include <QLineEdit>
|
||||
#include <QPushButton>
|
||||
#include <QLabel>
|
||||
#include <QColorDialog>
|
||||
|
||||
#include "yacreader_spin_slider_widget.h"
|
||||
#include "yacreader_flow_config_widget.h"
|
||||
#include "yacreader_gl_flow_config_widget.h"
|
||||
|
||||
OptionsDialog::OptionsDialog(QWidget * parent)
|
||||
:YACReaderOptionsDialog(parent)
|
||||
{
|
||||
|
||||
QTabWidget * tabWidget = new QTabWidget();
|
||||
|
||||
QVBoxLayout * layout = new QVBoxLayout(this);
|
||||
|
||||
QWidget * pageGeneral = new QWidget();
|
||||
QWidget * pageFlow = new QWidget();
|
||||
QWidget * pageImage = new QWidget();
|
||||
QVBoxLayout * layoutGeneral = new QVBoxLayout();
|
||||
QVBoxLayout * layoutFlow = new QVBoxLayout();
|
||||
QVBoxLayout * layoutImageV = new QVBoxLayout();
|
||||
QGridLayout * layoutImage = new QGridLayout();
|
||||
|
||||
QGroupBox *slideSizeBox = new QGroupBox(tr("\"Go to flow\" size"));
|
||||
//slideSizeLabel = new QLabel(,this);
|
||||
slideSize = new QSlider(this);
|
||||
slideSize->setMinimum(125);
|
||||
slideSize->setMaximum(350);
|
||||
slideSize->setPageStep(5);
|
||||
slideSize->setOrientation(Qt::Horizontal);
|
||||
QHBoxLayout * slideLayout = new QHBoxLayout();
|
||||
slideLayout->addWidget(slideSize);
|
||||
slideSizeBox->setLayout(slideLayout);
|
||||
|
||||
QGroupBox *pathBox = new QGroupBox(tr("My comics path"));
|
||||
|
||||
QHBoxLayout * path = new QHBoxLayout();
|
||||
path->addWidget(pathEdit = new QLineEdit());
|
||||
path->addWidget(pathFindButton = new QPushButton(QIcon(":/images/find_folder.png"),""));
|
||||
pathBox->setLayout(path);
|
||||
|
||||
connect(pathFindButton,SIGNAL(clicked()),this,SLOT(findFolder()));
|
||||
|
||||
//fitToWidthRatioLabel = new QLabel(tr("Page width stretch"),this);
|
||||
QGroupBox *fitBox = new QGroupBox(tr("Page width stretch"));
|
||||
fitToWidthRatioS = new QSlider(this);
|
||||
fitToWidthRatioS->setMinimum(50);
|
||||
fitToWidthRatioS->setMaximum(100);
|
||||
fitToWidthRatioS->setPageStep(5);
|
||||
fitToWidthRatioS->setOrientation(Qt::Horizontal);
|
||||
//connect(fitToWidthRatioS,SIGNAL(valueChanged(int)),this,SLOT(fitToWidthRatio(int)));
|
||||
QHBoxLayout * fitLayout = new QHBoxLayout;
|
||||
fitLayout->addWidget(fitToWidthRatioS);
|
||||
fitBox->setLayout(fitLayout);
|
||||
|
||||
QHBoxLayout * colorSelection = new QHBoxLayout;
|
||||
backgroundColor = new QLabel();
|
||||
QPalette pal = backgroundColor->palette();
|
||||
pal.setColor(backgroundColor->backgroundRole(), Qt::black);
|
||||
backgroundColor->setPalette(pal);
|
||||
backgroundColor->setAutoFillBackground(true);
|
||||
|
||||
colorDialog = new QColorDialog(Qt::red,this);
|
||||
connect(colorDialog,SIGNAL(colorSelected(QColor)),this,SLOT(updateColor(QColor)));
|
||||
|
||||
QGroupBox *colorBox = new QGroupBox(tr("Background color"));
|
||||
//backgroundColor->setMinimumWidth(100);
|
||||
colorSelection->addWidget(backgroundColor);
|
||||
colorSelection->addWidget(selectBackgroundColorButton = new QPushButton(tr("Choose")));
|
||||
colorSelection->setStretchFactor(backgroundColor,1);
|
||||
colorSelection->setStretchFactor(selectBackgroundColorButton,0);
|
||||
//colorSelection->addStretch();
|
||||
connect(selectBackgroundColorButton, SIGNAL(clicked()), colorDialog, SLOT(show()));
|
||||
colorBox->setLayout(colorSelection);
|
||||
|
||||
brightnessS = new YACReaderSpinSliderWidget(this,true);
|
||||
brightnessS->setRange(0,100);
|
||||
//brightnessS->setText(tr("Brightness"));
|
||||
brightnessS->setTracking(false);
|
||||
connect(brightnessS,SIGNAL(valueChanged(int)),this,SLOT(brightnessChanged(int)));
|
||||
|
||||
contrastS = new YACReaderSpinSliderWidget(this,true);
|
||||
contrastS->setRange(0,250);
|
||||
//contrastS->setText(tr("Contrast"));
|
||||
contrastS->setTracking(false);
|
||||
connect(contrastS,SIGNAL(valueChanged(int)),this,SLOT(contrastChanged(int)));
|
||||
|
||||
gammaS = new YACReaderSpinSliderWidget(this,true);
|
||||
gammaS->setRange(0,250);
|
||||
//gammaS->setText(tr("Gamma"));
|
||||
gammaS->setTracking(false);
|
||||
connect(gammaS,SIGNAL(valueChanged(int)),this,SLOT(gammaChanged(int)));
|
||||
//connect(brightnessS,SIGNAL(valueChanged(int)),this,SIGNAL(changedOptions()));
|
||||
|
||||
QHBoxLayout * buttons = new QHBoxLayout();
|
||||
buttons->addStretch();
|
||||
buttons->addWidget(new QLabel(tr("Restart is needed")));
|
||||
buttons->addWidget(accept);
|
||||
buttons->addWidget(cancel);
|
||||
|
||||
layoutGeneral->addWidget(pathBox);
|
||||
layoutGeneral->addWidget(slideSizeBox);
|
||||
layoutGeneral->addWidget(fitBox);
|
||||
layoutGeneral->addWidget(colorBox);
|
||||
layoutGeneral->addWidget(shortcutsBox);
|
||||
layoutGeneral->addStretch();
|
||||
layoutFlow->addWidget(sw);
|
||||
layoutFlow->addWidget(gl);
|
||||
layoutFlow->addWidget(useGL);
|
||||
layoutFlow->addStretch();
|
||||
layoutImage->addWidget(new QLabel(tr("Brightness")),0,0);
|
||||
layoutImage->addWidget(new QLabel(tr("Contrast")),1,0);
|
||||
layoutImage->addWidget(new QLabel(tr("Gamma")),2,0);
|
||||
layoutImage->addWidget(brightnessS,0,1);
|
||||
layoutImage->addWidget(contrastS,1,1);
|
||||
layoutImage->addWidget(gammaS,2,1);
|
||||
QPushButton * pushButton = new QPushButton(tr("Reset"));
|
||||
connect(pushButton,SIGNAL(pressed()),this,SLOT(resetImageConfig()));
|
||||
layoutImage->addWidget(pushButton,3,0);
|
||||
layoutImage->setColumnStretch(1,1);
|
||||
|
||||
|
||||
QGroupBox *imageBox = new QGroupBox(tr("Image options"));
|
||||
imageBox->setLayout(layoutImage);
|
||||
layoutImageV->addWidget(imageBox);
|
||||
layoutImageV->addStretch();
|
||||
|
||||
|
||||
pageGeneral->setLayout(layoutGeneral);
|
||||
pageFlow->setLayout(layoutFlow);
|
||||
pageImage->setLayout(layoutImageV);
|
||||
|
||||
tabWidget->addTab(pageGeneral,tr("General"));
|
||||
tabWidget->addTab(pageFlow,tr("Page Flow"));
|
||||
tabWidget->addTab(pageImage,tr("Image adjustment"));
|
||||
|
||||
layout->addWidget(tabWidget);
|
||||
layout->addLayout(buttons);
|
||||
|
||||
setLayout(layout);
|
||||
|
||||
//disable vSyncCheck
|
||||
gl->vSyncCheck->hide();
|
||||
|
||||
//restoreOptions(); //load options
|
||||
//resize(400,0);
|
||||
setModal (true);
|
||||
setWindowTitle(tr("Options"));
|
||||
|
||||
this->layout()->setSizeConstraint(QLayout::SetFixedSize);
|
||||
}
|
||||
|
||||
void OptionsDialog::findFolder()
|
||||
{
|
||||
QString s = QFileDialog::getExistingDirectory(0,tr("Comics directory"),".");
|
||||
if(!s.isEmpty())
|
||||
{
|
||||
pathEdit->setText(s);
|
||||
}
|
||||
}
|
||||
|
||||
void OptionsDialog::saveOptions()
|
||||
{
|
||||
|
||||
settings->setValue(GO_TO_FLOW_SIZE,QSize(static_cast<int>(slideSize->sliderPosition()/SLIDE_ASPECT_RATIO),slideSize->sliderPosition()));
|
||||
|
||||
if(sw->radio1->isChecked())
|
||||
settings->setValue(FLOW_TYPE_SW,0);
|
||||
if(sw->radio2->isChecked())
|
||||
settings->setValue(FLOW_TYPE_SW,1);
|
||||
if(sw->radio3->isChecked())
|
||||
settings->setValue(FLOW_TYPE_SW,2);
|
||||
|
||||
settings->setValue(PATH,pathEdit->text());
|
||||
|
||||
settings->setValue(BACKGROUND_COLOR,colorDialog->currentColor());
|
||||
settings->setValue(FIT_TO_WIDTH_RATIO,fitToWidthRatioS->sliderPosition()/100.0);
|
||||
|
||||
YACReaderOptionsDialog::saveOptions();
|
||||
}
|
||||
|
||||
void OptionsDialog::restoreOptions(QSettings * settings)
|
||||
{
|
||||
YACReaderOptionsDialog::restoreOptions(settings);
|
||||
|
||||
slideSize->setSliderPosition(settings->value(GO_TO_FLOW_SIZE).toSize().height());
|
||||
switch(settings->value(FLOW_TYPE_SW).toInt())
|
||||
{
|
||||
case 0:
|
||||
sw->radio1->setChecked(true);
|
||||
break;
|
||||
case 1:
|
||||
sw->radio2->setChecked(true);
|
||||
break;
|
||||
case 2:
|
||||
sw->radio3->setChecked(true);
|
||||
break;
|
||||
default:
|
||||
sw->radio1->setChecked(true);
|
||||
break;
|
||||
}
|
||||
|
||||
pathEdit->setText(settings->value(PATH).toString());
|
||||
|
||||
updateColor(settings->value(BACKGROUND_COLOR).value<QColor>());
|
||||
fitToWidthRatioS->setSliderPosition(settings->value(FIT_TO_WIDTH_RATIO).toFloat()*100);
|
||||
|
||||
brightnessS->setValue(settings->value(BRIGHTNESS,0).toInt());
|
||||
contrastS->setValue(settings->value(CONTRAST,100).toInt());
|
||||
gammaS->setValue(settings->value(GAMMA,100).toInt());
|
||||
}
|
||||
|
||||
|
||||
void OptionsDialog::updateColor(const QColor & color)
|
||||
{
|
||||
QPalette pal = backgroundColor->palette();
|
||||
pal.setColor(backgroundColor->backgroundRole(), color);
|
||||
backgroundColor->setPalette(pal);
|
||||
backgroundColor->setAutoFillBackground(true);
|
||||
colorDialog->setCurrentColor(color);
|
||||
|
||||
settings->setValue(BACKGROUND_COLOR,color);
|
||||
|
||||
emit(changedOptions());
|
||||
}
|
||||
|
||||
void OptionsDialog::fitToWidthRatio(int value)
|
||||
{
|
||||
Configuration::getConfiguration().setFitToWidthRatio(value/100.0);
|
||||
emit(fitToWidthRatioChanged(value/100.0));
|
||||
}
|
||||
|
||||
void OptionsDialog::brightnessChanged(int value)
|
||||
{
|
||||
QSettings settings(YACReader::getSettingsPath()+"/YACReader.ini",QSettings::IniFormat);
|
||||
settings.setValue(BRIGHTNESS,value);
|
||||
emit changedFilters(brightnessS->getValue(), contrastS->getValue(), gammaS->getValue());
|
||||
//emit(changedImageOptions());
|
||||
}
|
||||
|
||||
void OptionsDialog::contrastChanged(int value)
|
||||
{
|
||||
QSettings settings(YACReader::getSettingsPath()+"/YACReader.ini",QSettings::IniFormat);
|
||||
settings.setValue(CONTRAST,value);
|
||||
emit changedFilters(brightnessS->getValue(), contrastS->getValue(), gammaS->getValue());
|
||||
///emit(changedImageOptions());
|
||||
}
|
||||
|
||||
void OptionsDialog::gammaChanged(int value)
|
||||
{
|
||||
QSettings settings(YACReader::getSettingsPath()+"/YACReader.ini",QSettings::IniFormat);
|
||||
settings.setValue(GAMMA,value);
|
||||
emit changedFilters(brightnessS->getValue(), contrastS->getValue(), gammaS->getValue());
|
||||
//emit(changedImageOptions());
|
||||
}
|
||||
|
||||
void OptionsDialog::resetImageConfig()
|
||||
{
|
||||
brightnessS->setValue(0);
|
||||
contrastS->setValue(100);
|
||||
gammaS->setValue(100);
|
||||
QSettings settings(YACReader::getSettingsPath()+"/YACReader.ini",QSettings::IniFormat);
|
||||
settings.setValue(BRIGHTNESS,0);
|
||||
settings.setValue(CONTRAST,100);
|
||||
settings.setValue(GAMMA,100);
|
||||
emit changedFilters(brightnessS->getValue(), contrastS->getValue(), gammaS->getValue());
|
||||
//emit(changedImageOptions());
|
||||
}
|
||||
|
||||
void OptionsDialog::show()
|
||||
{
|
||||
//TODO solucionar el tema de las settings, esto sólo debería aparecer en una única línea de código
|
||||
QSettings *s = new QSettings(YACReader::getSettingsPath()+"/YACReader.ini",QSettings::IniFormat);
|
||||
fitToWidthRatioS->disconnect();
|
||||
fitToWidthRatioS->setSliderPosition(settings->value(FIT_TO_WIDTH_RATIO).toFloat()*100);
|
||||
connect(fitToWidthRatioS,SIGNAL(valueChanged(int)),this,SLOT(fitToWidthRatio(int)));
|
||||
QDialog::show();
|
||||
delete s;
|
||||
}
|
||||
|
||||
void OptionsDialog::setFilters(int brightness, int contrast, int gamma)
|
||||
{
|
||||
if(brightness != -1)
|
||||
brightnessS->setValue(brightness);
|
||||
else
|
||||
brightnessS->setValue(0);
|
||||
if(contrast != -1)
|
||||
contrastS->setValue(contrast);
|
||||
else
|
||||
contrastS->setValue(100);
|
||||
if(gamma != -1)
|
||||
gammaS->setValue(gamma);
|
||||
else
|
||||
gammaS->setValue(100);
|
||||
|
||||
}
|
||||
70
YACReader/options_dialog.h
Normal file
70
YACReader/options_dialog.h
Normal file
@ -0,0 +1,70 @@
|
||||
#ifndef __OPTIONS_DIALOG_H
|
||||
#define __OPTIONS_DIALOG_H
|
||||
|
||||
#include "yacreader_options_dialog.h"
|
||||
|
||||
class QDialog;
|
||||
class QLabel;
|
||||
class QLineEdit;
|
||||
class QPushButton;
|
||||
class QSlider;
|
||||
class QPushButton;
|
||||
class QRadioButton;
|
||||
class QColorDialog;
|
||||
class YACReaderSpinSliderWidget;
|
||||
|
||||
|
||||
class OptionsDialog : public YACReaderOptionsDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
OptionsDialog(QWidget * parent = 0);
|
||||
private:
|
||||
//QLabel * pathLabel;
|
||||
QLineEdit * pathEdit;
|
||||
QPushButton * pathFindButton;
|
||||
|
||||
QLabel * magGlassSizeLabel;
|
||||
|
||||
QLabel * zoomLevel;
|
||||
|
||||
//QLabel * slideSizeLabel;
|
||||
QSlider * slideSize;
|
||||
|
||||
//QLabel * fitToWidthRatioLabel;
|
||||
QSlider * fitToWidthRatioS;
|
||||
|
||||
QLabel * backgroundColor;
|
||||
QPushButton * selectBackgroundColorButton;
|
||||
|
||||
QColorDialog * colorDialog;
|
||||
|
||||
YACReaderSpinSliderWidget * brightnessS;
|
||||
|
||||
YACReaderSpinSliderWidget * contrastS;
|
||||
|
||||
YACReaderSpinSliderWidget * gammaS;
|
||||
|
||||
public slots:
|
||||
void saveOptions();
|
||||
void restoreOptions(QSettings * settings);
|
||||
void findFolder();
|
||||
void updateColor(const QColor & color);
|
||||
void fitToWidthRatio(int value);
|
||||
void brightnessChanged(int value);
|
||||
void contrastChanged(int value);
|
||||
void gammaChanged(int value);
|
||||
void resetImageConfig();
|
||||
void show();
|
||||
void setFilters(int brightness, int contrast, int gamma);
|
||||
|
||||
signals:
|
||||
void changedOptions();
|
||||
void changedImageOptions();
|
||||
void changedFilters(int brightness, int contrast, int gamma);
|
||||
void fitToWidthRatioChanged(float ratio);
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
122
YACReader/page_label_widget.cpp
Normal file
122
YACReader/page_label_widget.cpp
Normal file
@ -0,0 +1,122 @@
|
||||
#include "page_label_widget.h"
|
||||
|
||||
#include <QLabel>
|
||||
#include <QHBoxLayout>
|
||||
#include <QPropertyAnimation>
|
||||
#include <QApplication>
|
||||
#include <QDesktopWidget>
|
||||
|
||||
PageLabelWidget::PageLabelWidget(QWidget * parent)
|
||||
:QWidget(parent)
|
||||
{
|
||||
animation = new QPropertyAnimation(this,"pos");
|
||||
animation->setDuration(150);
|
||||
animation->setEndValue(QPoint((parent->geometry().size().width()-this->width()),-this->height()));
|
||||
|
||||
int verticalRes = QApplication::desktop()->screenGeometry().height();
|
||||
|
||||
imgLabel = new QLabel(this);
|
||||
QPixmap p;
|
||||
if (verticalRes <= 1024)
|
||||
p.load(":/images/numPagesLabel.png");
|
||||
else if (verticalRes <= 1200)
|
||||
p.load(":/images/numPagesLabelMedium.png");
|
||||
else
|
||||
p.load(":/images/numPagesLabelBig.png");
|
||||
imgLabel->resize(p.size());
|
||||
imgLabel->setPixmap(p);
|
||||
|
||||
textLabel = new QLabel(this);
|
||||
textLabel->setAlignment(Qt::AlignVCenter|Qt::AlignHCenter);
|
||||
if(verticalRes <= 1024)
|
||||
textLabel->setStyleSheet("QLabel { color : white; font-size:12px; padding-left:8px; }");
|
||||
else if (verticalRes <= 1200)
|
||||
textLabel->setStyleSheet("QLabel { color : white; font-size:16px; padding-left:8px;}");
|
||||
else
|
||||
textLabel->setStyleSheet("QLabel { color : white; font-size:20px; padding-left:8px; }");
|
||||
|
||||
//informationLabel->setAutoFillBackground(true);
|
||||
//textLabel->setFont(QFont("courier new bold", 12));
|
||||
//textLabel->resize(100,25);
|
||||
|
||||
resize(p.size());
|
||||
//por defecto aparece oculto
|
||||
if(parent != 0)
|
||||
move(QPoint((parent->geometry().size().width()-this->width()),-this->height()));
|
||||
/*QSize size = textLabel->sizeHint();
|
||||
|
||||
int w = width(); // returns screen width
|
||||
int h = height(); // returns screen height
|
||||
int mw = size.width();
|
||||
int mh = size.height();
|
||||
int cw = (w-mw)/2;
|
||||
int ch = 0;
|
||||
textLabel->move(cw,ch);*/
|
||||
}
|
||||
|
||||
void PageLabelWidget::show()
|
||||
{
|
||||
if(this->pos().y() <= 0 && animation->state()!=QPropertyAnimation::Running)
|
||||
{
|
||||
QWidget * parent = dynamic_cast<QWidget *>(this->parent());
|
||||
if(parent == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
QWidget::show();
|
||||
//connect(animation,SIGNAL(finished()),this,SLOT(QWidget::hide()));
|
||||
animation->disconnect();
|
||||
|
||||
animation->setStartValue(QPoint((parent->geometry().size().width()-this->width()),-this->height()));
|
||||
animation->setEndValue(QPoint((parent->geometry().size().width()-this->width()),0));
|
||||
animation->start();
|
||||
}
|
||||
}
|
||||
|
||||
void PageLabelWidget::hide()
|
||||
{
|
||||
|
||||
if(this->pos().y() >= 0 && animation->state()!=QPropertyAnimation::Running)
|
||||
{
|
||||
QWidget * parent = dynamic_cast<QWidget *>(this->parent());
|
||||
if(parent == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
//connect(animation,SIGNAL(finished()),this,SLOT(setHidden()));
|
||||
animation->setStartValue(QPoint((parent->geometry().size().width()-this->width()),0));
|
||||
animation->setEndValue(QPoint((parent->geometry().size().width()-this->width()),-this->height()));
|
||||
animation->start();
|
||||
}
|
||||
}
|
||||
|
||||
void PageLabelWidget::setText(const QString & text)
|
||||
{
|
||||
textLabel->setText(text);
|
||||
QRect geom = imgLabel->geometry();
|
||||
QSize size = geom.size();
|
||||
size.setHeight(size.height() - 10);//TODO remove this amazing magic number
|
||||
geom.setSize(size);
|
||||
textLabel->setGeometry(geom);
|
||||
}
|
||||
|
||||
/*void PageLabelWidget::resizeEvent(QResizeEvent * event)
|
||||
{
|
||||
move(QPoint((((QWidget *) parent())->geometry().size().width()-this->width())/2,0));
|
||||
}*/
|
||||
|
||||
void PageLabelWidget::updatePosition()
|
||||
{
|
||||
QWidget * parent = dynamic_cast<QWidget *>(this->parent());
|
||||
if(parent == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
animation->stop();
|
||||
if (animation->endValue().toPoint().y() == 0)
|
||||
move(QPoint((parent->geometry().size().width()-this->width()),0));
|
||||
else
|
||||
move(QPoint((parent->geometry().size().width()-this->width()),-this->height()));
|
||||
}
|
||||
29
YACReader/page_label_widget.h
Normal file
29
YACReader/page_label_widget.h
Normal file
@ -0,0 +1,29 @@
|
||||
#ifndef PAGE_LABEL_WIDGET_H
|
||||
#define PAGE_LABEL_WIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class QLabel;
|
||||
class QPropertyAnimation;
|
||||
|
||||
class PageLabelWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
QLabel * imgLabel;
|
||||
QLabel * textLabel;
|
||||
QPropertyAnimation * animation;
|
||||
|
||||
//void resizeEvent(QResizeEvent * event);
|
||||
|
||||
public:
|
||||
PageLabelWidget(QWidget * parent);
|
||||
|
||||
public slots:
|
||||
void show();
|
||||
void hide();
|
||||
void setText(const QString & text);
|
||||
void updatePosition();
|
||||
};
|
||||
|
||||
#endif
|
||||
1177
YACReader/render.cpp
Normal file
1177
YACReader/render.cpp
Normal file
File diff suppressed because it is too large
Load Diff
215
YACReader/render.h
Normal file
215
YACReader/render.h
Normal file
@ -0,0 +1,215 @@
|
||||
#ifndef RENDER_H
|
||||
#define RENDER_H
|
||||
|
||||
#include <QImage>
|
||||
#include <QPixmap>
|
||||
#include <QPainter>
|
||||
#include <QThread>
|
||||
#include <QByteArray>
|
||||
#include <QVector>
|
||||
#include "comic.h"
|
||||
//-----------------------------------------------------------------------------
|
||||
// FILTERS
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include <QThread>
|
||||
|
||||
class Comic;
|
||||
class ComicDB;
|
||||
class Render;
|
||||
|
||||
class ImageFilter {
|
||||
public:
|
||||
ImageFilter(){};
|
||||
virtual QImage setFilter(const QImage & image) = 0;
|
||||
inline int getLevel() {return level;};
|
||||
inline void setLevel(int l) {level = l;};
|
||||
protected:
|
||||
int level;
|
||||
};
|
||||
|
||||
class MeanNoiseReductionFilter : public ImageFilter {
|
||||
public:
|
||||
enum NeighborghoodSize{SMALL=9, LARGE=25 };
|
||||
MeanNoiseReductionFilter(enum NeighborghoodSize ns = SMALL);
|
||||
virtual QImage setFilter(const QImage & image);
|
||||
private:
|
||||
enum NeighborghoodSize neighborghoodSize;
|
||||
};
|
||||
|
||||
class MedianNoiseReductionFilter : public ImageFilter {
|
||||
public:
|
||||
enum NeighborghoodSize{SMALL=9, LARGE=25 };
|
||||
MedianNoiseReductionFilter(enum NeighborghoodSize ns = SMALL);
|
||||
virtual QImage setFilter(const QImage & image);
|
||||
private:
|
||||
enum NeighborghoodSize neighborghoodSize;
|
||||
};
|
||||
|
||||
class BrightnessFilter : public ImageFilter {
|
||||
public:
|
||||
BrightnessFilter(int l=-1);
|
||||
virtual QImage setFilter(const QImage & image);
|
||||
};
|
||||
|
||||
class ContrastFilter : public ImageFilter {
|
||||
public:
|
||||
ContrastFilter(int l=-1);
|
||||
virtual QImage setFilter(const QImage & image);
|
||||
};
|
||||
|
||||
class GammaFilter : public ImageFilter {
|
||||
public:
|
||||
GammaFilter(int l=-1);
|
||||
virtual QImage setFilter(const QImage & image);
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// RENDER
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class PageRender : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
PageRender();
|
||||
PageRender(Render * render,int numPage, const QByteArray & rawData, QImage * page,unsigned int degrees=0, QVector<ImageFilter *> filters = QVector<ImageFilter *>());
|
||||
int getNumPage(){return numPage;};
|
||||
void setData(const QByteArray & rawData){data = rawData;};
|
||||
void setPage(QImage * p){page = p;};
|
||||
void setRotation(unsigned int d){degrees = d;};
|
||||
void setFilters(QVector<ImageFilter *> f){filters = f;};
|
||||
private:
|
||||
int numPage;
|
||||
QByteArray data;
|
||||
QImage * page;
|
||||
unsigned int degrees;
|
||||
QVector<ImageFilter *> filters;
|
||||
void run();
|
||||
Render * render;
|
||||
signals:
|
||||
void pageReady(int);
|
||||
|
||||
};
|
||||
//-----------------------------------------------------------------------------
|
||||
// RENDER
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
/*class DoublePageRender : public PageRender
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
DoublePageRender(Render * render, int firstPage, const QByteArray & firstPageData,const QByteArray & secondPageData, QImage * page,unsigned int degrees=0, QVector<ImageFilter *> filters = QVector<ImageFilter *>());
|
||||
private:
|
||||
int numPage;
|
||||
QByteArray data;
|
||||
QByteArray data2;
|
||||
QImage * page;
|
||||
unsigned int degrees;
|
||||
QVector<ImageFilter *> filters;
|
||||
void run();
|
||||
Render * render;
|
||||
signals:
|
||||
void pageReady(int);
|
||||
|
||||
};
|
||||
*/
|
||||
|
||||
class Render : public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
Render();
|
||||
~Render();
|
||||
|
||||
public slots:
|
||||
void render();
|
||||
QPixmap * getCurrentPage();
|
||||
QPixmap * getCurrentDoublePage();
|
||||
QPixmap * getCurrentDoubleMangaPage();
|
||||
bool currentPageIsDoublePage();
|
||||
bool nextPageIsDoublePage();
|
||||
bool previousPageIsDoublePage();
|
||||
void goTo(int index);
|
||||
void doublePageSwitch();
|
||||
void doubleMangaPageSwitch();
|
||||
void setRotation(int degrees);
|
||||
void setComic(Comic * c);
|
||||
void prepareAvailablePage(int page);
|
||||
void update();
|
||||
void setNumPages(unsigned int numPages);
|
||||
void pageRawDataReady(int page);
|
||||
//--comic interface
|
||||
void nextPage();
|
||||
void previousPage();
|
||||
void nextDoublePage();
|
||||
void previousDoublePage();
|
||||
void load(const QString & path, const ComicDB & comic);
|
||||
void load(const QString & path, int atPage);
|
||||
void createComic(const QString & path);
|
||||
void loadComic(const QString & path,const ComicDB & comic);
|
||||
void loadComic(const QString & path, int atPage);
|
||||
void startLoad();
|
||||
void rotateRight();
|
||||
void rotateLeft();
|
||||
unsigned int getIndex();
|
||||
unsigned int numPages();
|
||||
bool hasLoadedComic();
|
||||
void updateBuffer();
|
||||
void fillBuffer();
|
||||
void invalidate();
|
||||
QString getCurrentPagesInformation();
|
||||
void setBookmark();
|
||||
void removeBookmark();
|
||||
void save();
|
||||
void reset();
|
||||
void reload();
|
||||
void updateFilters(int brightness, int contrast, int gamma);
|
||||
Bookmarks * getBookmarks();
|
||||
//sets the firt page to render
|
||||
void renderAt(int page);
|
||||
|
||||
signals:
|
||||
void currentPageReady();
|
||||
void processingPage();
|
||||
void imagesLoaded();
|
||||
void imageLoaded(int index);
|
||||
void imageLoaded(int index,const QByteArray & image);
|
||||
void pageChanged(int index);
|
||||
void numPages(unsigned int numPages);
|
||||
void errorOpening();
|
||||
void errorOpening(QString);
|
||||
void crcError(QString);
|
||||
void currentPageIsBookmark(bool);
|
||||
void isLast();
|
||||
void isCover();
|
||||
|
||||
void bookmarksUpdated();
|
||||
|
||||
|
||||
private:
|
||||
Comic * comic;
|
||||
bool doublePage;
|
||||
bool doubleMangaPage;
|
||||
int previousIndex;
|
||||
int currentIndex;
|
||||
//QPixmap * currentPage;
|
||||
int currentPageBufferedIndex;
|
||||
int numLeftPages;
|
||||
int numRightPages;
|
||||
QList<PageRender *> pageRenders;
|
||||
QList<QImage *> buffer;
|
||||
void loadAll();
|
||||
void updateRightPages();
|
||||
void updateLeftPages();
|
||||
bool loadedComic;
|
||||
QList<int> pagesEmited;
|
||||
QVector<bool> pagesReady;
|
||||
int imageRotation;
|
||||
QVector<ImageFilter *> filters;
|
||||
QMutex mutex;
|
||||
|
||||
friend class PageRender;
|
||||
};
|
||||
|
||||
|
||||
#endif // RENDER_H
|
||||
55
YACReader/shortcuts_dialog.cpp
Normal file
55
YACReader/shortcuts_dialog.cpp
Normal file
@ -0,0 +1,55 @@
|
||||
#include "shortcuts_dialog.h"
|
||||
#include <QVBoxLayout>
|
||||
#include <QPushButton>
|
||||
#include <QTextEdit>
|
||||
#include <QLabel>
|
||||
#include <QPixmap>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QTextCodec>
|
||||
|
||||
ShortcutsDialog::ShortcutsDialog(QWidget * parent)
|
||||
:QDialog(parent)//,Qt::FramelessWindowHint)
|
||||
{
|
||||
setModal(true);
|
||||
setWindowIcon(QIcon(":/images/shortcuts.png"));
|
||||
setWindowTitle(tr("YACReader keyboard shortcuts"));
|
||||
|
||||
QVBoxLayout * mainLayout = new QVBoxLayout;
|
||||
|
||||
close = new QPushButton(tr("Close"));
|
||||
connect(close,SIGNAL(clicked()),this,SLOT(close()));
|
||||
|
||||
QHBoxLayout *bottomLayout = new QHBoxLayout;
|
||||
bottomLayout->addStretch();
|
||||
bottomLayout->addWidget(close);
|
||||
|
||||
QHBoxLayout * shortcutsLayout = new QHBoxLayout;
|
||||
|
||||
shortcuts = new QTextEdit();
|
||||
shortcuts->setFrameStyle(QFrame::NoFrame);
|
||||
|
||||
//"<p><b>General functions:</b><hr/><b>O</b> : Open comic<br/><b>Esc</b> : Exit</p>"
|
||||
shortcuts->setReadOnly(true);
|
||||
shortcutsLayout->addWidget(shortcuts);
|
||||
//shortcutsLayout->addWidget(shortcuts2);
|
||||
shortcutsLayout->setSpacing(0);
|
||||
mainLayout->addLayout(shortcutsLayout);
|
||||
mainLayout->addLayout(bottomLayout);
|
||||
|
||||
setLayout(mainLayout);
|
||||
|
||||
setFixedSize(QSize(700,500));
|
||||
|
||||
QFile f(":/files/shortcuts.html");
|
||||
f.open(QIODevice::ReadOnly);
|
||||
QTextStream txtS(&f);
|
||||
txtS.setCodec(QTextCodec::codecForName("UTF-8"));
|
||||
QString content = txtS.readAll();
|
||||
|
||||
f.close();
|
||||
|
||||
shortcuts->setHtml(content);
|
||||
|
||||
setWindowTitle(tr("Keyboard Shortcuts"));
|
||||
}
|
||||
19
YACReader/shortcuts_dialog.h
Normal file
19
YACReader/shortcuts_dialog.h
Normal file
@ -0,0 +1,19 @@
|
||||
#ifndef SHORTCUTS_DIALOG_H
|
||||
#define SHORTCUTS_DIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QTextEdit>
|
||||
#include <QPushButton>
|
||||
|
||||
class ShortcutsDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ShortcutsDialog(QWidget * parent = 0);
|
||||
private:
|
||||
QTextEdit * shortcuts;
|
||||
QPushButton * close;
|
||||
public slots:
|
||||
};
|
||||
|
||||
#endif // SHORTCUTS_DIALOG_H
|
||||
429
YACReader/translator.cpp
Normal file
429
YACReader/translator.cpp
Normal file
@ -0,0 +1,429 @@
|
||||
#include <QUrl>
|
||||
|
||||
#if QT_VERSION >= 0x050000
|
||||
#include <QMediaPlayer>
|
||||
#else
|
||||
#include <Phonon/MediaObject>
|
||||
#include <Phonon/MediaSource>
|
||||
#endif
|
||||
|
||||
#include <QPushButton>
|
||||
#include <QPalette>
|
||||
#include <QMouseEvent>
|
||||
#include <QHBoxLayout>
|
||||
#include <QVBoxLayout>
|
||||
#include "translator.h"
|
||||
|
||||
#include "yacreader_busy_widget.h"
|
||||
|
||||
#include <QFile>
|
||||
#include <QPoint>
|
||||
#include <QWidget>
|
||||
#include <QTextCodec>
|
||||
#include <QLabel>
|
||||
#include <QTextEdit>
|
||||
#include <QComboBox>
|
||||
#include <QThread>
|
||||
#include <QEventLoop>
|
||||
#include <QTimer>
|
||||
#include <QNetworkRequest>
|
||||
#include <QNetworkReply>
|
||||
|
||||
#include <QMessageBox>
|
||||
|
||||
#define APPID "417CEAD93449502CC3C9B69FED26C54118E62BCC"
|
||||
|
||||
YACReaderTranslator::YACReaderTranslator(QWidget * parent)
|
||||
:QWidget(parent),drag(false)
|
||||
{
|
||||
QString scrollBarStyle = "QScrollBar:vertical { border: none; background: #404040; width: 7px; margin: 0 3px 0 0; }"
|
||||
"QScrollBar::handle:vertical { background: #DDDDDD; width: 7px; min-height: 20px; }"
|
||||
"QScrollBar::add-line:vertical { border: none; background: #404040; height: 10px; subcontrol-position: bottom; subcontrol-origin: margin; margin: 0 3px 0 0;}"
|
||||
|
||||
"QScrollBar::sub-line:vertical { border: none; background: #404040; height: 10px; subcontrol-position: top; subcontrol-origin: margin; margin: 0 3px 0 0;}"
|
||||
"QScrollBar::up-arrow:vertical {border:none;width: 9px;height: 6px;background: url(':/images/folders_view/line-up.png') center top no-repeat;}"
|
||||
"QScrollBar::down-arrow:vertical {border:none;width: 9px;height: 6px;background: url(':/images/folders_view/line-down.png') center top no-repeat;}"
|
||||
|
||||
"QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {background: none; }";
|
||||
|
||||
this->setCursor(QCursor(Qt::ArrowCursor));
|
||||
this->setAutoFillBackground(true);
|
||||
this->setBackgroundRole(QPalette::Window);
|
||||
QPalette p(this->palette());
|
||||
p.setColor(QPalette::Window, QColor("#404040"));
|
||||
this->setPalette(p);
|
||||
|
||||
QVBoxLayout *layout = new QVBoxLayout(this);
|
||||
|
||||
//TITLE BAR
|
||||
QHBoxLayout * titleBar = new QHBoxLayout();
|
||||
QPushButton * close = new QPushButton(QIcon(QPixmap(":/images/close.png")),"");
|
||||
close->setFlat(true);
|
||||
QLabel * title = new QLabel(tr("YACReader translator"));
|
||||
title->setStyleSheet("QLabel {font-size:18px; font-family:Arial; color:white;}");
|
||||
titleBar->addWidget(title);
|
||||
titleBar->addStretch();
|
||||
close->resize(14,14);
|
||||
close->setStyleSheet("QPushButton {margin:0;padding:0;border:none;}");
|
||||
titleBar->addWidget(close);
|
||||
titleBar->setContentsMargins(0,0,0,0);
|
||||
titleBar->setSpacing(0);
|
||||
connect(close,SIGNAL(clicked()),this->parent(),SLOT(animateHideTranslator()));
|
||||
|
||||
layout->addLayout(titleBar);
|
||||
|
||||
//INPUT TEXT
|
||||
text = new QTextEdit(this);
|
||||
text->setMinimumHeight(110);
|
||||
text->setMaximumHeight(110);
|
||||
layout->addSpacing(12);
|
||||
layout->addWidget(text);
|
||||
text->setStyleSheet("QTextEdit{border:none;background:#2a2a2a;color:white; font-size:12px; padding:6px;}"+scrollBarStyle);
|
||||
|
||||
//COMBOBOXES
|
||||
QHBoxLayout * combos = new QHBoxLayout();
|
||||
from = new QComboBox(this);
|
||||
to = new QComboBox(this);
|
||||
QString comboBoxStyle = "QComboBox {border:none;background:#2a2a2a;color:white;font-size:12px;font-family:Arial;padding-left:8px;}"
|
||||
"QComboBox::down-arrow {image: url(:/images/dropDownArrow.png);}"
|
||||
"QComboBox::drop-down {border:none; padding-right:10px;}"
|
||||
"QComboBox QAbstractItemView {border: none; background:#272727; color:white; selection-background-color: #202020; outline:none;}"
|
||||
"QComboBox QAbstractItemView::item {padding-left:8px;}" + scrollBarStyle
|
||||
;
|
||||
from->setStyleSheet(comboBoxStyle);
|
||||
to->setStyleSheet(comboBoxStyle);
|
||||
from->setFixedHeight(22);
|
||||
to->setFixedHeight(22);
|
||||
QLabel * arrow = new QLabel(this);
|
||||
QPixmap arrowPixmap(":/images/fromTo.png");
|
||||
arrow->setPixmap(arrowPixmap);
|
||||
QPushButton * searchButton = new QPushButton(this);
|
||||
searchButton->setIcon(QIcon(":/images/translatorSearch.png"));
|
||||
searchButton->setStyleSheet("QPushButton {border:none; background:#2a2a2a;}");
|
||||
searchButton->setFixedSize(22,22);
|
||||
combos->addWidget(from,1);
|
||||
combos->addSpacing(9);
|
||||
combos->addWidget(arrow,0);
|
||||
combos->addSpacing(9);
|
||||
combos->addWidget(to,1);
|
||||
combos->addSpacing(9);
|
||||
combos->addWidget(searchButton,0);
|
||||
layout->addSpacing(12);
|
||||
layout->addLayout(combos);
|
||||
|
||||
|
||||
//RESULTS
|
||||
QHBoxLayout * resultsTitleLayout = new QHBoxLayout();
|
||||
resultsTitle = new QLabel(tr("Translation"));
|
||||
resultsTitle->setStyleSheet("QLabel {font-family:Arial;font-size:14px;color:#e3e3e3;}");
|
||||
speakButton = new QPushButton(this);
|
||||
speakButton->setStyleSheet("QPushButton {border:none;}");
|
||||
speakButton->setIcon(QIcon(":/images/speaker.png"));
|
||||
resultsTitleLayout->addWidget(resultsTitle,0,Qt::AlignVCenter);
|
||||
resultsTitleLayout->addSpacing(10);
|
||||
resultsTitleLayout->addWidget(speakButton,0,Qt::AlignVCenter);
|
||||
resultsTitleLayout->addStretch();
|
||||
|
||||
layout->addSpacing(15);
|
||||
layout->addLayout(resultsTitleLayout);
|
||||
layout->addSpacing(12);
|
||||
|
||||
resultText = new QLabel();
|
||||
resultText->setWordWrap(true);
|
||||
resultText->setStyleSheet("QLabel {color:white;font-size:12px;}");
|
||||
resultText->setText("<EFBFBD>lkas lakj dflkaj lasd jflie lkajd fie kljads ijef lasei afsliej ljse f");
|
||||
layout->addWidget(resultText);
|
||||
|
||||
layout->addStretch();
|
||||
|
||||
//CLEAR BUTTON
|
||||
clearButton = new QPushButton(tr("clear"));
|
||||
layout->addWidget(clearButton,0,Qt::AlignRight);
|
||||
clearButton->setMinimumWidth(95);
|
||||
clearButton->setStyleSheet("QPushButton {border:1px solid #212121; background:#2a2a2a; color:white; font-family:Arial; font-size:12px; padding-top:5px; padding-bottom:5px;}");
|
||||
|
||||
resize(400,479);
|
||||
|
||||
layout->setMargin(0);
|
||||
layout->setContentsMargins(18,12,18,12);
|
||||
setContentsMargins(0,0,0,0);
|
||||
layout->setSpacing(0);
|
||||
|
||||
hideResults();
|
||||
populateCombos();
|
||||
|
||||
busyIndicator = new YACReaderBusyWidget(this);
|
||||
busyIndicator->move((this->width()-busyIndicator->width())/2,(this->height()-busyIndicator->height())*2/3);
|
||||
busyIndicator->hide();
|
||||
|
||||
show();
|
||||
|
||||
connect(searchButton,SIGNAL(pressed()),this,SLOT(translate()));
|
||||
connect(speakButton,SIGNAL(pressed()),this,SLOT(play()));
|
||||
connect(clearButton,SIGNAL(pressed()),this,SLOT(clear()));
|
||||
|
||||
//multimedia/phonon
|
||||
#if QT_VERSION >= 0x050000
|
||||
player = new QMediaPlayer;
|
||||
#else
|
||||
music = createPlayer(MusicCategory);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
void YACReaderTranslator::hideResults()
|
||||
{
|
||||
resultsTitle->setHidden(true);
|
||||
speakButton->setHidden(true);
|
||||
resultText->setHidden(true);
|
||||
}
|
||||
|
||||
void YACReaderTranslator::clear()
|
||||
{
|
||||
hideResults();
|
||||
text->clear();
|
||||
}
|
||||
|
||||
void YACReaderTranslator::translate()
|
||||
{
|
||||
QString text = this->text->toPlainText();
|
||||
if(text.isEmpty())
|
||||
return;
|
||||
QString from = this->from->itemData(this->from->currentIndex()).toString();
|
||||
QString to = this->to->itemData(this->to->currentIndex()).toString();
|
||||
|
||||
TranslationLoader * translationLoader = new TranslationLoader(text,from,to);
|
||||
connect(translationLoader,SIGNAL(requestFinished(QString)),this,SLOT(setTranslation(QString)));
|
||||
connect(translationLoader,SIGNAL(error()),this,SLOT(error()));
|
||||
connect(translationLoader,SIGNAL(timeOut()),this,SLOT(error()));
|
||||
connect(translationLoader,SIGNAL(finished()),translationLoader,SLOT(deleteLater()));
|
||||
|
||||
TextToSpeachLoader * tts = new TextToSpeachLoader(text,from);
|
||||
connect(tts,SIGNAL(requestFinished(QUrl)),this,SLOT(setSpeak(QUrl)));
|
||||
connect(tts,SIGNAL(error()),this,SLOT(error()));
|
||||
connect(tts,SIGNAL(timeOut()),this,SLOT(error()));
|
||||
connect(tts,SIGNAL(finished()),tts,SLOT(deleteLater()));
|
||||
|
||||
translationLoader->start();
|
||||
tts->start();
|
||||
|
||||
resultsTitle->setText(tr("Translation"));
|
||||
|
||||
hideResults();
|
||||
|
||||
busyIndicator->show();
|
||||
}
|
||||
|
||||
void YACReaderTranslator::error()
|
||||
{
|
||||
resultsTitle->setText(tr("Service not available"));
|
||||
resultsTitle->setHidden(false);
|
||||
busyIndicator->hide();
|
||||
}
|
||||
|
||||
void YACReaderTranslator::setSpeak(const QUrl & url)
|
||||
{
|
||||
resultsTitle->setHidden(false);
|
||||
speakButton->setHidden(false);
|
||||
|
||||
ttsSource = url;
|
||||
}
|
||||
|
||||
void YACReaderTranslator::setTranslation(const QString & string)
|
||||
{
|
||||
resultText->setText(string);
|
||||
|
||||
resultsTitle->setHidden(false);
|
||||
resultText->setHidden(false);
|
||||
busyIndicator->hide();
|
||||
}
|
||||
|
||||
void YACReaderTranslator::populateCombos()
|
||||
{
|
||||
QList<QComboBox *> combos;
|
||||
combos.append(from);
|
||||
combos.append(to);
|
||||
|
||||
for(int i=0;i<combos.count();i++)
|
||||
{
|
||||
QComboBox * combo = combos.at(i);
|
||||
combo->addItem("Arabic","ar");
|
||||
combo->addItem("Bulgarian","bg");
|
||||
combo->addItem("Catalan","ca");
|
||||
combo->addItem("Chinese Simplified","zh-CHS");
|
||||
combo->addItem("Chinese Traditional","zh-CHT");
|
||||
combo->addItem("Czech","cs");
|
||||
combo->addItem("Danish","da");
|
||||
combo->addItem("Dutch","nl");
|
||||
combo->addItem("English","en");
|
||||
combo->addItem("Estonian","et");
|
||||
combo->addItem("Finnish","fi");
|
||||
combo->addItem("French","fr");
|
||||
combo->addItem("German","de");
|
||||
combo->addItem("Greek","el");
|
||||
combo->addItem("Haitian Creole","ht");
|
||||
combo->addItem("Hebrew","he");
|
||||
combo->addItem("Hindi","hi");
|
||||
combo->addItem("Hungarian","hu");
|
||||
combo->addItem("Indonesian","id");
|
||||
combo->addItem("Italian","it");
|
||||
combo->addItem("Japanese","ja");
|
||||
combo->addItem("Korean","ko");
|
||||
combo->addItem("Latvian","lv");
|
||||
combo->addItem("Lithuanian","lt");
|
||||
combo->addItem("Norwegian","no");
|
||||
combo->addItem("Polish","pl");
|
||||
combo->addItem("Portuguese","pt");
|
||||
combo->addItem("Romanian","ro");
|
||||
combo->addItem("Russian","ru");
|
||||
combo->addItem("Slovak","sk");
|
||||
combo->addItem("Slovenian","sl");
|
||||
combo->addItem("Spanish","es");
|
||||
combo->addItem("Swedish","sv");
|
||||
combo->addItem("Thai","th");
|
||||
combo->addItem("Turkish","tr");
|
||||
combo->addItem("Ukrainian","uk");
|
||||
combo->addItem("Vietnamese","vi");
|
||||
}
|
||||
from->setCurrentIndex(from->findText("English"));
|
||||
to->setCurrentIndex(from->findText("Spanish"));
|
||||
}
|
||||
|
||||
void YACReaderTranslator::play()
|
||||
{
|
||||
//QMessageBox::question(this,"xxx",ttsSource.toString());
|
||||
#if QT_VERSION >= 0x050000
|
||||
|
||||
player->setMedia(ttsSource);
|
||||
player->play();
|
||||
|
||||
#else
|
||||
MediaSource src(ttsSource);
|
||||
src.setAutoDelete(true);
|
||||
music->setCurrentSource(src);
|
||||
music->play();
|
||||
#endif
|
||||
}
|
||||
|
||||
YACReaderTranslator::~YACReaderTranslator()
|
||||
{
|
||||
#if QT_VERSION >= 0x050000
|
||||
#else
|
||||
delete music;
|
||||
#endif
|
||||
}
|
||||
|
||||
void YACReaderTranslator::mousePressEvent(QMouseEvent *event)
|
||||
{
|
||||
QPoint p = mapTo(this,event->pos());
|
||||
if(p.y() < 40)
|
||||
{
|
||||
drag = true;
|
||||
click = event->pos();
|
||||
}
|
||||
}
|
||||
|
||||
void YACReaderTranslator::mouseReleaseEvent(QMouseEvent *event)
|
||||
{
|
||||
drag = false;
|
||||
event->accept();
|
||||
}
|
||||
|
||||
void YACReaderTranslator::mouseMoveEvent(QMouseEvent * event)
|
||||
{
|
||||
if(drag)
|
||||
this->move(QPoint(mapToParent(event->pos())-click));
|
||||
event->accept();
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//---------------------------------------------------------------------------
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
TranslationLoader::TranslationLoader(QString text, QString from, QString to)
|
||||
:QThread(),text(text),from(from),to(to)
|
||||
{
|
||||
}
|
||||
|
||||
void TranslationLoader::run()
|
||||
{
|
||||
QNetworkAccessManager manager;
|
||||
QEventLoop q;
|
||||
QTimer tT;
|
||||
|
||||
tT.setSingleShot(true);
|
||||
connect(&tT, SIGNAL(timeout()), &q, SLOT(quit()));
|
||||
connect(&manager, SIGNAL(finished(QNetworkReply*)),&q, SLOT(quit()));
|
||||
|
||||
QString url = "http://api.microsofttranslator.com/V2/Ajax.svc/Translate?appid=%1&from=%2&to=%3&text=%4&contentType=text/plain";
|
||||
url = url.arg(APPID).arg(from).arg(to).arg(text);
|
||||
|
||||
QNetworkReply *reply = manager.get(QNetworkRequest(QUrl(url)));
|
||||
|
||||
tT.start(5000); // 5s timeout
|
||||
q.exec();
|
||||
|
||||
if(tT.isActive()){
|
||||
// download complete
|
||||
if(reply->error() == QNetworkReply::NoError)
|
||||
{
|
||||
QString utf8 = QString::fromUtf8(reply->readAll());
|
||||
utf8 = utf8.remove(0,1);
|
||||
utf8 = utf8.remove(utf8.count()-1,1);
|
||||
|
||||
QString translated(utf8);
|
||||
emit(requestFinished(translated));
|
||||
}
|
||||
else
|
||||
emit(error());
|
||||
} else {
|
||||
emit(timeOut());
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//---------------------------------------------------------------------------
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
TextToSpeachLoader::TextToSpeachLoader(QString text, QString language)
|
||||
:QThread(),text(text),language(language)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void TextToSpeachLoader::run()
|
||||
{
|
||||
QNetworkAccessManager manager;
|
||||
QEventLoop q;
|
||||
QTimer tT;
|
||||
|
||||
tT.setSingleShot(true);
|
||||
connect(&tT, SIGNAL(timeout()), &q, SLOT(quit()));
|
||||
connect(&manager, SIGNAL(finished(QNetworkReply*)),&q, SLOT(quit()));
|
||||
|
||||
QString url = "http://api.microsofttranslator.com/V2/Ajax.svc/Speak?appid=%1&language=%2&text=%3&contentType=text/plain";
|
||||
url = url.arg(APPID).arg(language).arg(text);
|
||||
|
||||
QNetworkReply *reply = manager.get(QNetworkRequest(QUrl(url)));
|
||||
|
||||
tT.start(5000); // 5s timeout
|
||||
q.exec();
|
||||
|
||||
if(tT.isActive()){
|
||||
// download complete
|
||||
if(reply->error() == QNetworkReply::NoError)
|
||||
{
|
||||
QString utf8 = QString::fromUtf8(reply->readAll());
|
||||
utf8 = utf8.remove(0,1);
|
||||
utf8 = utf8.remove(utf8.count()-1,1);
|
||||
utf8 = utf8.replace("\\","");
|
||||
|
||||
emit(requestFinished(QUrl(utf8)));
|
||||
}
|
||||
else
|
||||
emit(error());
|
||||
} else {
|
||||
emit(timeOut());
|
||||
}
|
||||
}
|
||||
102
YACReader/translator.h
Normal file
102
YACReader/translator.h
Normal file
@ -0,0 +1,102 @@
|
||||
#ifndef __TRANSLATOR_H
|
||||
#define __TRANSLATOR_H
|
||||
|
||||
class QUrl;
|
||||
class QMouseEvent;
|
||||
class QPoint;
|
||||
class QTextEdit;
|
||||
class QComboBox;
|
||||
class QLabel;
|
||||
class QPushButton;
|
||||
class YACReaderBusyWidget;
|
||||
|
||||
#include <QWidget>
|
||||
#include <QThread>
|
||||
#include <QUrl>
|
||||
|
||||
#if QT_VERSION >= 0x050000
|
||||
class QMediaPlayer;
|
||||
#else
|
||||
#include<Phonon/MediaObject>
|
||||
using namespace Phonon;
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
class YACReaderTranslator : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
YACReaderTranslator(QWidget * parent = 0);
|
||||
~YACReaderTranslator();
|
||||
|
||||
public slots:
|
||||
void play();
|
||||
|
||||
protected slots:
|
||||
void translate();
|
||||
void setSpeak(const QUrl & url);
|
||||
void setTranslation(const QString & string);
|
||||
void error();
|
||||
void clear();
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QMouseEvent *event);
|
||||
void mouseReleaseEvent(QMouseEvent *event);
|
||||
void mouseMoveEvent ( QMouseEvent * event );
|
||||
void hideResults();
|
||||
|
||||
void populateCombos();
|
||||
bool drag;
|
||||
QPoint click;
|
||||
private:
|
||||
|
||||
#if QT_VERSION >= 0x050000
|
||||
QMediaPlayer *player;
|
||||
#else
|
||||
MediaObject * music;
|
||||
#endif
|
||||
|
||||
QTextEdit * text;
|
||||
QComboBox * from;
|
||||
QComboBox * to;
|
||||
QLabel * resultsTitle;
|
||||
QPushButton * speakButton;
|
||||
QLabel * resultText;
|
||||
YACReaderBusyWidget * busyIndicator;
|
||||
QUrl ttsSource;
|
||||
QPushButton * clearButton;
|
||||
|
||||
};
|
||||
|
||||
class TranslationLoader : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
TranslationLoader(QString text, QString from, QString to);
|
||||
signals:
|
||||
void requestFinished(QString);
|
||||
void timeOut();
|
||||
void error();
|
||||
private:
|
||||
QString text;
|
||||
QString from;
|
||||
QString to;
|
||||
void run();
|
||||
};
|
||||
|
||||
class TextToSpeachLoader : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
TextToSpeachLoader(QString text, QString language);
|
||||
signals:
|
||||
void requestFinished(QUrl);
|
||||
void timeOut();
|
||||
void error();
|
||||
private:
|
||||
QString text;
|
||||
QString language;
|
||||
void run();
|
||||
};
|
||||
#endif
|
||||
979
YACReader/viewer.cpp
Normal file
979
YACReader/viewer.cpp
Normal file
@ -0,0 +1,979 @@
|
||||
#include "viewer.h"
|
||||
#include "magnifying_glass.h"
|
||||
#include "configuration.h"
|
||||
#include "magnifying_glass.h"
|
||||
#include "goto_flow.h"
|
||||
#include "goto_flow_gl.h"
|
||||
#include "bookmarks_dialog.h"
|
||||
#include "render.h"
|
||||
#include "goto_dialog.h"
|
||||
#include "translator.h"
|
||||
#include "onstart_flow_selection_dialog.h"
|
||||
#include "page_label_widget.h"
|
||||
#include "notifications_label_widget.h"
|
||||
#include "comic_db.h"
|
||||
#include "shortcuts_manager.h"
|
||||
|
||||
#include <QFile>
|
||||
|
||||
|
||||
Viewer::Viewer(QWidget * parent)
|
||||
:QScrollArea(parent),
|
||||
currentPage(0),
|
||||
magnifyingGlassShowed(false),
|
||||
fullscreen(false),
|
||||
information(false),
|
||||
adjustToWidthRatio(1),
|
||||
doublePage(false),
|
||||
doubleMangaPage(false),
|
||||
wheelStop(false),
|
||||
direction(1),
|
||||
restoreMagnifyingGlass(false),
|
||||
drag(false),
|
||||
numScrollSteps(22),
|
||||
shouldOpenNext(false),
|
||||
shouldOpenPrevious(false)
|
||||
{
|
||||
translator = new YACReaderTranslator(this);
|
||||
translator->hide();
|
||||
translatorAnimation = new QPropertyAnimation(translator,"pos");
|
||||
translatorAnimation->setDuration(150);
|
||||
translatorXPos = -10000;
|
||||
translator->move(-translator->width(),10);
|
||||
//current comic page
|
||||
content = new QLabel(this);
|
||||
configureContent(tr("Press 'O' to open comic."));
|
||||
//scroll area configuration
|
||||
setBackgroundRole(QPalette::Dark);
|
||||
setWidget(content);
|
||||
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||
setFrameStyle(QFrame::NoFrame);
|
||||
setAlignment(Qt::AlignCenter);
|
||||
|
||||
QPalette palette;
|
||||
palette.setColor(backgroundRole(), Configuration::getConfiguration().getBackgroundColor());
|
||||
setPalette(palette);
|
||||
//---------------------------------------
|
||||
mglass = new MagnifyingGlass(Configuration::getConfiguration().getMagnifyingGlassSize(),this);
|
||||
mglass->hide();
|
||||
content->setMouseTracking(true);
|
||||
setMouseTracking(true);
|
||||
|
||||
showCursor();
|
||||
|
||||
goToDialog = new GoToDialog(this);
|
||||
|
||||
QSettings * settings = new QSettings(YACReader::getSettingsPath()+"/YACReader.ini",QSettings::IniFormat);
|
||||
|
||||
//CONFIG GOTO_FLOW--------------------------------------------------------
|
||||
if(QGLFormat::hasOpenGL() && !settings->contains(USE_OPEN_GL))
|
||||
{
|
||||
settings->setValue(USE_OPEN_GL,2);
|
||||
}
|
||||
|
||||
if(QGLFormat::hasOpenGL() && (settings->value(USE_OPEN_GL).toBool() == true))
|
||||
goToFlow = new GoToFlowGL(this,Configuration::getConfiguration().getFlowType());
|
||||
else
|
||||
goToFlow = new GoToFlow(this,Configuration::getConfiguration().getFlowType());
|
||||
|
||||
goToFlow->setFocusPolicy(Qt::StrongFocus);
|
||||
goToFlow->hide();
|
||||
showGoToFlowAnimation = new QPropertyAnimation(goToFlow,"pos");
|
||||
showGoToFlowAnimation->setDuration(150);
|
||||
|
||||
bd = new BookmarksDialog(this->parentWidget());
|
||||
|
||||
render = new Render();
|
||||
|
||||
hideCursorTimer = new QTimer();
|
||||
hideCursorTimer->setSingleShot(true);
|
||||
|
||||
if(Configuration::getConfiguration().getDoublePage())
|
||||
doublePageSwitch();
|
||||
|
||||
if(Configuration::getConfiguration().getDoubleMangaPage())
|
||||
doubleMangaPageSwitch();
|
||||
|
||||
createConnections();
|
||||
|
||||
hideCursorTimer->start(2500);
|
||||
|
||||
setMouseTracking(true);
|
||||
|
||||
//animations
|
||||
verticalScroller = new QPropertyAnimation(verticalScrollBar(), "sliderPosition");
|
||||
connect(verticalScroller,SIGNAL(valueChanged (const QVariant &)),this,SIGNAL(backgroundChanges()));
|
||||
|
||||
notificationsLabel = new NotificationsLabelWidget(this);
|
||||
notificationsLabel->hide();
|
||||
|
||||
informationLabel = new PageLabelWidget(this);
|
||||
|
||||
setAcceptDrops(true);
|
||||
|
||||
}
|
||||
|
||||
Viewer::~Viewer()
|
||||
{
|
||||
delete render;
|
||||
delete goToFlow;
|
||||
delete translator;
|
||||
delete translatorAnimation;
|
||||
delete content;
|
||||
delete hideCursorTimer;
|
||||
delete informationLabel;
|
||||
delete verticalScroller;
|
||||
delete bd;
|
||||
delete notificationsLabel;
|
||||
delete mglass;
|
||||
if(currentPage != 0)
|
||||
delete currentPage;
|
||||
}
|
||||
|
||||
void Viewer::createConnections()
|
||||
{
|
||||
//magnifyingGlass (update mg after a background change
|
||||
connect(this,SIGNAL(backgroundChanges()),mglass,SLOT(updateImage()));
|
||||
|
||||
//goToDialog
|
||||
connect(goToDialog,SIGNAL(goToPage(unsigned int)),this,SLOT(goTo(unsigned int)));
|
||||
|
||||
//goToFlow goTo
|
||||
connect(goToFlow,SIGNAL(goToPage(unsigned int)),this,SLOT(goTo(unsigned int)));
|
||||
|
||||
//current time
|
||||
QTimer * t = new QTimer();
|
||||
connect(t,SIGNAL(timeout()),this,SLOT(updateInformation()));
|
||||
t->start(1000);
|
||||
|
||||
//hide cursor
|
||||
connect(hideCursorTimer,SIGNAL(timeout()),this,SLOT(hideCursor()));
|
||||
|
||||
//bookmarks
|
||||
connect(bd,SIGNAL(goToPage(unsigned int)),this,SLOT(goTo(unsigned int)));
|
||||
|
||||
//render
|
||||
connect(render,SIGNAL(errorOpening()),this,SLOT(resetContent()));
|
||||
connect(render,SIGNAL(errorOpening()),this,SLOT(showMessageErrorOpening()));
|
||||
connect(render,SIGNAL(errorOpening(QString)),this,SLOT(showMessageErrorOpening(QString)));
|
||||
connect(render,SIGNAL(crcError(QString)),this,SLOT(processCRCError(QString)));
|
||||
connect(render,SIGNAL(numPages(unsigned int)),goToFlow,SLOT(setNumSlides(unsigned int)));
|
||||
connect(render,SIGNAL(numPages(unsigned int)),goToDialog,SLOT(setNumPages(unsigned int)));
|
||||
//connect(render,SIGNAL(numPages(unsigned int)),this,SLOT(updateInformation()));
|
||||
connect(render,SIGNAL(imageLoaded(int,QByteArray)),goToFlow,SLOT(setImageReady(int,QByteArray)));
|
||||
connect(render,SIGNAL(currentPageReady()),this,SLOT(updatePage()));
|
||||
connect(render,SIGNAL(processingPage()),this,SLOT(setLoadingMessage()));
|
||||
connect(render,SIGNAL(currentPageIsBookmark(bool)),this,SIGNAL(pageIsBookmark(bool)));
|
||||
connect(render,SIGNAL(pageChanged(int)),this,SLOT(updateInformation()));
|
||||
//connect(render,SIGNAL(bookmarksLoaded(Bookmarks)),this,SLOT(setBookmarks(Bookmarks)));
|
||||
|
||||
connect(render,SIGNAL(isLast()),this,SLOT(showIsLastMessage()));
|
||||
connect(render,SIGNAL(isCover()),this,SLOT(showIsCoverMessage()));
|
||||
|
||||
connect(render,SIGNAL(bookmarksUpdated()),this,SLOT(setBookmarks()));
|
||||
}
|
||||
|
||||
//Deprecated
|
||||
void Viewer::prepareForOpening()
|
||||
{
|
||||
if(render->hasLoadedComic())
|
||||
save();
|
||||
//bd->setBookmarks(*bm);
|
||||
|
||||
goToFlow->reset();
|
||||
|
||||
//render->update();
|
||||
|
||||
verticalScrollBar()->setSliderPosition(verticalScrollBar()->minimum());
|
||||
|
||||
if(Configuration::getConfiguration().getShowInformation() && !information)
|
||||
{
|
||||
QTimer * timer = new QTimer();
|
||||
connect(timer,SIGNAL(timeout()),this,SLOT(informationSwitch()));
|
||||
connect(timer,SIGNAL(timeout()),timer,SLOT(deleteLater()));
|
||||
timer->start();
|
||||
}
|
||||
|
||||
informationLabel->setText("...");
|
||||
}
|
||||
|
||||
void Viewer::open(QString pathFile, int atPage)
|
||||
{
|
||||
prepareForOpening();
|
||||
render->load(pathFile, atPage);
|
||||
}
|
||||
|
||||
void Viewer::open(QString pathFile, const ComicDB & comic)
|
||||
{
|
||||
prepareForOpening();
|
||||
render->load(pathFile, comic);
|
||||
}
|
||||
|
||||
void Viewer::showMessageErrorOpening()
|
||||
{
|
||||
QMessageBox::critical(this,tr("Not found"),tr("Comic not found"));
|
||||
//resetContent(); --> not needed
|
||||
}
|
||||
|
||||
void Viewer::showMessageErrorOpening(QString message)
|
||||
{
|
||||
QMessageBox::critical(this,tr("Error opening comic"),message);
|
||||
resetContent();
|
||||
}
|
||||
|
||||
void Viewer::processCRCError(QString message)
|
||||
{
|
||||
QMessageBox::critical(this,tr("CRC Error"),message);
|
||||
}
|
||||
|
||||
void Viewer::next()
|
||||
{
|
||||
direction = 1;
|
||||
if (doublePage && render->currentPageIsDoublePage())
|
||||
{
|
||||
render->nextDoublePage();
|
||||
}
|
||||
else
|
||||
{
|
||||
render->nextPage();
|
||||
}
|
||||
updateInformation();
|
||||
shouldOpenPrevious = false;
|
||||
}
|
||||
|
||||
void Viewer::prev()
|
||||
{
|
||||
direction = -1;
|
||||
if (doublePage && render->previousPageIsDoublePage())
|
||||
{
|
||||
render->previousDoublePage();
|
||||
}
|
||||
else
|
||||
{
|
||||
render->previousPage();
|
||||
}
|
||||
updateInformation();
|
||||
shouldOpenNext = false;
|
||||
}
|
||||
void Viewer::showGoToDialog()
|
||||
{
|
||||
goToDialog->open();
|
||||
}
|
||||
void Viewer::goTo(unsigned int page)
|
||||
{
|
||||
direction = 1; //in "go to" direction is always fordward
|
||||
render->goTo(page);
|
||||
}
|
||||
|
||||
void Viewer::updatePage()
|
||||
{
|
||||
QPixmap * previousPage = currentPage;
|
||||
if (doublePage)
|
||||
{
|
||||
if (!doubleMangaPage)
|
||||
currentPage = render->getCurrentDoublePage();
|
||||
else
|
||||
{
|
||||
currentPage = render->getCurrentDoubleMangaPage();
|
||||
}
|
||||
if (currentPage == NULL)
|
||||
{
|
||||
currentPage = render->getCurrentPage();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
currentPage = render->getCurrentPage();
|
||||
}
|
||||
content->setPixmap(*currentPage);
|
||||
updateContentSize();
|
||||
updateVerticalScrollBar();
|
||||
emit backgroundChanges();
|
||||
emit(pageAvailable(true));
|
||||
|
||||
if(goToFlow->isHidden())
|
||||
setFocus(Qt::ShortcutFocusReason);
|
||||
else
|
||||
goToFlow->setFocus(Qt::OtherFocusReason);
|
||||
delete previousPage;
|
||||
|
||||
if(currentPage->isNull())
|
||||
setPageUnavailableMessage();
|
||||
|
||||
if(restoreMagnifyingGlass)
|
||||
{
|
||||
restoreMagnifyingGlass = false;
|
||||
showMagnifyingGlass();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void Viewer::updateContentSize()
|
||||
{
|
||||
//there is an image to resize
|
||||
if(currentPage !=0 && !currentPage->isNull())
|
||||
{
|
||||
if(Configuration::getConfiguration().getAdjustToFullSize())
|
||||
{
|
||||
content->resize(currentPage->width(),currentPage->height());
|
||||
}
|
||||
else
|
||||
{
|
||||
float aspectRatio = (float)currentPage->width()/currentPage->height();
|
||||
//Fit to width
|
||||
if(Configuration::getConfiguration().getAdjustToWidth())
|
||||
{
|
||||
adjustToWidthRatio = Configuration::getConfiguration().getFitToWidthRatio();
|
||||
if(static_cast<int>(width()*adjustToWidthRatio/aspectRatio)<height())
|
||||
if(static_cast<int>(height()*aspectRatio)>width())
|
||||
content->resize(width(),static_cast<int>(width()/aspectRatio));
|
||||
else
|
||||
content->resize(static_cast<int>(height()*aspectRatio),height());
|
||||
else
|
||||
content->resize(width()*adjustToWidthRatio,static_cast<int>(width()*adjustToWidthRatio/aspectRatio));
|
||||
}
|
||||
//Fit to height or fullsize/custom size
|
||||
else
|
||||
{
|
||||
if(static_cast<int>(height()*aspectRatio)>width()) //page width exceeds window width
|
||||
content->resize(width(),static_cast<int>(width()/aspectRatio));
|
||||
else
|
||||
content->resize(static_cast<int>(height()*aspectRatio),height());
|
||||
}
|
||||
}
|
||||
|
||||
if(devicePixelRatio()>1)//only in retina display
|
||||
{
|
||||
QPixmap page = currentPage->scaled(content->width()*devicePixelRatio(), content->height()*devicePixelRatio(), Qt::KeepAspectRatio, Qt::SmoothTransformation);
|
||||
page.setDevicePixelRatio(devicePixelRatio());
|
||||
content->setPixmap(page);
|
||||
}
|
||||
|
||||
emit backgroundChanges();
|
||||
}
|
||||
content->update(); //TODO, it shouldn't be neccesary
|
||||
}
|
||||
|
||||
void Viewer::updateVerticalScrollBar()
|
||||
{
|
||||
if(direction > 0)
|
||||
verticalScrollBar()->setSliderPosition(verticalScrollBar()->minimum());
|
||||
else
|
||||
verticalScrollBar()->setSliderPosition(verticalScrollBar()->maximum());
|
||||
}
|
||||
|
||||
void Viewer::scrollDown()
|
||||
{
|
||||
if(verticalScrollBar()->sliderPosition()==verticalScrollBar()->maximum())
|
||||
{
|
||||
next();
|
||||
}
|
||||
else
|
||||
{
|
||||
int currentPos = verticalScrollBar()->sliderPosition();
|
||||
verticalScroller->setDuration(250);
|
||||
verticalScroller->setStartValue(currentPos);
|
||||
verticalScroller->setEndValue(nextPos);
|
||||
|
||||
verticalScroller->start();
|
||||
|
||||
emit backgroundChanges();
|
||||
}
|
||||
}
|
||||
|
||||
void Viewer::scrollUp()
|
||||
{
|
||||
if(verticalScrollBar()->sliderPosition()==verticalScrollBar()->minimum())
|
||||
{
|
||||
prev();
|
||||
}
|
||||
else
|
||||
{
|
||||
int currentPos = verticalScrollBar()->sliderPosition();
|
||||
verticalScroller->setDuration(250);
|
||||
verticalScroller->setStartValue(currentPos);
|
||||
verticalScroller->setEndValue(nextPos);
|
||||
|
||||
verticalScroller->start();
|
||||
|
||||
emit backgroundChanges();
|
||||
}
|
||||
}
|
||||
|
||||
void Viewer::keyPressEvent(QKeyEvent *event)
|
||||
{
|
||||
if(render->hasLoadedComic())
|
||||
{
|
||||
int _key = event->key();
|
||||
Qt::KeyboardModifiers modifiers = event->modifiers();
|
||||
|
||||
if(modifiers & Qt::ShiftModifier)
|
||||
_key |= Qt::SHIFT;
|
||||
if (modifiers & Qt::ControlModifier)
|
||||
_key |= Qt::CTRL;
|
||||
if (modifiers & Qt::MetaModifier)
|
||||
_key |= Qt::META;
|
||||
if (modifiers & Qt::AltModifier)
|
||||
_key |= Qt::ALT;
|
||||
|
||||
QKeySequence key(_key);
|
||||
/*if(goToFlow->isVisible() && event->key()!=Qt::Key_S)
|
||||
QCoreApplication::sendEvent(goToFlow,event);
|
||||
else*/
|
||||
|
||||
if (key == ShortcutsManager::getShortcutsManager().getShortcut(AUTO_SCROLL_FORWARD_ACTION_Y))
|
||||
{
|
||||
posByStep = height()/numScrollSteps;
|
||||
nextPos=verticalScrollBar()->sliderPosition()+static_cast<int>((height()*0.80));
|
||||
scrollDown();
|
||||
}
|
||||
|
||||
else if (key == ShortcutsManager::getShortcutsManager().getShortcut(AUTO_SCROLL_BACKWARD_ACTION_Y))
|
||||
{
|
||||
posByStep = height()/numScrollSteps;
|
||||
nextPos=verticalScrollBar()->sliderPosition()-static_cast<int>((height()*0.80));
|
||||
scrollUp();
|
||||
}
|
||||
|
||||
else if (key == ShortcutsManager::getShortcutsManager().getShortcut(MOVE_DOWN_ACTION_Y) ||
|
||||
key == ShortcutsManager::getShortcutsManager().getShortcut(MOVE_UP_ACTION_Y) ||
|
||||
key == ShortcutsManager::getShortcutsManager().getShortcut(MOVE_LEFT_ACTION_Y) ||
|
||||
key == ShortcutsManager::getShortcutsManager().getShortcut(MOVE_RIGHT_ACTION_Y))
|
||||
{
|
||||
QAbstractScrollArea::keyPressEvent(event);
|
||||
emit backgroundChanges();
|
||||
}
|
||||
|
||||
else if (key == ShortcutsManager::getShortcutsManager().getShortcut(GO_TO_FIRST_PAGE_ACTION_Y))
|
||||
{
|
||||
goTo(0);
|
||||
}
|
||||
|
||||
else if (key == ShortcutsManager::getShortcutsManager().getShortcut(GO_TO_LAST_PAGE_ACTION_Y))
|
||||
{
|
||||
goTo(this->render->numPages()-1);
|
||||
}
|
||||
|
||||
else
|
||||
QAbstractScrollArea::keyPressEvent(event);
|
||||
|
||||
if(mglass->isVisible() && (key == ShortcutsManager::getShortcutsManager().getShortcut(SIZE_UP_MGLASS_ACTION_Y) ||
|
||||
key == ShortcutsManager::getShortcutsManager().getShortcut(SIZE_DOWN_MGLASS_ACTION_Y) ||
|
||||
key == ShortcutsManager::getShortcutsManager().getShortcut(ZOOM_IN_MGLASS_ACTION_Y) ||
|
||||
key == ShortcutsManager::getShortcutsManager().getShortcut(ZOOM_OUT_MGLASS_ACTION_Y)))
|
||||
{
|
||||
QCoreApplication::sendEvent(mglass,event);
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
QAbstractScrollArea::keyPressEvent(event);
|
||||
}
|
||||
|
||||
void Viewer::wheelEvent(QWheelEvent * event)
|
||||
{
|
||||
if(render->hasLoadedComic())
|
||||
{
|
||||
if((event->delta()<0)&&(verticalScrollBar()->sliderPosition()==verticalScrollBar()->maximum()))
|
||||
{
|
||||
if(wheelStop)
|
||||
{
|
||||
next();
|
||||
verticalScroller->stop();
|
||||
event->accept();
|
||||
wheelStop = false;
|
||||
return;
|
||||
}
|
||||
else
|
||||
wheelStop = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if((event->delta()>0)&&(verticalScrollBar()->sliderPosition()==verticalScrollBar()->minimum()))
|
||||
{
|
||||
if(wheelStop)
|
||||
{
|
||||
prev();
|
||||
verticalScroller->stop();
|
||||
event->accept();
|
||||
wheelStop = false;
|
||||
return;
|
||||
}
|
||||
else
|
||||
wheelStop = true;
|
||||
}
|
||||
}
|
||||
|
||||
int deltaNotFinished = 0;
|
||||
if(verticalScroller->state() == QAbstractAnimation::Running)
|
||||
{
|
||||
deltaNotFinished = verticalScroller->startValue().toInt() - verticalScroller->endValue().toInt();
|
||||
verticalScroller->stop();
|
||||
}
|
||||
|
||||
|
||||
int currentPos = verticalScrollBar()->sliderPosition();
|
||||
verticalScroller->setDuration(250);
|
||||
verticalScroller->setStartValue(currentPos);
|
||||
verticalScroller->setEndValue(currentPos - event->delta() - deltaNotFinished);
|
||||
|
||||
verticalScroller->start();
|
||||
|
||||
//QAbstractScrollArea::wheelEvent(event);
|
||||
}
|
||||
}
|
||||
|
||||
void Viewer::resizeEvent(QResizeEvent * event)
|
||||
{
|
||||
updateContentSize();
|
||||
goToFlow->move(QPoint((width()-goToFlow->width())/2,height()-goToFlow->height()));
|
||||
informationLabel->updatePosition();
|
||||
QScrollArea::resizeEvent(event);
|
||||
}
|
||||
|
||||
void Viewer::mouseMoveEvent(QMouseEvent * event)
|
||||
{
|
||||
showCursor();
|
||||
hideCursorTimer->start(2500);
|
||||
|
||||
if(magnifyingGlassShowed)
|
||||
mglass->move(static_cast<int>(event->x()-float(mglass->width())/2),static_cast<int>(event->y()-float(mglass->height())/2));
|
||||
|
||||
if(render->hasLoadedComic())
|
||||
{
|
||||
if(showGoToFlowAnimation->state()!=QPropertyAnimation::Running)
|
||||
{
|
||||
if(goToFlow->isVisible())
|
||||
{
|
||||
QPoint gtfPos = goToFlow->mapFrom(this,event->pos());
|
||||
if(gtfPos.y() < 0 || gtfPos.x()<0 || gtfPos.x()>goToFlow->width())//TODO this extra check is for Mavericks (mouseMove over goToFlowGL seems to be broken)
|
||||
animateHideGoToFlow();
|
||||
//goToFlow->hide();
|
||||
}
|
||||
else
|
||||
{
|
||||
int umbral = (width()-goToFlow->width())/2;
|
||||
if((event->y()>height()-15)&&(event->x()>umbral)&&(event->x()<width()-umbral))
|
||||
{
|
||||
|
||||
animateShowGoToFlow();
|
||||
hideCursorTimer->stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(drag)
|
||||
{
|
||||
int currentPosY = verticalScrollBar()->sliderPosition();
|
||||
int currentPosX = horizontalScrollBar()->sliderPosition();
|
||||
verticalScrollBar()->setSliderPosition(currentPosY=currentPosY+(yDragOrigin-event->y()));
|
||||
horizontalScrollBar()->setSliderPosition(currentPosX=currentPosX+(xDragOrigin-event->x()));
|
||||
yDragOrigin = event->y();
|
||||
xDragOrigin = event->x();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
const QPixmap * Viewer::pixmap()
|
||||
{
|
||||
return content->pixmap();
|
||||
}
|
||||
|
||||
void Viewer::magnifyingGlassSwitch()
|
||||
{
|
||||
magnifyingGlassShowed?hideMagnifyingGlass():showMagnifyingGlass();
|
||||
}
|
||||
|
||||
void Viewer::showMagnifyingGlass()
|
||||
{
|
||||
if(render->hasLoadedComic())
|
||||
{
|
||||
QPoint p = QPoint(cursor().pos().x(),cursor().pos().y());
|
||||
p = this->parentWidget()->mapFromGlobal(p);
|
||||
mglass->move(static_cast<int>(p.x()-float(mglass->width())/2)
|
||||
,static_cast<int>(p.y()-float(mglass->height())/2));
|
||||
mglass->show();
|
||||
mglass->updateImage(mglass->x()+mglass->width()/2,mglass->y()+mglass->height()/2);
|
||||
magnifyingGlassShowed = true;
|
||||
}
|
||||
}
|
||||
|
||||
void Viewer::hideMagnifyingGlass()
|
||||
{
|
||||
mglass->hide();
|
||||
magnifyingGlassShowed = false;
|
||||
}
|
||||
|
||||
void Viewer::informationSwitch()
|
||||
{
|
||||
information?informationLabel->hide():informationLabel->show();
|
||||
//informationLabel->move(QPoint((width()-informationLabel->width())/2,0));
|
||||
information=!information;
|
||||
Configuration::getConfiguration().setShowInformation(information);
|
||||
//TODO it shouldn't be neccesary
|
||||
informationLabel->adjustSize();
|
||||
informationLabel->update();
|
||||
}
|
||||
|
||||
void Viewer::updateInformation()
|
||||
{
|
||||
if(render->hasLoadedComic())
|
||||
{
|
||||
informationLabel->setText(render->getCurrentPagesInformation()+" - "+QTime::currentTime().toString("HH:mm"));
|
||||
informationLabel->adjustSize();
|
||||
informationLabel->update(); //TODO it shouldn't be neccesary
|
||||
}
|
||||
}
|
||||
|
||||
void Viewer::goToFlowSwitch()
|
||||
{
|
||||
goToFlow->isVisible()?animateHideGoToFlow():showGoToFlow();
|
||||
}
|
||||
|
||||
void Viewer::translatorSwitch()
|
||||
{
|
||||
translator->isVisible()?animateHideTranslator():animateShowTranslator();
|
||||
}
|
||||
|
||||
void Viewer::showGoToFlow()
|
||||
{
|
||||
if(render->hasLoadedComic())
|
||||
{
|
||||
animateShowGoToFlow();
|
||||
}
|
||||
}
|
||||
|
||||
void Viewer::animateShowGoToFlow()
|
||||
{
|
||||
if(goToFlow->isHidden() && showGoToFlowAnimation->state()!=QPropertyAnimation::Running)
|
||||
{
|
||||
disconnect(showGoToFlowAnimation,SIGNAL(finished()),goToFlow,SLOT(hide()));
|
||||
connect(showGoToFlowAnimation,SIGNAL(finished()),this,SLOT(moveCursoToGoToFlow()));
|
||||
showGoToFlowAnimation->setStartValue(QPoint((width()-goToFlow->width())/2,height()-10));
|
||||
showGoToFlowAnimation->setEndValue(QPoint((width()-goToFlow->width())/2,height()-goToFlow->height()));
|
||||
showGoToFlowAnimation->start();
|
||||
goToFlow->centerSlide(render->getIndex());
|
||||
goToFlow->setPageNumber(render->getIndex());
|
||||
goToFlow->show();
|
||||
goToFlow->setFocus(Qt::OtherFocusReason);
|
||||
}
|
||||
}
|
||||
|
||||
void Viewer::animateHideGoToFlow()
|
||||
{
|
||||
if(goToFlow->isVisible() && showGoToFlowAnimation->state()!=QPropertyAnimation::Running)
|
||||
{
|
||||
connect(showGoToFlowAnimation,SIGNAL(finished()),goToFlow,SLOT(hide()));
|
||||
disconnect(showGoToFlowAnimation,SIGNAL(finished()),this,SLOT(moveCursoToGoToFlow()));
|
||||
showGoToFlowAnimation->setStartValue(QPoint((width()-goToFlow->width())/2,height()-goToFlow->height()));
|
||||
showGoToFlowAnimation->setEndValue(QPoint((width()-goToFlow->width())/2,height()));
|
||||
showGoToFlowAnimation->start();
|
||||
goToFlow->centerSlide(render->getIndex());
|
||||
goToFlow->setPageNumber(render->getIndex());
|
||||
this->setFocus(Qt::OtherFocusReason);
|
||||
}
|
||||
}
|
||||
|
||||
void Viewer::moveCursoToGoToFlow()
|
||||
{
|
||||
//Move cursor to goToFlow widget on show (this avoid hide when mouse is moved)
|
||||
int y = goToFlow->pos().y();
|
||||
int x1 = goToFlow->pos().x();
|
||||
int x2 = x1 + goToFlow->width();
|
||||
QPoint cursorPos = mapFromGlobal(cursor().pos());
|
||||
int cursorX = cursorPos.x();
|
||||
int cursorY = cursorPos.y();
|
||||
|
||||
if(cursorY <= y)
|
||||
cursorY = y + 10;
|
||||
if(cursorX <= x1)
|
||||
cursorX = x1 + 10;
|
||||
if(cursorX >= x2)
|
||||
cursorX = x2 - 10;
|
||||
cursor().setPos(mapToGlobal(QPoint(cursorX,cursorY)));
|
||||
hideCursorTimer->stop();
|
||||
showCursor();
|
||||
}
|
||||
|
||||
void Viewer::rotateLeft()
|
||||
{
|
||||
render->rotateLeft();
|
||||
}
|
||||
void Viewer::rotateRight()
|
||||
{
|
||||
render->rotateRight();
|
||||
}
|
||||
|
||||
//TODO
|
||||
void Viewer::setBookmark(bool set)
|
||||
{
|
||||
render->setBookmark();
|
||||
if(set) //add bookmark
|
||||
{
|
||||
render->setBookmark();
|
||||
}
|
||||
else //remove bookmark
|
||||
{
|
||||
render->removeBookmark();
|
||||
}
|
||||
}
|
||||
|
||||
void Viewer::save ()
|
||||
{
|
||||
if(render->hasLoadedComic())
|
||||
render->save();
|
||||
}
|
||||
|
||||
void Viewer::doublePageSwitch()
|
||||
{
|
||||
doublePage = !doublePage;
|
||||
render->doublePageSwitch();
|
||||
Configuration::getConfiguration().setDoublePage(doublePage);
|
||||
}
|
||||
|
||||
void Viewer::doubleMangaPageSwitch()
|
||||
{
|
||||
doubleMangaPage = !doubleMangaPage;
|
||||
render->doubleMangaPageSwitch();
|
||||
Configuration::getConfiguration().setDoubleMangaPage(doubleMangaPage);
|
||||
}
|
||||
|
||||
void Viewer::resetContent()
|
||||
{
|
||||
configureContent(tr("Press 'O' to open comic."));
|
||||
goToFlow->reset();
|
||||
emit reset();
|
||||
}
|
||||
|
||||
void Viewer::setLoadingMessage()
|
||||
{
|
||||
if(magnifyingGlassShowed)
|
||||
{
|
||||
hideMagnifyingGlass();
|
||||
restoreMagnifyingGlass = true;
|
||||
}
|
||||
emit(pageAvailable(false));
|
||||
configureContent(tr("Loading...please wait!"));
|
||||
}
|
||||
|
||||
void Viewer::setPageUnavailableMessage()
|
||||
{
|
||||
if(magnifyingGlassShowed)
|
||||
{
|
||||
hideMagnifyingGlass();
|
||||
restoreMagnifyingGlass = true;
|
||||
}
|
||||
emit(pageAvailable(false));
|
||||
configureContent(tr("Page not available!"));
|
||||
}
|
||||
|
||||
void Viewer::configureContent(QString msg)
|
||||
{
|
||||
content->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
|
||||
if(!(devicePixelRatio()>1))
|
||||
content->setScaledContents(true);
|
||||
content->setAlignment(Qt::AlignTop|Qt::AlignHCenter);
|
||||
content->setText(msg);
|
||||
content->setFont(QFont("courier new", 12));
|
||||
content->adjustSize();
|
||||
setFocus(Qt::ShortcutFocusReason);
|
||||
//emit showingText();
|
||||
}
|
||||
|
||||
void Viewer::hideCursor()
|
||||
{
|
||||
#ifdef Q_OS_MAC
|
||||
setCursor(QCursor(QBitmap(1,1),QBitmap(1,1)));
|
||||
#else
|
||||
setCursor(Qt::BlankCursor);
|
||||
#endif
|
||||
}
|
||||
void Viewer::showCursor()
|
||||
{
|
||||
if(drag)
|
||||
setCursor(Qt::ClosedHandCursor);
|
||||
else
|
||||
setCursor(Qt::OpenHandCursor);
|
||||
}
|
||||
|
||||
void Viewer::updateOptions()
|
||||
{
|
||||
|
||||
goToFlow->setFlowType(Configuration::getConfiguration().getFlowType());
|
||||
updateBackgroundColor(Configuration::getConfiguration().getBackgroundColor());
|
||||
updateContentSize();
|
||||
//goToFlow->updateSize();
|
||||
}
|
||||
|
||||
void Viewer::updateBackgroundColor(const QColor & color)
|
||||
{
|
||||
QPalette palette;
|
||||
palette.setColor(backgroundRole(), color);
|
||||
setPalette(palette);
|
||||
}
|
||||
|
||||
void Viewer::animateShowTranslator()
|
||||
{
|
||||
if(translator->isHidden() && translatorAnimation->state()!=QPropertyAnimation::Running)
|
||||
{
|
||||
disconnect(translatorAnimation,SIGNAL(finished()),translator,SLOT(hide()));
|
||||
if(translatorXPos == -10000)
|
||||
translatorXPos = (width()-translator->width())/2;
|
||||
int x = qMax(0,qMin(translatorXPos,width()-translator->width()));
|
||||
if(translator->pos().x()<0)
|
||||
{
|
||||
translatorAnimation->setStartValue(QPoint(-translator->width(),translator->pos().y()));
|
||||
}
|
||||
else
|
||||
{
|
||||
translatorAnimation->setStartValue(QPoint(width()+translator->width(),translator->pos().y()));
|
||||
}
|
||||
translatorAnimation->setEndValue(QPoint(x,translator->pos().y()));
|
||||
translatorAnimation->start();
|
||||
translator->show();
|
||||
translator->setFocus(Qt::OtherFocusReason);
|
||||
}
|
||||
}
|
||||
void Viewer::animateHideTranslator()
|
||||
{
|
||||
if(translator->isVisible() && translatorAnimation->state()!=QPropertyAnimation::Running)
|
||||
{
|
||||
connect(translatorAnimation,SIGNAL(finished()),translator,SLOT(hide()));
|
||||
translatorAnimation->setStartValue(QPoint(translatorXPos = translator->pos().x(),translator->pos().y()));
|
||||
if((translator->width()/2)+translator->pos().x() <= width()/2)
|
||||
translatorAnimation->setEndValue(QPoint(-translator->width(),translator->pos().y()));
|
||||
else
|
||||
translatorAnimation->setEndValue(QPoint(width()+translator->width(),translator->pos().y()));
|
||||
translatorAnimation->start();
|
||||
this->setFocus(Qt::OtherFocusReason);
|
||||
}
|
||||
}
|
||||
|
||||
void Viewer::mousePressEvent ( QMouseEvent * event )
|
||||
{
|
||||
drag = true;
|
||||
yDragOrigin = event->y();
|
||||
xDragOrigin = event->x();
|
||||
setCursor(Qt::ClosedHandCursor);
|
||||
event->accept();
|
||||
}
|
||||
|
||||
void Viewer::mouseReleaseEvent ( QMouseEvent * event )
|
||||
{
|
||||
drag = false;
|
||||
setCursor(Qt::OpenHandCursor);
|
||||
event->accept();
|
||||
}
|
||||
|
||||
void Viewer::updateFitToWidthRatio(float ratio)
|
||||
{
|
||||
Configuration::getConfiguration().setAdjustToWidth(true);
|
||||
adjustToWidthRatio = ratio;
|
||||
updateContentSize();
|
||||
}
|
||||
|
||||
void Viewer::updateConfig(QSettings * settings)
|
||||
{
|
||||
goToFlow->updateConfig(settings);
|
||||
|
||||
QPalette palette;
|
||||
palette.setColor(backgroundRole(), Configuration::getConfiguration().getBackgroundColor());
|
||||
setPalette(palette);
|
||||
}
|
||||
|
||||
//deprecated
|
||||
void Viewer::updateImageOptions()
|
||||
{
|
||||
render->reload();
|
||||
}
|
||||
|
||||
void Viewer::updateFilters(int brightness, int contrast,int gamma)
|
||||
{
|
||||
render->updateFilters(brightness,contrast,gamma);
|
||||
}
|
||||
|
||||
void Viewer::setBookmarks()
|
||||
{
|
||||
bd->setBookmarks(*render->getBookmarks());
|
||||
}
|
||||
|
||||
void Viewer::showIsCoverMessage()
|
||||
{
|
||||
if(!shouldOpenPrevious)
|
||||
{
|
||||
notificationsLabel->setText(tr("Cover!"));
|
||||
notificationsLabel->flash();
|
||||
shouldOpenPrevious = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
shouldOpenPrevious = false;
|
||||
emit (openPreviousComic());
|
||||
}
|
||||
|
||||
shouldOpenNext = false; //single page comic
|
||||
}
|
||||
|
||||
void Viewer::showIsLastMessage()
|
||||
{
|
||||
if(!shouldOpenNext)
|
||||
{
|
||||
notificationsLabel->setText(tr("Last page!"));
|
||||
notificationsLabel->flash();
|
||||
shouldOpenNext = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
shouldOpenNext = false;
|
||||
emit (openNextComic());
|
||||
}
|
||||
|
||||
shouldOpenPrevious = false; //single page comic
|
||||
}
|
||||
|
||||
unsigned int Viewer::getIndex()
|
||||
{
|
||||
return render->getIndex()+1;
|
||||
}
|
||||
|
||||
int Viewer::getCurrentPageNumber()
|
||||
{
|
||||
return render->getIndex();
|
||||
}
|
||||
|
||||
void Viewer::updateComic(ComicDB & comic)
|
||||
{
|
||||
if(render->hasLoadedComic())
|
||||
{
|
||||
//set currentPage
|
||||
comic.info.currentPage = render->getIndex()+1;
|
||||
//set bookmarks
|
||||
Bookmarks * boomarks = render->getBookmarks();
|
||||
QList<int> boomarksList = boomarks->getBookmarkPages();
|
||||
int numBookmarks = boomarksList.size();
|
||||
if(numBookmarks > 0)
|
||||
comic.info.bookmark1 = boomarksList[0];
|
||||
if(numBookmarks > 1)
|
||||
comic.info.bookmark2 = boomarksList[1];
|
||||
if(numBookmarks > 2)
|
||||
comic.info.bookmark3 = boomarksList[2];
|
||||
//set filters
|
||||
//TODO: avoid use settings for this...
|
||||
QSettings settings(YACReader::getSettingsPath()+"/YACReader.ini",QSettings::IniFormat);
|
||||
int brightness = settings.value(BRIGHTNESS,0).toInt();
|
||||
int contrast = settings.value(CONTRAST,100).toInt();
|
||||
int gamma = settings.value(GAMMA,100).toInt();
|
||||
|
||||
if(brightness != 0 || comic.info.brightness!=-1)
|
||||
comic.info.brightness = brightness;
|
||||
if(contrast != 100 || comic.info.contrast!=-1)
|
||||
comic.info.contrast = contrast;
|
||||
if(gamma != 100 || comic.info.gamma!=-1)
|
||||
comic.info.gamma = gamma;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
166
YACReader/viewer.h
Normal file
166
YACReader/viewer.h
Normal file
@ -0,0 +1,166 @@
|
||||
#ifndef __VIEWER_H
|
||||
#define __VIEWER_H
|
||||
|
||||
#include <QMainWindow>
|
||||
|
||||
#include <QScrollArea>
|
||||
#include <QAction>
|
||||
#include <QTimer>
|
||||
#include <QLabel>
|
||||
#include <QPixmap>
|
||||
#include <QKeyEvent>
|
||||
#include <QResizeEvent>
|
||||
#include <QWheelEvent>
|
||||
#include <QMouseEvent>
|
||||
#include <QCloseEvent>
|
||||
#include <QPropertyAnimation>
|
||||
#include <QSettings>
|
||||
|
||||
class ComicDB;
|
||||
class Comic;
|
||||
class MagnifyingGlass;
|
||||
class GoToFlow;
|
||||
class BookmarksDialog;
|
||||
class Render;
|
||||
class GoToDialog;
|
||||
class YACReaderTranslator;
|
||||
class GoToFlowWidget;
|
||||
class Bookmarks;
|
||||
class PageLabelWidget;
|
||||
class NotificationsLabelWidget;
|
||||
|
||||
class Viewer : public QScrollArea
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
bool fullscreen; //TODO, change by the right use of windowState();
|
||||
public slots:
|
||||
void prepareForOpening();
|
||||
void open(QString pathFile, int atPage = -1);
|
||||
void open(QString pathFile, const ComicDB & comic);
|
||||
void prev();
|
||||
void next();
|
||||
void showGoToDialog();
|
||||
void goTo(unsigned int page);
|
||||
void updatePage();
|
||||
void updateContentSize();
|
||||
void updateVerticalScrollBar();
|
||||
void updateOptions();
|
||||
void scrollDown();
|
||||
void scrollUp();
|
||||
void magnifyingGlassSwitch();
|
||||
void showMagnifyingGlass();
|
||||
void hideMagnifyingGlass();
|
||||
void informationSwitch();
|
||||
void updateInformation();
|
||||
void goToFlowSwitch();
|
||||
void showGoToFlow();
|
||||
void moveCursoToGoToFlow();
|
||||
void animateShowGoToFlow();
|
||||
void animateHideGoToFlow();
|
||||
void rotateLeft();
|
||||
void rotateRight();
|
||||
bool magnifyingGlassIsVisible() {return magnifyingGlassShowed;}
|
||||
void setBookmark(bool);
|
||||
void save();
|
||||
void doublePageSwitch();
|
||||
void doubleMangaPageSwitch();
|
||||
void resetContent();
|
||||
void setLoadingMessage();
|
||||
void setPageUnavailableMessage();
|
||||
void configureContent(QString msg);
|
||||
void hideCursor();
|
||||
void showCursor();
|
||||
void createConnections();
|
||||
void translatorSwitch();
|
||||
void animateShowTranslator();
|
||||
void animateHideTranslator();
|
||||
virtual void mousePressEvent ( QMouseEvent * event );
|
||||
virtual void mouseReleaseEvent ( QMouseEvent * event );
|
||||
void updateBackgroundColor(const QColor & color);
|
||||
void updateFitToWidthRatio(float ratio);
|
||||
void updateConfig(QSettings * settings);
|
||||
void showMessageErrorOpening();
|
||||
void showMessageErrorOpening(QString);
|
||||
void processCRCError(QString message);
|
||||
void setBookmarks();
|
||||
//deprecated
|
||||
void updateImageOptions();
|
||||
void updateFilters(int brightness, int contrast,int gamma);
|
||||
void showIsCoverMessage();
|
||||
void showIsLastMessage();
|
||||
int getCurrentPageNumber();
|
||||
|
||||
private:
|
||||
bool information;
|
||||
bool doublePage;
|
||||
bool doubleMangaPage;
|
||||
PageLabelWidget * informationLabel;
|
||||
//QTimer * scroller;
|
||||
QPropertyAnimation * verticalScroller;
|
||||
int posByStep;
|
||||
int nextPos;
|
||||
GoToFlowWidget * goToFlow;
|
||||
QPropertyAnimation * showGoToFlowAnimation;
|
||||
GoToDialog * goToDialog;
|
||||
//!Image properties
|
||||
float adjustToWidthRatio;
|
||||
//! Comic
|
||||
//Comic * comic;
|
||||
int index;
|
||||
QPixmap *currentPage;
|
||||
BookmarksDialog * bd;
|
||||
bool wheelStop;
|
||||
Render * render;
|
||||
QTimer * hideCursorTimer;
|
||||
int direction;
|
||||
bool drag;
|
||||
int numScrollSteps;
|
||||
|
||||
//!Widgets
|
||||
QLabel *content;
|
||||
|
||||
YACReaderTranslator * translator;
|
||||
int translatorXPos;
|
||||
QPropertyAnimation * translatorAnimation;
|
||||
|
||||
int yDragOrigin;
|
||||
int xDragOrigin;
|
||||
|
||||
NotificationsLabelWidget * notificationsLabel;
|
||||
|
||||
bool shouldOpenNext;
|
||||
bool shouldOpenPrevious;
|
||||
|
||||
private:
|
||||
//!Magnifying glass
|
||||
MagnifyingGlass *mglass;
|
||||
bool magnifyingGlassShowed;
|
||||
bool restoreMagnifyingGlass;
|
||||
|
||||
//! Manejadores de evento:
|
||||
void keyPressEvent(QKeyEvent * event);
|
||||
void resizeEvent(QResizeEvent * event);
|
||||
void wheelEvent(QWheelEvent * event);
|
||||
void mouseMoveEvent(QMouseEvent * event);
|
||||
|
||||
public:
|
||||
Viewer(QWidget * parent = 0);
|
||||
~Viewer();
|
||||
void toggleFullScreen();
|
||||
const QPixmap * pixmap();
|
||||
//Comic * getComic(){return comic;}
|
||||
const BookmarksDialog * getBookmarksDialog(){return bd;}
|
||||
//returns the current index starting in 1 [1,nPages]
|
||||
unsigned int getIndex();
|
||||
void updateComic(ComicDB & comic);
|
||||
signals:
|
||||
void backgroundChanges();
|
||||
void pageAvailable(bool);
|
||||
void pageIsBookmark(bool);
|
||||
void reset();
|
||||
void openNextComic();
|
||||
void openPreviousComic();
|
||||
};
|
||||
|
||||
#endif
|
||||
94
YACReader/width_slider.cpp
Normal file
94
YACReader/width_slider.cpp
Normal file
@ -0,0 +1,94 @@
|
||||
#include "width_slider.h"
|
||||
|
||||
#include <QWidget>
|
||||
#include <QHBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QSlider>
|
||||
#include "configuration.h"
|
||||
|
||||
YACReaderSliderAction::YACReaderSliderAction (QWidget * parent)
|
||||
:QWidgetAction (parent) {
|
||||
|
||||
widget = new YACReaderSlider();
|
||||
setDefaultWidget(widget);
|
||||
|
||||
connect(widget,SIGNAL(fitToWidthRatioChanged(float)),this,SIGNAL(fitToWidthRatioChanged(float)));
|
||||
|
||||
|
||||
}
|
||||
|
||||
void YACReaderSliderAction::updateText(int value)
|
||||
{
|
||||
widget->updateText(value);
|
||||
}
|
||||
|
||||
void YACReaderSliderAction::updateFitToWidthRatio(float v)
|
||||
{
|
||||
widget->updateFitToWidthRatio(v);
|
||||
}
|
||||
|
||||
YACReaderSlider::YACReaderSlider(QWidget *parent)
|
||||
:QWidget(parent)
|
||||
{
|
||||
QHBoxLayout* pLayout = new QHBoxLayout();
|
||||
|
||||
pLayout->addStretch();
|
||||
|
||||
percentageLabel = new QLabel ("100%");
|
||||
percentageLabel->setStyleSheet("QLabel { color : white; }");
|
||||
percentageLabel->setAlignment(Qt::AlignHCenter|Qt::AlignVCenter);
|
||||
pLayout->addWidget (percentageLabel);
|
||||
slider = new QSlider(NULL);
|
||||
slider->setOrientation(Qt::Horizontal);
|
||||
pLayout->addWidget (slider);
|
||||
|
||||
QString sliderCSS =
|
||||
|
||||
"QSlider::sub-page:horizontal {background-image: url(:/images/sliderSubPage.png); border: 0px; margin-left: 18px;}"
|
||||
"QSlider::add-page:horizontal {background-image: url(:/images/sliderAddPage.png); border: 0px; margin-right: 25px;}"
|
||||
"QSlider::handle:horizontal {image: url(:/images/sliderHandle.png); width: 31px;height:45px; }"
|
||||
"QSlider::groove:horizontal {border-image:url(:/images/sliderGround.png); border-left:-2px; border-right:0;}"
|
||||
;
|
||||
slider->setStyleSheet(sliderCSS);
|
||||
slider->setFixedSize(218,45);
|
||||
|
||||
QLabel* imgLabel = new QLabel(this);
|
||||
QPixmap p(":/images/sliderBackground.png");
|
||||
imgLabel->resize(p.size());
|
||||
imgLabel->setPixmap(p);
|
||||
|
||||
pLayout->setMargin(0);
|
||||
pLayout->setSpacing(0);
|
||||
|
||||
pLayout->setStretchFactor(percentageLabel,1);
|
||||
pLayout->setStretchFactor(slider,0);
|
||||
|
||||
|
||||
setLayout (pLayout);
|
||||
setAutoFillBackground(false);
|
||||
|
||||
setMinimumSize(276,45);
|
||||
|
||||
slider->setMinimum(50);
|
||||
slider->setMaximum(100);
|
||||
slider->setPageStep(5);
|
||||
|
||||
int value = Configuration::getConfiguration().getFitToWidthRatio()*100;
|
||||
slider->setValue(value);
|
||||
percentageLabel->setText(QString("%1 %").arg(value));
|
||||
connect(slider,SIGNAL(valueChanged(int)),this,SLOT(updateText(int)));
|
||||
}
|
||||
|
||||
void YACReaderSlider::updateText(int value)
|
||||
{
|
||||
percentageLabel->setText(QString("%1 %").arg(value));
|
||||
Configuration::getConfiguration().setFitToWidthRatio(value/100.0);
|
||||
emit(fitToWidthRatioChanged(value / 100.0f));
|
||||
}
|
||||
|
||||
void YACReaderSlider::updateFitToWidthRatio(float v)
|
||||
{
|
||||
int value = v*100;
|
||||
slider->setValue(value);
|
||||
percentageLabel->setText(QString("%1 %").arg(value));
|
||||
}
|
||||
48
YACReader/width_slider.h
Normal file
48
YACReader/width_slider.h
Normal file
@ -0,0 +1,48 @@
|
||||
#ifndef WIDTH_SLIDER_H
|
||||
#define WIDTH_SLIDER_H
|
||||
|
||||
#include <QWidgetAction>
|
||||
|
||||
class QLabel;
|
||||
class QSlider;
|
||||
|
||||
class YACReaderSlider : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
QLabel * percentageLabel;
|
||||
QSlider * slider;
|
||||
|
||||
public:
|
||||
|
||||
YACReaderSlider (QWidget * parent = 0);
|
||||
|
||||
public slots:
|
||||
void updateText(int value);
|
||||
void updateFitToWidthRatio(float v);
|
||||
|
||||
|
||||
signals:
|
||||
void fitToWidthRatioChanged(float value);
|
||||
};
|
||||
|
||||
class YACReaderSliderAction : public QWidgetAction
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
YACReaderSlider * widget;
|
||||
|
||||
public:
|
||||
|
||||
YACReaderSliderAction (QWidget * parent = 0);
|
||||
|
||||
public slots:
|
||||
void updateText(int value);
|
||||
void updateFitToWidthRatio(float v);
|
||||
|
||||
|
||||
signals:
|
||||
void fitToWidthRatioChanged(float value);
|
||||
};
|
||||
|
||||
#endif
|
||||
791
YACReader/yacreader_de.ts
Normal file
791
YACReader/yacreader_de.ts
Normal file
@ -0,0 +1,791 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="de_DE">
|
||||
<context>
|
||||
<name>BookmarksDialog</name>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="25"/>
|
||||
<source>Lastest Page</source>
|
||||
<translation>Vorherige Seite</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="73"/>
|
||||
<source>Close</source>
|
||||
<translation>Schliessen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="83"/>
|
||||
<source>Click on any image to go to the bookmark</source>
|
||||
<translation>Click auf beliebiges Bild um zum Lesezeichen zu gehen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="107"/>
|
||||
<location filename="bookmarks_dialog.cpp" line="131"/>
|
||||
<source>Loading...</source>
|
||||
<translation>Laden...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FileComic</name>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="302"/>
|
||||
<source>CRC error on page (%1): some of the pages will not be displayed correctly</source>
|
||||
<translation>CRC Error auf Seite (%1): einige Seiten werden nicht korrekt dargestellt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="309"/>
|
||||
<source>Unknown error opening the file</source>
|
||||
<translation>Unbekannter Fehler beim öffnen des Files</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="418"/>
|
||||
<source>7z not found</source>
|
||||
<translation>7z nicht gefunden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="424"/>
|
||||
<source>Format not supported</source>
|
||||
<translation>Format wird nicht unterstützt</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GoToDialog</name>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="17"/>
|
||||
<source>Page : </source>
|
||||
<translation>Seite :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="25"/>
|
||||
<source>Go To</source>
|
||||
<translation>Gehe nach</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="27"/>
|
||||
<source>Cancel</source>
|
||||
<translation>Abbrechen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="41"/>
|
||||
<location filename="goto_dialog.cpp" line="76"/>
|
||||
<source>Total pages : </source>
|
||||
<translation>Seiten total :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="55"/>
|
||||
<source>Go to...</source>
|
||||
<translation>Gehe nach...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GoToFlowToolBar</name>
|
||||
<message>
|
||||
<location filename="goto_flow_toolbar.cpp" line="44"/>
|
||||
<source>Page : </source>
|
||||
<translation>Seite :</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>HelpAboutDialog</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/help_about_dialog.cpp" line="21"/>
|
||||
<source>About</source>
|
||||
<translation>Über</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/help_about_dialog.cpp" line="24"/>
|
||||
<source>Help</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindowViewer</name>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="197"/>
|
||||
<source>&Open</source>
|
||||
<translation>&Öffnen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="198"/>
|
||||
<source>O</source>
|
||||
<translation>O</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="200"/>
|
||||
<source>Open a comic</source>
|
||||
<translation>Comic öffnen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="203"/>
|
||||
<source>Open Folder</source>
|
||||
<translation>Ordner Öffnen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="204"/>
|
||||
<source>Ctrl+O</source>
|
||||
<translation>Crtl+ O</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="206"/>
|
||||
<source>Open image folder</source>
|
||||
<translation>Bilder Ordner öffnen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="209"/>
|
||||
<source>Save</source>
|
||||
<translation>Speichern</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="211"/>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>Save current page</source>
|
||||
<translation>Diese Seite speichern</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="215"/>
|
||||
<source>Previous Comic</source>
|
||||
<translation>Voheriger Comic</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="218"/>
|
||||
<source>Open previous comic</source>
|
||||
<translation>Vorherigen Comic öffnen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="222"/>
|
||||
<source>Next Comic</source>
|
||||
<translation>Nächster Comic</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="225"/>
|
||||
<source>Open next comic</source>
|
||||
<translation>Nächsten Comic öffnen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="229"/>
|
||||
<source>&Previous</source>
|
||||
<translation>&Vorherige</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="233"/>
|
||||
<source>Go to previous page</source>
|
||||
<translation>Zur vorherigen Seite gehen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="237"/>
|
||||
<source>&Next</source>
|
||||
<translation>&Nächste</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="241"/>
|
||||
<source>Go to next page</source>
|
||||
<translation>Zur nächsten Seite gehen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="254"/>
|
||||
<source>Fit Width</source>
|
||||
<translation>Breite anpassen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="250"/>
|
||||
<source>Fit image to height</source>
|
||||
<translation>Bild auf Höhe anpassen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="245"/>
|
||||
<source>Fit Height</source>
|
||||
<translation>Höhe anpassen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="259"/>
|
||||
<source>Fit image to width</source>
|
||||
<translation>Bildbreite anpassen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="263"/>
|
||||
<source>Rotate image to the left</source>
|
||||
<translation>Bild nach links drehen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="264"/>
|
||||
<source>L</source>
|
||||
<translation>L</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="269"/>
|
||||
<source>Rotate image to the right</source>
|
||||
<translation>Bild nach rechts drehen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="270"/>
|
||||
<source>R</source>
|
||||
<translation>R</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="275"/>
|
||||
<source>Double page mode</source>
|
||||
<translation>Doppelseiten Modus</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="276"/>
|
||||
<source>Switch to double page mode</source>
|
||||
<translation>Zum Doppelseiten Modus wechseln</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="277"/>
|
||||
<source>D</source>
|
||||
<translation>D</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="284"/>
|
||||
<source>Go To</source>
|
||||
<translation>Gehe zu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="285"/>
|
||||
<source>G</source>
|
||||
<translation>G</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="288"/>
|
||||
<source>Go to page ...</source>
|
||||
<translation>Gehe nach Seite ...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="291"/>
|
||||
<source>Options</source>
|
||||
<translation>Optionen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="292"/>
|
||||
<source>C</source>
|
||||
<translation>C</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="293"/>
|
||||
<source>YACReader options</source>
|
||||
<translation>YACReader Optionen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="298"/>
|
||||
<source>Help</source>
|
||||
<translation>Hilfe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="299"/>
|
||||
<source>Help, About YACReader</source>
|
||||
<translation>Hilfe, über YACReader</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="304"/>
|
||||
<source>Magnifying glass</source>
|
||||
<translation>Vergößerungsglas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="305"/>
|
||||
<source>Switch Magnifying glass</source>
|
||||
<translation>Vergrößerungsglas wechseln</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="306"/>
|
||||
<source>Z</source>
|
||||
<translation>Z</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="312"/>
|
||||
<source>Set bookmark</source>
|
||||
<translation>Lesezeichen setzen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="313"/>
|
||||
<source>Set a bookmark on the current page</source>
|
||||
<translation>Lesezeichen auf dieser Seite setzen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="322"/>
|
||||
<source>Show bookmarks</source>
|
||||
<translation>Lesezeichen anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="323"/>
|
||||
<source>Show the bookmarks of the current comic</source>
|
||||
<translation>Lesezeichen für diesen Comic anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="324"/>
|
||||
<source>M</source>
|
||||
<translation>M</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="329"/>
|
||||
<source>Show keyboard shortcuts</source>
|
||||
<translation>Tastaturkürzel anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="333"/>
|
||||
<source>Show Info</source>
|
||||
<translation>Info anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="334"/>
|
||||
<source>I</source>
|
||||
<translation>I</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="339"/>
|
||||
<source>Close</source>
|
||||
<translation>Schliessen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="344"/>
|
||||
<source>Show Dictionary</source>
|
||||
<translation>Wörterbuch anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="351"/>
|
||||
<source>Always on top</source>
|
||||
<translation>Immer Oberste Ansicht</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="359"/>
|
||||
<source>Show full size</source>
|
||||
<translation>Vollansicht anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="367"/>
|
||||
<source>Show go to flow</source>
|
||||
<translation>"Go to Flow" anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="376"/>
|
||||
<source>&File</source>
|
||||
<translation>&File</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="545"/>
|
||||
<source>File</source>
|
||||
<translation>File</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="571"/>
|
||||
<source>Open Comic</source>
|
||||
<translation>Comic öffnen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="571"/>
|
||||
<source>Comic files</source>
|
||||
<translation>Comic Files</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="659"/>
|
||||
<source>Open folder</source>
|
||||
<translation>Ordner öffnen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>Image files (*.jpg)</source>
|
||||
<translation>Bilder Files (*.jpg)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>page_%1.jpg</source>
|
||||
<translation>Seite_%1.jpg</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="927"/>
|
||||
<source>There is a new version available</source>
|
||||
<translation>Neue Version verfügbar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="928"/>
|
||||
<source>Do you want to download the new version?</source>
|
||||
<translation>Möchten Sie die neue Version herunterladen?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="931"/>
|
||||
<source>Remind me in 14 days</source>
|
||||
<translation>In 14 Tagen erneut erinnern</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="932"/>
|
||||
<source>Not now</source>
|
||||
<translation>Nicht jetzt</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OptionsDialog</name>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="35"/>
|
||||
<source>"Go to flow" size</source>
|
||||
<translation>"Go to flow" Größe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="46"/>
|
||||
<source>My comics path</source>
|
||||
<translation>Pfad zu Meine Comics </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="56"/>
|
||||
<source>Page width stretch</source>
|
||||
<translation>Seitenbreite strecken</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="77"/>
|
||||
<source>Background color</source>
|
||||
<translation>Hintergrund Farbe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="80"/>
|
||||
<source>Choose</source>
|
||||
<translation>Auswählen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="108"/>
|
||||
<source>Restart is needed</source>
|
||||
<translation>Neustart erforderlich</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="121"/>
|
||||
<source>Brightness</source>
|
||||
<translation>Helligkeit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="122"/>
|
||||
<source>Contrast</source>
|
||||
<translation>Kontrast</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="123"/>
|
||||
<source>Gamma</source>
|
||||
<translation>Gamma</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="127"/>
|
||||
<source>Reset</source>
|
||||
<translation>Zurücksetzen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="133"/>
|
||||
<source>Image options</source>
|
||||
<translation>Bilderoptionen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="143"/>
|
||||
<source>General</source>
|
||||
<translation>Allgemein</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="144"/>
|
||||
<source>Page Flow</source>
|
||||
<translation>Page Flow</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="145"/>
|
||||
<source>Image adjustment</source>
|
||||
<translation>Bildanpassung</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="158"/>
|
||||
<source>Options</source>
|
||||
<translation>Optionen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="165"/>
|
||||
<source>Comics directory</source>
|
||||
<translation>Comics Verzeichnis</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../common/exit_check.cpp" line="14"/>
|
||||
<source>7z lib not found</source>
|
||||
<translation>7z Verzeichnis nicht gefunden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/exit_check.cpp" line="14"/>
|
||||
<source>unable to load 7z lib from ./utils</source>
|
||||
<translation>7z Verzeichnis kann von ./utils nicht geladen werden</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ShortcutsDialog</name>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="16"/>
|
||||
<source>YACReader keyboard shortcuts</source>
|
||||
<translation>YACReader Tastaturkürzel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="20"/>
|
||||
<source>Close</source>
|
||||
<translation>schliessen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="66"/>
|
||||
<source>Keyboard Shortcuts</source>
|
||||
<translation>Tastaturkürzel</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Viewer</name>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="42"/>
|
||||
<location filename="viewer.cpp" line="693"/>
|
||||
<source>Press 'O' to open comic.</source>
|
||||
<translation>'O' drücken um Comic zu öffnen.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="217"/>
|
||||
<source>Not found</source>
|
||||
<translation>Nicht gefunden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="217"/>
|
||||
<source>Comic not found</source>
|
||||
<translation>Comic nicht gefunden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="223"/>
|
||||
<source>Error opening comic</source>
|
||||
<translation>Fehler beim Öffnen des Comics</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="229"/>
|
||||
<source>CRC Error</source>
|
||||
<translation>CRC Fehler</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="706"/>
|
||||
<source>Loading...please wait!</source>
|
||||
<translation>Ladevorgang... Bitte warten!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="717"/>
|
||||
<source>Page not available!</source>
|
||||
<translation>Seite nicht verfügbar!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="853"/>
|
||||
<source>Cover!</source>
|
||||
<translation>Titelseite!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="870"/>
|
||||
<source>Last page!</source>
|
||||
<translation>Letzte Seite!</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFieldEdit</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="9"/>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="29"/>
|
||||
<source>Click to overwrite</source>
|
||||
<translation>Zum Überschreiben drücken</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="11"/>
|
||||
<source>Restore to default</source>
|
||||
<translation>Ursprungszustand wiederherstellen</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFieldPlainTextEdit</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="9"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="20"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="45"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="51"/>
|
||||
<source>Click to overwrite</source>
|
||||
<translation>zum Überschreiben drücken</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="10"/>
|
||||
<source>Restore to default</source>
|
||||
<translation>Urpsrungszustannd wiederherstellen</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFlowConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="13"/>
|
||||
<source>How to show covers:</source>
|
||||
<translation>Wie zeige ich die Titelseite an:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="15"/>
|
||||
<source>CoverFlow look</source>
|
||||
<translation>Tielseiten Ansicht</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="16"/>
|
||||
<source>Stripe look</source>
|
||||
<translation>Streifen Ansicht</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="17"/>
|
||||
<source>Overlapped Stripe look</source>
|
||||
<translation>Überlappende Streifen Ansicht</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderGLFlowConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="19"/>
|
||||
<source>Presets:</source>
|
||||
<translation>Voreinstellungen:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="21"/>
|
||||
<source>Classic look</source>
|
||||
<translation>Klassische Ansicht</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="24"/>
|
||||
<source>Stripe look</source>
|
||||
<translation>Streifen Ansicht</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="27"/>
|
||||
<source>Overlapped Stripe look</source>
|
||||
<translation>Überlappende Streifenansicht</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="30"/>
|
||||
<source>Modern look</source>
|
||||
<translation>Moderne Ansicht</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="33"/>
|
||||
<source>Roulette look</source>
|
||||
<translation>Zufalls Ansicht</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="77"/>
|
||||
<source>Show advanced settings</source>
|
||||
<translation>Zeige fortgeschrittene Einstellungen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="86"/>
|
||||
<source>Custom:</source>
|
||||
<translation>Custom:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="89"/>
|
||||
<source>View angle</source>
|
||||
<translation>Anzeige Winkel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="95"/>
|
||||
<source>Position</source>
|
||||
<translation>Position</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="101"/>
|
||||
<source>Cover gap</source>
|
||||
<translation>Titelbild Abstand</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="107"/>
|
||||
<source>Central gap</source>
|
||||
<translation>Mittel Abstand</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="113"/>
|
||||
<source>Zoom</source>
|
||||
<translation>Vergrößern</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="119"/>
|
||||
<source>Y offset</source>
|
||||
<translation>Y Anpassung</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="125"/>
|
||||
<source>Z offset</source>
|
||||
<translation>Z Anpassung</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="131"/>
|
||||
<source>Cover Angle</source>
|
||||
<translation>Titelbild Ansichtswinkel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="137"/>
|
||||
<source>Visibility</source>
|
||||
<translation>Anzeigeintensität</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="143"/>
|
||||
<source>Light</source>
|
||||
<translation>Licht</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="149"/>
|
||||
<source>Max angle</source>
|
||||
<translation>Max Winkel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="181"/>
|
||||
<source>Low Performance</source>
|
||||
<translation>Niedrige Leistung</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="183"/>
|
||||
<source>High Performance</source>
|
||||
<translation>Hohe Leistung</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="194"/>
|
||||
<source>Use VSync (improve the image quality in fullscreen mode, worse performance)</source>
|
||||
<translation>Benutz VSync (verbessert die Bildqualität im Vollanzeigemodus, schlechtere Leistung)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="202"/>
|
||||
<source>Performance:</source>
|
||||
<translation>Leistung:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderOptionsDialog</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="21"/>
|
||||
<source>Save</source>
|
||||
<translation>Speichern</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="22"/>
|
||||
<source>Cancel</source>
|
||||
<translation>Abbrechen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="30"/>
|
||||
<source>Use hardware acceleration (restart needed)</source>
|
||||
<translation>Benutze Hardware Beschleunigung (Neustart erforderlich)</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderTranslator</name>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="62"/>
|
||||
<source>YACReader translator</source>
|
||||
<translation>YACReader Übersetzer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="117"/>
|
||||
<location filename="translator.cpp" line="210"/>
|
||||
<source>Translation</source>
|
||||
<translation>Übersetzung</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="140"/>
|
||||
<source>clear</source>
|
||||
<translation>löschen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="219"/>
|
||||
<source>Service not available</source>
|
||||
<translation>Service nicht verfügbar</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
BIN
YACReader/yacreader_es.qm
Normal file
BIN
YACReader/yacreader_es.qm
Normal file
Binary file not shown.
792
YACReader/yacreader_es.ts
Normal file
792
YACReader/yacreader_es.ts
Normal file
@ -0,0 +1,792 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="es_ES">
|
||||
<context>
|
||||
<name>BookmarksDialog</name>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="25"/>
|
||||
<source>Lastest Page</source>
|
||||
<translation>Última página</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="73"/>
|
||||
<source>Close</source>
|
||||
<translation>Cerrar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="83"/>
|
||||
<source>Click on any image to go to the bookmark</source>
|
||||
<translation>Pulsa en cualquier imagen para ir al marcador</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="107"/>
|
||||
<location filename="bookmarks_dialog.cpp" line="131"/>
|
||||
<source>Loading...</source>
|
||||
<translation>Cargando...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FileComic</name>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="309"/>
|
||||
<source>Unknown error opening the file</source>
|
||||
<translation>Error desconocido abriendo el archivo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="418"/>
|
||||
<source>7z not found</source>
|
||||
<translation>7z no encontrado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="424"/>
|
||||
<source>Format not supported</source>
|
||||
<translation>Formato no soportado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="302"/>
|
||||
<source>CRC error on page (%1): some of the pages will not be displayed correctly</source>
|
||||
<translation>Error CRC en la página (%1): algunas de las páginas no se mostrarán correctamente</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GoToDialog</name>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="17"/>
|
||||
<source>Page : </source>
|
||||
<translation>Página :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="25"/>
|
||||
<source>Go To</source>
|
||||
<translation>Ir a</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="27"/>
|
||||
<source>Cancel</source>
|
||||
<translation>Cancelar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="41"/>
|
||||
<location filename="goto_dialog.cpp" line="76"/>
|
||||
<source>Total pages : </source>
|
||||
<translation>Páginas totales:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="55"/>
|
||||
<source>Go to...</source>
|
||||
<translation>Ir a...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GoToFlowToolBar</name>
|
||||
<message>
|
||||
<location filename="goto_flow_toolbar.cpp" line="44"/>
|
||||
<source>Page : </source>
|
||||
<translation>Página : </translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>HelpAboutDialog</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/help_about_dialog.cpp" line="21"/>
|
||||
<source>About</source>
|
||||
<translation>Acerca de</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/help_about_dialog.cpp" line="24"/>
|
||||
<source>Help</source>
|
||||
<translation>Ayuda</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindowViewer</name>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="197"/>
|
||||
<source>&Open</source>
|
||||
<translation>&Abrir</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="198"/>
|
||||
<source>O</source>
|
||||
<translation>O</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="200"/>
|
||||
<source>Open a comic</source>
|
||||
<translation>Abrir cómic</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="203"/>
|
||||
<source>Open Folder</source>
|
||||
<translation>Abrir carpeta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="204"/>
|
||||
<source>Ctrl+O</source>
|
||||
<translation>Ctrl+O</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="206"/>
|
||||
<source>Open image folder</source>
|
||||
<oldsource>Open images in a folder</oldsource>
|
||||
<translation>Abrir carpeta de imágenes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="209"/>
|
||||
<source>Save</source>
|
||||
<translation>Guardar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="211"/>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>Save current page</source>
|
||||
<translation>Guardar la página actual</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="215"/>
|
||||
<source>Previous Comic</source>
|
||||
<translation>Cómic anterior</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="218"/>
|
||||
<source>Open previous comic</source>
|
||||
<translation>Abrir cómic anterior</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="222"/>
|
||||
<source>Next Comic</source>
|
||||
<translation>Siguiente Cómic</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="225"/>
|
||||
<source>Open next comic</source>
|
||||
<translation>Abrir siguiente cómic</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="229"/>
|
||||
<source>&Previous</source>
|
||||
<translation>A&nterior</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="233"/>
|
||||
<source>Go to previous page</source>
|
||||
<translation>Ir a la página anterior</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="237"/>
|
||||
<source>&Next</source>
|
||||
<translation>Siguie&nte</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="241"/>
|
||||
<source>Go to next page</source>
|
||||
<translation>Ir a la página siguiente</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="254"/>
|
||||
<source>Fit Width</source>
|
||||
<translation>Ajustar anchura</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="250"/>
|
||||
<source>Fit image to height</source>
|
||||
<translation>Ajustar página a lo alto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="245"/>
|
||||
<source>Fit Height</source>
|
||||
<translation>Ajustar altura</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="259"/>
|
||||
<source>Fit image to width</source>
|
||||
<translation>Ajustar página a lo ancho</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="263"/>
|
||||
<source>Rotate image to the left</source>
|
||||
<translation>Rotar imagen a la izquierda</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="264"/>
|
||||
<source>L</source>
|
||||
<translation>L</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="269"/>
|
||||
<source>Rotate image to the right</source>
|
||||
<translation>Rotar imagen a la derecha</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="270"/>
|
||||
<source>R</source>
|
||||
<translation>R</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="275"/>
|
||||
<source>Double page mode</source>
|
||||
<translation>Modo a doble página</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="276"/>
|
||||
<source>Switch to double page mode</source>
|
||||
<translation>Cambiar a modo de doble página</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="277"/>
|
||||
<source>D</source>
|
||||
<translation>D</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="284"/>
|
||||
<source>Go To</source>
|
||||
<translation>Ir a</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="285"/>
|
||||
<source>G</source>
|
||||
<translation>G</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="288"/>
|
||||
<source>Go to page ...</source>
|
||||
<translation>Ir a página...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="291"/>
|
||||
<source>Options</source>
|
||||
<translation>Opciones</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="292"/>
|
||||
<source>C</source>
|
||||
<translation>C</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="293"/>
|
||||
<source>YACReader options</source>
|
||||
<translation>Opciones de YACReader</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="298"/>
|
||||
<source>Help</source>
|
||||
<translation>Ayuda</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="299"/>
|
||||
<source>Help, About YACReader</source>
|
||||
<translation>Ayuda, Sobre YACReader</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="304"/>
|
||||
<source>Magnifying glass</source>
|
||||
<translation>Lupa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="305"/>
|
||||
<source>Switch Magnifying glass</source>
|
||||
<translation>Lupa On/Off</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="306"/>
|
||||
<source>Z</source>
|
||||
<translation>Z</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="312"/>
|
||||
<source>Set bookmark</source>
|
||||
<translation>Añadir marcador</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="313"/>
|
||||
<source>Set a bookmark on the current page</source>
|
||||
<translation>Añadir un marcador en la página actual</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="322"/>
|
||||
<source>Show bookmarks</source>
|
||||
<translation>Mostrar marcadores</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="323"/>
|
||||
<source>Show the bookmarks of the current comic</source>
|
||||
<translation>Mostrar los marcadores del cómic actual</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="324"/>
|
||||
<source>M</source>
|
||||
<translation>M</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="329"/>
|
||||
<source>Show keyboard shortcuts</source>
|
||||
<translation>Mostrar atajos de teclado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="333"/>
|
||||
<source>Show Info</source>
|
||||
<translation>Mostrar información</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="334"/>
|
||||
<source>I</source>
|
||||
<translation>I</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="339"/>
|
||||
<source>Close</source>
|
||||
<translation>Cerrar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="344"/>
|
||||
<source>Show Dictionary</source>
|
||||
<translation>Mostrar diccionario</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="351"/>
|
||||
<source>Always on top</source>
|
||||
<translation>Siempre visible</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="359"/>
|
||||
<source>Show full size</source>
|
||||
<translation>Mostrar a tamaño original</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="367"/>
|
||||
<source>Show go to flow</source>
|
||||
<translation>Mostrar flow ir a</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="376"/>
|
||||
<source>&File</source>
|
||||
<translation>&Archivo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="545"/>
|
||||
<source>File</source>
|
||||
<translation>Archivo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="571"/>
|
||||
<source>Open Comic</source>
|
||||
<translation>Abrir cómic</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="571"/>
|
||||
<source>Comic files</source>
|
||||
<translation>Archivos de cómic</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="931"/>
|
||||
<source>Remind me in 14 days</source>
|
||||
<translation>Recordar en 14 días</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="932"/>
|
||||
<source>Not now</source>
|
||||
<translation>Ahora no</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="659"/>
|
||||
<source>Open folder</source>
|
||||
<translation>Abrir carpeta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>Image files (*.jpg)</source>
|
||||
<translation>Archivos de imagen (*.jpg)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>page_%1.jpg</source>
|
||||
<translation>página_%1.jpg</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="927"/>
|
||||
<source>There is a new version available</source>
|
||||
<translation>Hay una nueva versión disponible</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="928"/>
|
||||
<source>Do you want to download the new version?</source>
|
||||
<translation>¿Desea descargar la nueva versión?</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OptionsDialog</name>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="35"/>
|
||||
<source>"Go to flow" size</source>
|
||||
<translation>Tamaño de "Go to flow"</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="46"/>
|
||||
<source>My comics path</source>
|
||||
<translation>Ruta a mis cómics</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="56"/>
|
||||
<source>Page width stretch</source>
|
||||
<translation>Ajuste en anchura de la página</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="77"/>
|
||||
<source>Background color</source>
|
||||
<translation>Color de fondo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="80"/>
|
||||
<source>Choose</source>
|
||||
<translation>Elegir</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="108"/>
|
||||
<source>Restart is needed</source>
|
||||
<translation>Es necesario reiniciar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="121"/>
|
||||
<source>Brightness</source>
|
||||
<translation>Brillo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="122"/>
|
||||
<source>Contrast</source>
|
||||
<translation>Contraste</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="123"/>
|
||||
<source>Gamma</source>
|
||||
<translation>Gamma</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="127"/>
|
||||
<source>Reset</source>
|
||||
<translation>Reset</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="133"/>
|
||||
<source>Image options</source>
|
||||
<translation>Opciones de imagen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="143"/>
|
||||
<source>General</source>
|
||||
<translation>General</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="144"/>
|
||||
<source>Page Flow</source>
|
||||
<translation>Page Flow</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="145"/>
|
||||
<source>Image adjustment</source>
|
||||
<translation>Ajustes de imagen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="158"/>
|
||||
<source>Options</source>
|
||||
<translation>Opciones</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="165"/>
|
||||
<source>Comics directory</source>
|
||||
<translation>Directorio de cómics</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../common/exit_check.cpp" line="14"/>
|
||||
<source>7z lib not found</source>
|
||||
<translation>7z lib no encontrado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/exit_check.cpp" line="14"/>
|
||||
<source>unable to load 7z lib from ./utils</source>
|
||||
<translation>imposible cargar 7z lib de ./utils</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ShortcutsDialog</name>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="16"/>
|
||||
<source>YACReader keyboard shortcuts</source>
|
||||
<translation>Atajos de teclado de YACReader</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="20"/>
|
||||
<source>Close</source>
|
||||
<translation>Cerrar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="66"/>
|
||||
<source>Keyboard Shortcuts</source>
|
||||
<translation>Atajos de teclado</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Viewer</name>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="42"/>
|
||||
<location filename="viewer.cpp" line="693"/>
|
||||
<source>Press 'O' to open comic.</source>
|
||||
<translation>Pulsa 'O' para abrir un fichero.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="217"/>
|
||||
<source>Not found</source>
|
||||
<translation>No encontrado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="217"/>
|
||||
<source>Comic not found</source>
|
||||
<translation>Cómic no encontrado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="223"/>
|
||||
<source>Error opening comic</source>
|
||||
<translation>Error abriendo cómic</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="229"/>
|
||||
<source>CRC Error</source>
|
||||
<translation>Error CRC</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="717"/>
|
||||
<source>Page not available!</source>
|
||||
<translation>¡Página no disponible!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="853"/>
|
||||
<source>Cover!</source>
|
||||
<translation>¡Portada!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="870"/>
|
||||
<source>Last page!</source>
|
||||
<translation>¡Última página!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="706"/>
|
||||
<source>Loading...please wait!</source>
|
||||
<translation>Cargando...espere, por favor!</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFieldEdit</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="9"/>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="29"/>
|
||||
<source>Click to overwrite</source>
|
||||
<translation>Click para sobreescribir</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="11"/>
|
||||
<source>Restore to default</source>
|
||||
<translation>Restaurar valor por defecto</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFieldPlainTextEdit</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="9"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="20"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="45"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="51"/>
|
||||
<source>Click to overwrite</source>
|
||||
<translation>Click para sobreescribir</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="10"/>
|
||||
<source>Restore to default</source>
|
||||
<translation>Restaurar valor por defecto</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFlowConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="13"/>
|
||||
<source>How to show covers:</source>
|
||||
<translation>Cómo mostrar las portadas:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="15"/>
|
||||
<source>CoverFlow look</source>
|
||||
<translation>Tipo CoverFlow</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="16"/>
|
||||
<source>Stripe look</source>
|
||||
<translation>Tipo tira</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="17"/>
|
||||
<source>Overlapped Stripe look</source>
|
||||
<translation>Tipo tira solapada</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderGLFlowConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="19"/>
|
||||
<source>Presets:</source>
|
||||
<translation>Predefinidos:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="21"/>
|
||||
<source>Classic look</source>
|
||||
<translation>Tipo clásico</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="24"/>
|
||||
<source>Stripe look</source>
|
||||
<translation>Tipo tira</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="27"/>
|
||||
<source>Overlapped Stripe look</source>
|
||||
<translation>Tipo tira solapada</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="30"/>
|
||||
<source>Modern look</source>
|
||||
<translation>Tipo moderno</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="33"/>
|
||||
<source>Roulette look</source>
|
||||
<translation>Tipo ruleta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="77"/>
|
||||
<source>Show advanced settings</source>
|
||||
<translation>Opciones avanzadas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="86"/>
|
||||
<source>Custom:</source>
|
||||
<translation>Personalizado:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="89"/>
|
||||
<source>View angle</source>
|
||||
<translation>Ángulo de vista</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="95"/>
|
||||
<source>Position</source>
|
||||
<translation>Posición</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="101"/>
|
||||
<source>Cover gap</source>
|
||||
<translation>Hueco entre portadas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="107"/>
|
||||
<source>Central gap</source>
|
||||
<translation>Hueco central</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="113"/>
|
||||
<source>Zoom</source>
|
||||
<translation>Zoom</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="119"/>
|
||||
<source>Y offset</source>
|
||||
<translation>Desplazamiento en Y</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="125"/>
|
||||
<source>Z offset</source>
|
||||
<translation>Desplazamiento en Z </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="131"/>
|
||||
<source>Cover Angle</source>
|
||||
<translation>Ángulo de las portadas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="137"/>
|
||||
<source>Visibility</source>
|
||||
<translation>Visibilidad</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="143"/>
|
||||
<source>Light</source>
|
||||
<translation>Luz</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="149"/>
|
||||
<source>Max angle</source>
|
||||
<translation>Ángulo máximo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="181"/>
|
||||
<source>Low Performance</source>
|
||||
<translation>Rendimiento bajo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="183"/>
|
||||
<source>High Performance</source>
|
||||
<translation>Alto rendimiento</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="194"/>
|
||||
<source>Use VSync (improve the image quality in fullscreen mode, worse performance)</source>
|
||||
<translation>Utilizar VSync (mejora la calidad de imagen en pantalla completa, peor rendimiento)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="202"/>
|
||||
<source>Performance:</source>
|
||||
<translation>Rendimiento:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderOptionsDialog</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="21"/>
|
||||
<source>Save</source>
|
||||
<translation>Guardar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="22"/>
|
||||
<source>Cancel</source>
|
||||
<translation>Cancelar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="30"/>
|
||||
<source>Use hardware acceleration (restart needed)</source>
|
||||
<translation>Utilizar aceleración por hardware (necesario reiniciar)</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderTranslator</name>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="62"/>
|
||||
<source>YACReader translator</source>
|
||||
<translation>Traductor YACReader</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="117"/>
|
||||
<location filename="translator.cpp" line="210"/>
|
||||
<source>Translation</source>
|
||||
<translation>Traducción</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="140"/>
|
||||
<source>clear</source>
|
||||
<translation>limpiar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="219"/>
|
||||
<source>Service not available</source>
|
||||
<translation>Servicio no disponible</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
12
YACReader/yacreader_files.qrc
Normal file
12
YACReader/yacreader_files.qrc
Normal file
@ -0,0 +1,12 @@
|
||||
<RCC>
|
||||
<qresource>
|
||||
<file>../files/about.html</file>
|
||||
<file>../files/helpYACReader.html</file>
|
||||
<file>../files/shortcuts.html</file>
|
||||
</qresource>
|
||||
|
||||
<qresource lang="es_ES">
|
||||
<file alias="/files/about.html">../files/about_es_ES.html</file>
|
||||
<file alias="/files/helpYACReader.html">../files/helpYACReader_es_ES.html</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
791
YACReader/yacreader_fr.ts
Normal file
791
YACReader/yacreader_fr.ts
Normal file
@ -0,0 +1,791 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="fr_FR" sourcelanguage="en">
|
||||
<context>
|
||||
<name>BookmarksDialog</name>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="25"/>
|
||||
<source>Lastest Page</source>
|
||||
<translation>Aller à la dernière page</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="73"/>
|
||||
<source>Close</source>
|
||||
<translation>Fermer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="83"/>
|
||||
<source>Click on any image to go to the bookmark</source>
|
||||
<translation>Cliquez sur une image pour aller au marque-page</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="107"/>
|
||||
<location filename="bookmarks_dialog.cpp" line="131"/>
|
||||
<source>Loading...</source>
|
||||
<translation>Chargement...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FileComic</name>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="309"/>
|
||||
<source>Unknown error opening the file</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="418"/>
|
||||
<source>7z not found</source>
|
||||
<translation type="unfinished">7z introuvable</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="424"/>
|
||||
<source>Format not supported</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="302"/>
|
||||
<source>CRC error on page (%1): some of the pages will not be displayed correctly</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GoToDialog</name>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="17"/>
|
||||
<source>Page : </source>
|
||||
<translation>Page :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="25"/>
|
||||
<source>Go To</source>
|
||||
<translation>Aller à</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="27"/>
|
||||
<source>Cancel</source>
|
||||
<translation>Annuler</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="41"/>
|
||||
<location filename="goto_dialog.cpp" line="76"/>
|
||||
<source>Total pages : </source>
|
||||
<translation>Nombre de pages :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="55"/>
|
||||
<source>Go to...</source>
|
||||
<translation>Aller à...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GoToFlowToolBar</name>
|
||||
<message>
|
||||
<location filename="goto_flow_toolbar.cpp" line="44"/>
|
||||
<source>Page : </source>
|
||||
<translation>Page : </translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>HelpAboutDialog</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/help_about_dialog.cpp" line="21"/>
|
||||
<source>About</source>
|
||||
<translation>A propos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/help_about_dialog.cpp" line="24"/>
|
||||
<source>Help</source>
|
||||
<translation>Aide</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindowViewer</name>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="197"/>
|
||||
<source>&Open</source>
|
||||
<translation>&Ouvrir</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="198"/>
|
||||
<source>O</source>
|
||||
<translation>O</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="200"/>
|
||||
<source>Open a comic</source>
|
||||
<translation>Ouvrir un comic</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="203"/>
|
||||
<source>Open Folder</source>
|
||||
<translation>Ouvrir un dossier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="204"/>
|
||||
<source>Ctrl+O</source>
|
||||
<translation>Ctrl+O</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="206"/>
|
||||
<source>Open image folder</source>
|
||||
<translation>Ouvrir un dossier d'images</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="209"/>
|
||||
<source>Save</source>
|
||||
<translation>Sauvegarder</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="211"/>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>Save current page</source>
|
||||
<translation>Sauvegarder la page actuelle</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="215"/>
|
||||
<source>Previous Comic</source>
|
||||
<translation>Comic précédent</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="218"/>
|
||||
<source>Open previous comic</source>
|
||||
<translation>Ouvrir le comic précédent</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="222"/>
|
||||
<source>Next Comic</source>
|
||||
<translation>Comic suivant</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="225"/>
|
||||
<source>Open next comic</source>
|
||||
<translation>Ouvrir le livre suivant</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="229"/>
|
||||
<source>&Previous</source>
|
||||
<translation>&Précédent</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="233"/>
|
||||
<source>Go to previous page</source>
|
||||
<translation>Aller à la page précédente</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="237"/>
|
||||
<source>&Next</source>
|
||||
<translation>&Suivant</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="241"/>
|
||||
<source>Go to next page</source>
|
||||
<translation>Aller à la page suivante</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="254"/>
|
||||
<source>Fit Width</source>
|
||||
<translation>Ajuster la largeur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="250"/>
|
||||
<source>Fit image to height</source>
|
||||
<translation>Ajuster l'image à la hauteur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="245"/>
|
||||
<source>Fit Height</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="259"/>
|
||||
<source>Fit image to width</source>
|
||||
<translation>Ajuster l'image à la largeur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="263"/>
|
||||
<source>Rotate image to the left</source>
|
||||
<translation>Rotation sur la gauche</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="264"/>
|
||||
<source>L</source>
|
||||
<translation>L</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="269"/>
|
||||
<source>Rotate image to the right</source>
|
||||
<translation>Rotation sur la droite</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="270"/>
|
||||
<source>R</source>
|
||||
<translation>R</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="275"/>
|
||||
<source>Double page mode</source>
|
||||
<translation>Mode double page</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="276"/>
|
||||
<source>Switch to double page mode</source>
|
||||
<translation>Passer en mode double page</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="277"/>
|
||||
<source>D</source>
|
||||
<translation>D</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="284"/>
|
||||
<source>Go To</source>
|
||||
<translation>Aller à</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="285"/>
|
||||
<source>G</source>
|
||||
<translation>G</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="288"/>
|
||||
<source>Go to page ...</source>
|
||||
<translation>Aller à la page ...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="291"/>
|
||||
<source>Options</source>
|
||||
<translation>Options</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="292"/>
|
||||
<source>C</source>
|
||||
<translation>C</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="293"/>
|
||||
<source>YACReader options</source>
|
||||
<translation>Options de YACReader</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="298"/>
|
||||
<source>Help</source>
|
||||
<translation>Aide</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="299"/>
|
||||
<source>Help, About YACReader</source>
|
||||
<translation>Aide, à propos de YACReader</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="304"/>
|
||||
<source>Magnifying glass</source>
|
||||
<translation>Loupe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="305"/>
|
||||
<source>Switch Magnifying glass</source>
|
||||
<translation>Utiliser la loupe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="306"/>
|
||||
<source>Z</source>
|
||||
<translation>Z</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="312"/>
|
||||
<source>Set bookmark</source>
|
||||
<translation>Placer un marque-page</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="313"/>
|
||||
<source>Set a bookmark on the current page</source>
|
||||
<translation>Placer un marque-page à la page actuelle</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="322"/>
|
||||
<source>Show bookmarks</source>
|
||||
<translation>Voir les marque-pages</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="323"/>
|
||||
<source>Show the bookmarks of the current comic</source>
|
||||
<translation>Voir les marque-pages de ce comic</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="324"/>
|
||||
<source>M</source>
|
||||
<translation>M</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="329"/>
|
||||
<source>Show keyboard shortcuts</source>
|
||||
<translation>Voir les raccourcis</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="333"/>
|
||||
<source>Show Info</source>
|
||||
<translation>Voir les infos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="334"/>
|
||||
<source>I</source>
|
||||
<translation>I</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="339"/>
|
||||
<source>Close</source>
|
||||
<translation>Fermer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="344"/>
|
||||
<source>Show Dictionary</source>
|
||||
<translation>Dictionnaire</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="351"/>
|
||||
<source>Always on top</source>
|
||||
<translation>Toujours au dessus</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="359"/>
|
||||
<source>Show full size</source>
|
||||
<translation>Plein écran</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="367"/>
|
||||
<source>Show go to flow</source>
|
||||
<translation>Afficher le go to flow</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="376"/>
|
||||
<source>&File</source>
|
||||
<translation>&Fichier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="545"/>
|
||||
<source>File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="571"/>
|
||||
<source>Open Comic</source>
|
||||
<translation>Ouvrir le comic</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="571"/>
|
||||
<source>Comic files</source>
|
||||
<translation>Comic files</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="659"/>
|
||||
<source>Open folder</source>
|
||||
<translation>Ouvirir le dossier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>Image files (*.jpg)</source>
|
||||
<translation>Image files (*.jpg)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>page_%1.jpg</source>
|
||||
<translation>page_%1.jpg</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="927"/>
|
||||
<source>There is a new version available</source>
|
||||
<translation>Une nouvelle version est disponible</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="928"/>
|
||||
<source>Do you want to download the new version?</source>
|
||||
<translation>Voulez-vous télécharger la nouvelle version?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="931"/>
|
||||
<source>Remind me in 14 days</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="932"/>
|
||||
<source>Not now</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OptionsDialog</name>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="35"/>
|
||||
<source>"Go to flow" size</source>
|
||||
<translation>Taille du "Go to flow"</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="46"/>
|
||||
<source>My comics path</source>
|
||||
<translation>Chemin de mes comics</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="56"/>
|
||||
<source>Page width stretch</source>
|
||||
<translation>Etirer la page</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="77"/>
|
||||
<source>Background color</source>
|
||||
<translation>Couleur d'arrière plan</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="80"/>
|
||||
<source>Choose</source>
|
||||
<translation>Choisir</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="108"/>
|
||||
<source>Restart is needed</source>
|
||||
<translation>Redémarrage nécessaire</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="121"/>
|
||||
<source>Brightness</source>
|
||||
<translation>Luminosité</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="122"/>
|
||||
<source>Contrast</source>
|
||||
<translation>Contraste</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="123"/>
|
||||
<source>Gamma</source>
|
||||
<translation>Gamma</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="127"/>
|
||||
<source>Reset</source>
|
||||
<translation>Reset</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="133"/>
|
||||
<source>Image options</source>
|
||||
<translation>Option de l'image</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="143"/>
|
||||
<source>General</source>
|
||||
<translation>Général</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="144"/>
|
||||
<source>Page Flow</source>
|
||||
<translation>Page Flow</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="145"/>
|
||||
<source>Image adjustment</source>
|
||||
<translation>Ajustement de l'image</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="158"/>
|
||||
<source>Options</source>
|
||||
<translation>Options</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="165"/>
|
||||
<source>Comics directory</source>
|
||||
<translation>Répertoire des comics</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../common/exit_check.cpp" line="14"/>
|
||||
<source>7z lib not found</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/exit_check.cpp" line="14"/>
|
||||
<source>unable to load 7z lib from ./utils</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ShortcutsDialog</name>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="16"/>
|
||||
<source>YACReader keyboard shortcuts</source>
|
||||
<translation>Raccourcis clavier de YACReader</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="20"/>
|
||||
<source>Close</source>
|
||||
<translation>Fermer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="66"/>
|
||||
<source>Keyboard Shortcuts</source>
|
||||
<translation>Raccourcis clavier</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Viewer</name>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="42"/>
|
||||
<location filename="viewer.cpp" line="693"/>
|
||||
<source>Press 'O' to open comic.</source>
|
||||
<translation>Appuyez sur "O" pour ouvrir un comic.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="217"/>
|
||||
<source>Not found</source>
|
||||
<translation>Introuvable</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="217"/>
|
||||
<source>Comic not found</source>
|
||||
<translation>Comic introuvable</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="223"/>
|
||||
<source>Error opening comic</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="229"/>
|
||||
<source>CRC Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="706"/>
|
||||
<source>Loading...please wait!</source>
|
||||
<translation>Chargement...Patientez!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="717"/>
|
||||
<source>Page not available!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="853"/>
|
||||
<source>Cover!</source>
|
||||
<translation>Couverture!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="870"/>
|
||||
<source>Last page!</source>
|
||||
<translation>Dernière page!</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFieldEdit</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="9"/>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="29"/>
|
||||
<source>Click to overwrite</source>
|
||||
<translation>Cliquez pour écraser</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="11"/>
|
||||
<source>Restore to default</source>
|
||||
<translation>Rétablir les paramètres par défaut</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFieldPlainTextEdit</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="9"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="20"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="45"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="51"/>
|
||||
<source>Click to overwrite</source>
|
||||
<translation>Cliquez pour écraser</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="10"/>
|
||||
<source>Restore to default</source>
|
||||
<translation>Rétablir les paramètres par défaut</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFlowConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="13"/>
|
||||
<source>How to show covers:</source>
|
||||
<translation>Comment voir les couvertures:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="15"/>
|
||||
<source>CoverFlow look</source>
|
||||
<translation>Vue CoverFlow</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="16"/>
|
||||
<source>Stripe look</source>
|
||||
<translation>Vue alignée</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="17"/>
|
||||
<source>Overlapped Stripe look</source>
|
||||
<translation>Vue superposée</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderGLFlowConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="19"/>
|
||||
<source>Presets:</source>
|
||||
<translation>Réglages:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="21"/>
|
||||
<source>Classic look</source>
|
||||
<translation>Vue classique</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="24"/>
|
||||
<source>Stripe look</source>
|
||||
<translation>Vue alignée</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="27"/>
|
||||
<source>Overlapped Stripe look</source>
|
||||
<translation>Vue superposée</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="30"/>
|
||||
<source>Modern look</source>
|
||||
<translation>Vue moderne</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="33"/>
|
||||
<source>Roulette look</source>
|
||||
<translation>Vue roulette</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="77"/>
|
||||
<source>Show advanced settings</source>
|
||||
<translation>Voir les paramètres avancés</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="86"/>
|
||||
<source>Custom:</source>
|
||||
<translation>Personnalisation:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="89"/>
|
||||
<source>View angle</source>
|
||||
<translation>Angle de vue</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="95"/>
|
||||
<source>Position</source>
|
||||
<translation>Position</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="101"/>
|
||||
<source>Cover gap</source>
|
||||
<translation>Espace entre les couvertures</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="107"/>
|
||||
<source>Central gap</source>
|
||||
<translation>Espace couverture centrale</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="113"/>
|
||||
<source>Zoom</source>
|
||||
<translation>Zoom</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="119"/>
|
||||
<source>Y offset</source>
|
||||
<translation>Axe Y</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="125"/>
|
||||
<source>Z offset</source>
|
||||
<translation>Axe Z</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="131"/>
|
||||
<source>Cover Angle</source>
|
||||
<translation>Angle des couvertures</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="137"/>
|
||||
<source>Visibility</source>
|
||||
<translation>Visibilité</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="143"/>
|
||||
<source>Light</source>
|
||||
<translation>Lumière</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="149"/>
|
||||
<source>Max angle</source>
|
||||
<translation>Angle Maximum</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="181"/>
|
||||
<source>Low Performance</source>
|
||||
<translation>Faible performance</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="183"/>
|
||||
<source>High Performance</source>
|
||||
<translation>Haute performance</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="194"/>
|
||||
<source>Use VSync (improve the image quality in fullscreen mode, worse performance)</source>
|
||||
<translation>Utiliser VSync (Améliore la qualité d'image en mode plein écran, ralentit la performance)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="202"/>
|
||||
<source>Performance:</source>
|
||||
<translation>Performance:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderOptionsDialog</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="21"/>
|
||||
<source>Save</source>
|
||||
<translation>Sauvegarder</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="22"/>
|
||||
<source>Cancel</source>
|
||||
<translation>Annuler</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="30"/>
|
||||
<source>Use hardware acceleration (restart needed)</source>
|
||||
<translation>Utiliser accélération hardware (nécessite le redémarrage)</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderTranslator</name>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="62"/>
|
||||
<source>YACReader translator</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="117"/>
|
||||
<location filename="translator.cpp" line="210"/>
|
||||
<source>Translation</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="140"/>
|
||||
<source>clear</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="219"/>
|
||||
<source>Service not available</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
86
YACReader/yacreader_images.qrc
Normal file
86
YACReader/yacreader_images.qrc
Normal file
@ -0,0 +1,86 @@
|
||||
<RCC>
|
||||
<qresource>
|
||||
<file>../images/icon.png</file>
|
||||
<file>../images/goto.png</file>
|
||||
<file>../images/find_folder.png</file>
|
||||
<file>../images/flow1.png</file>
|
||||
<file>../images/flow2.png</file>
|
||||
<file>../images/flow3.png</file>
|
||||
<file>../images/flow4.png</file>
|
||||
<file>../images/flow5.png</file>
|
||||
<file>../images/notCover.png</file>
|
||||
<file>../images/shortcuts.png</file>
|
||||
<file>../images/close.png</file>
|
||||
<file>../images/up.png</file>
|
||||
<file>../images/down.png</file>
|
||||
<file>../images/numPagesLabel.png</file>
|
||||
<file>../images/numPagesLabelMedium.png</file>
|
||||
<file>../images/numPagesLabelBig.png</file>
|
||||
<file>../images/imgTopLeft.png</file>
|
||||
<file>../images/imgTopMiddle.png</file>
|
||||
<file>../images/imgTopRight.png</file>
|
||||
<file>../images/imgBottomLeft.png</file>
|
||||
<file>../images/imgBottomMiddle.png</file>
|
||||
<file>../images/imgBottomRight.png</file>
|
||||
<file>../images/imgEdit.png</file>
|
||||
<file>../images/imgCenterSlide.png</file>
|
||||
<file>../images/imgGoToSlide.png</file>
|
||||
<file>../images/imgCenterSlidePressed.png</file>
|
||||
<file>../images/imgGoToSlidePressed.png</file>
|
||||
<file>../images/sliderBackground.png</file>
|
||||
<file>../images/sliderGround.png</file>
|
||||
<file>../images/sliderSubPage.png</file>
|
||||
<file>../images/sliderAddPage.png</file>
|
||||
<file>../images/sliderHandle.png</file>
|
||||
|
||||
<file>../images/helpImages/open.png</file>
|
||||
<file>../images/helpImages/openFolder.png</file>
|
||||
<file>../images/helpImages/next.png</file>
|
||||
<file>../images/helpImages/prev.png</file>
|
||||
<file>../images/helpImages/icon.png</file>
|
||||
<file>../images/helpImages/zoom.png</file>
|
||||
<file>../images/helpImages/fit.png</file>
|
||||
<file>../images/helpImages/goto.png</file>
|
||||
<file>../images/helpImages/help.png</file>
|
||||
<file>../images/helpImages/center.png</file>
|
||||
<file>../images/helpImages/options.png</file>
|
||||
<file>../images/helpImages/comicFolder.png</file>
|
||||
<file>../images/helpImages/save.png</file>
|
||||
<file>../images/helpImages/rotateL.png</file>
|
||||
<file>../images/helpImages/rotateR.png</file>
|
||||
<file>../images/helpImages/flow1.png</file>
|
||||
<file>../images/helpImages/flow2.png</file>
|
||||
<file>../images/helpImages/flow3.png</file>
|
||||
<file>../images/helpImages/bookmark.png</file>
|
||||
<file>../images/helpImages/setBookmark.png</file>
|
||||
<file>../images/helpImages/notCover.png</file>
|
||||
<file>../images/helpImages/previousComic.png</file>
|
||||
<file>../images/helpImages/nextComic.png</file>
|
||||
<file>../images/helpImages/deleteLibrary.png</file>
|
||||
<file>../images/helpImages/properties.png</file>
|
||||
<file>../images/helpImages/doublePage.png</file>
|
||||
<file>../images/helpImages/keyboard.png</file>
|
||||
<file>../images/helpImages/mouse.png</file>
|
||||
<file>../images/helpImages/speaker.png</file>
|
||||
<file>../images/defaultCover.png</file>
|
||||
<file>../images/onStartFlowSelection.png</file>
|
||||
<file>../images/onStartFlowSelection_es.png</file>
|
||||
<file>../images/useNewFlowButton.png</file>
|
||||
<file>../images/useOldFlowButton.png</file>
|
||||
<file>../images/notificationsLabel.png</file>
|
||||
<file>../images/fromTo.png</file>
|
||||
<file>../images/dropDownArrow.png</file>
|
||||
<file>../images/translatorSearch.png</file>
|
||||
<file>../images/speaker.png</file>
|
||||
<file>../images/clear_shortcut.png</file>
|
||||
<file>../images/accept_shortcut.png</file>
|
||||
<file>../images/shortcuts_group_comics.png</file>
|
||||
<file>../images/shortcuts_group_folders.png</file>
|
||||
<file>../images/shortcuts_group_general.png</file>
|
||||
<file>../images/shortcuts_group_libraries.png</file>
|
||||
<file>../images/shortcuts_group_mglass.png</file>
|
||||
<file>../images/shortcuts_group_page.png</file>
|
||||
<file>../images/shortcuts_group_reading.png</file>
|
||||
<file>../images/shortcuts_group_visualization.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
57
YACReader/yacreader_images_osx.qrc
Normal file
57
YACReader/yacreader_images_osx.qrc
Normal file
@ -0,0 +1,57 @@
|
||||
<RCC>
|
||||
<qresource prefix="/" >
|
||||
<file alias="images/viewer_toolbar/bookmark.png">../images/viewer_toolbar/bookmark_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/bookmark@2x.png">../images/viewer_toolbar/bookmark_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/close.png">../images/viewer_toolbar/close_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/close@2x.png">../images/viewer_toolbar/close_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/doubleMangaPage.png">../images/viewer_toolbar/doubleMangaPage_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/doubleMangaPage@2x.png">../images/viewer_toolbar/doubleMangaPage_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/doublePage.png">../images/viewer_toolbar/doublePage_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/doublePage@2x.png">../images/viewer_toolbar/doublePage_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/flow.png">../images/viewer_toolbar/flow_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/flow@2x.png">../images/viewer_toolbar/flow_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/full.png">../images/viewer_toolbar/full_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/full@2x.png">../images/viewer_toolbar/full_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/goto.png">../images/viewer_toolbar/goto_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/goto@2x.png">../images/viewer_toolbar/goto_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/help.png">../images/viewer_toolbar/help_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/help@2x.png">../images/viewer_toolbar/help_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/info.png">../images/viewer_toolbar/info_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/info@2x.png">../images/viewer_toolbar/info_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/magnifyingGlass.png">../images/viewer_toolbar/magnifyingGlass_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/magnifyingGlass@2x.png">../images/viewer_toolbar/magnifyingGlass_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/next.png">../images/viewer_toolbar/next_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/next@2x.png">../images/viewer_toolbar/next_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/open.png">../images/viewer_toolbar/open_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/open@2x.png">../images/viewer_toolbar/open_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/openFolder.png">../images/viewer_toolbar/openFolder_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/openFolder@2x.png">../images/viewer_toolbar/openFolder_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/openNext.png">../images/viewer_toolbar/openNext_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/openNext@2x.png">../images/viewer_toolbar/openNext_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/openPrevious.png">../images/viewer_toolbar/openPrevious_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/openPrevious@2x.png">../images/viewer_toolbar/openPrevious_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/options.png">../images/viewer_toolbar/options_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/options@2x.png">../images/viewer_toolbar/options_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/previous.png">../images/viewer_toolbar/previous_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/previous@2x.png">../images/viewer_toolbar/previous_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/rotateL.png">../images/viewer_toolbar/rotateL_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/rotateL@2x.png">../images/viewer_toolbar/rotateL_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/rotateR.png">../images/viewer_toolbar/rotateR_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/rotateR@2x.png">../images/viewer_toolbar/rotateR_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/save.png">../images/viewer_toolbar/save_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/save@2x.png">../images/viewer_toolbar/save_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/shortcuts.png">../images/viewer_toolbar/shortcuts_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/shortcuts@2x.png">../images/viewer_toolbar/shortcuts_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/showBookmarks.png">../images/viewer_toolbar/showBookmarks_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/showBookmarks@2x.png">../images/viewer_toolbar/showBookmarks_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/toHeight.png">../images/viewer_toolbar/toHeight_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/toHeight@2x.png">../images/viewer_toolbar/toHeight_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/toWidth.png">../images/viewer_toolbar/toWidth_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/toWidth@2x.png">../images/viewer_toolbar/toWidth_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/toWidthSlider.png">../images/viewer_toolbar/toWidthSlider_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/toWidthSlider@2x.png">../images/viewer_toolbar/toWidthSlider_osx@2x.png</file>
|
||||
<file alias="images/viewer_toolbar/translator.png">../images/viewer_toolbar/translator_osx.png</file>
|
||||
<file alias="images/viewer_toolbar/translator@2x.png">../images/viewer_toolbar/translator_osx@2x.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
29
YACReader/yacreader_images_win.qrc
Normal file
29
YACReader/yacreader_images_win.qrc
Normal file
@ -0,0 +1,29 @@
|
||||
<RCC>
|
||||
<qresource prefix="/" >
|
||||
<file>../images/viewer_toolbar/bookmark.png</file>
|
||||
<file>../images/viewer_toolbar/close.png</file>
|
||||
<file>../images/viewer_toolbar/doublePage.png</file>
|
||||
<file>../images/viewer_toolbar/doubleMangaPage.png</file>
|
||||
<file>../images/viewer_toolbar/flow.png</file>
|
||||
<file>../images/viewer_toolbar/full.png</file>
|
||||
<file>../images/viewer_toolbar/goto.png</file>
|
||||
<file>../images/viewer_toolbar/help.png</file>
|
||||
<file>../images/viewer_toolbar/info.png</file>
|
||||
<file>../images/viewer_toolbar/magnifyingGlass.png</file>
|
||||
<file>../images/viewer_toolbar/next.png</file>
|
||||
<file>../images/viewer_toolbar/open.png</file>
|
||||
<file>../images/viewer_toolbar/openFolder.png</file>
|
||||
<file>../images/viewer_toolbar/openNext.png</file>
|
||||
<file>../images/viewer_toolbar/openPrevious.png</file>
|
||||
<file>../images/viewer_toolbar/options.png</file>
|
||||
<file>../images/viewer_toolbar/previous.png</file>
|
||||
<file>../images/viewer_toolbar/rotateL.png</file>
|
||||
<file>../images/viewer_toolbar/rotateR.png</file>
|
||||
<file>../images/viewer_toolbar/save.png</file>
|
||||
<file>../images/viewer_toolbar/shortcuts.png</file>
|
||||
<file>../images/viewer_toolbar/showBookmarks.png</file>
|
||||
<file>../images/viewer_toolbar/toHeight.png</file>
|
||||
<file>../images/viewer_toolbar/toWidth.png</file>
|
||||
<file>../images/viewer_toolbar/translator.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
171
YACReader/yacreader_local_client.cpp
Normal file
171
YACReader/yacreader_local_client.cpp
Normal file
@ -0,0 +1,171 @@
|
||||
#include "yacreader_local_client.h"
|
||||
#include "comic_db.h"
|
||||
#include "yacreader_global.h"
|
||||
|
||||
#include <QLocalSocket>
|
||||
|
||||
#include "QsLog.h"
|
||||
|
||||
using namespace YACReader;
|
||||
|
||||
YACReaderLocalClient::YACReaderLocalClient(QObject *parent) :
|
||||
QObject(parent)
|
||||
{
|
||||
localSocket = new QLocalSocket(this);
|
||||
|
||||
//connect(localSocket, SIGNAL(readyRead()), this, SLOT(readMessage()));
|
||||
|
||||
/*connect(socket, SIGNAL(error(QLocalSocket::LocalSocketError)),
|
||||
this, SLOT(displayError(QLocalSocket::LocalSocketError)));*/
|
||||
}
|
||||
YACReaderLocalClient::~YACReaderLocalClient()
|
||||
{
|
||||
delete localSocket;
|
||||
}
|
||||
//información de comic recibida...
|
||||
void YACReaderLocalClient::readMessage()
|
||||
{
|
||||
|
||||
}
|
||||
#include <QMessageBox>
|
||||
|
||||
bool YACReaderLocalClient::requestComicInfo(quint64 libraryId, ComicDB & comic, QList<ComicDB> & siblings)
|
||||
{
|
||||
localSocket->connectToServer(YACREADERLIBRARY_GUID);
|
||||
if(localSocket->isOpen())
|
||||
{
|
||||
QByteArray block;
|
||||
QDataStream out(&block, QIODevice::WriteOnly);
|
||||
out.setVersion(QDataStream::Qt_4_8);
|
||||
out << (quint32)0;
|
||||
out << (quint8)YACReader::RequestComicInfo;
|
||||
out << libraryId;
|
||||
out << comic;
|
||||
out.device()->seek(0);
|
||||
out << (quint32)(block.size() - sizeof(quint32));
|
||||
|
||||
int written = 0;
|
||||
int previousWritten = 0;
|
||||
quint16 tries = 0;
|
||||
while(written != block.size() && tries < 200)
|
||||
{
|
||||
written += localSocket->write(block);
|
||||
localSocket->flush();
|
||||
if(written == previousWritten) //no bytes were written
|
||||
tries++;
|
||||
previousWritten = written;
|
||||
}
|
||||
if(tries == 200)
|
||||
{
|
||||
localSocket->close();
|
||||
QLOG_ERROR() << "Requesting Comic Info : unable to send request";
|
||||
return false;
|
||||
}
|
||||
|
||||
localSocket->waitForBytesWritten(2000);
|
||||
|
||||
//QByteArray data;
|
||||
tries = 0;
|
||||
int dataAvailable = 0;
|
||||
QByteArray packageSize;
|
||||
localSocket->waitForReadyRead(1000);
|
||||
while(packageSize.size() < sizeof(quint32) && tries < 20)
|
||||
{
|
||||
packageSize.append(localSocket->read(sizeof(quint32) - packageSize.size()));
|
||||
localSocket->waitForReadyRead(100);
|
||||
if(dataAvailable == packageSize.size())
|
||||
{
|
||||
tries++; //TODO apply 'tries' fix
|
||||
}
|
||||
dataAvailable = packageSize.size();
|
||||
}
|
||||
if(tries == 20)
|
||||
{
|
||||
localSocket->close();
|
||||
QLOG_ERROR() << "Requesting Comic Info : unable to read package size";
|
||||
return false;
|
||||
}
|
||||
QDataStream sizeStream(packageSize);//localSocket->read(sizeof(quint32)));
|
||||
sizeStream.setVersion(QDataStream::Qt_4_8);
|
||||
quint32 totalSize = 0;
|
||||
sizeStream >> totalSize;
|
||||
|
||||
QByteArray data;
|
||||
|
||||
tries = 0;
|
||||
int dataRead = 0;
|
||||
localSocket->waitForReadyRead(1000);
|
||||
while(data.length() < totalSize && tries < 20 )
|
||||
{
|
||||
data.append(localSocket->readAll());
|
||||
if(data.length() < totalSize)
|
||||
localSocket->waitForReadyRead(100);
|
||||
if(data.length() == dataRead)
|
||||
tries++;
|
||||
dataRead = data.length();
|
||||
}
|
||||
|
||||
if(tries == 20)
|
||||
{
|
||||
localSocket->close();
|
||||
QLOG_ERROR() << "Requesting Comic Info : unable to read data (" << data.length() << "," << totalSize << ")";
|
||||
return false;
|
||||
}
|
||||
|
||||
QDataStream dataStream(data);
|
||||
dataStream >> comic;
|
||||
dataStream >> siblings;
|
||||
localSocket->close();
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
QLOG_ERROR() << "Requesting Comic Info : unable to connect to the server";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool YACReaderLocalClient::sendComicInfo(quint64 libraryId, ComicDB & comic)
|
||||
{
|
||||
localSocket->connectToServer(YACREADERLIBRARY_GUID);
|
||||
if(localSocket->isOpen())
|
||||
{
|
||||
//QLOG_INFO() << "Connection opened for sending ComicInfo";
|
||||
QByteArray block;
|
||||
QDataStream out(&block, QIODevice::WriteOnly);
|
||||
out.setVersion(QDataStream::Qt_4_8);
|
||||
out << (quint32)0;
|
||||
out << (quint8)YACReader::SendComicInfo;
|
||||
out << libraryId;
|
||||
out << comic;
|
||||
out.device()->seek(0);
|
||||
out << (quint32)(block.size() - sizeof(quint32));
|
||||
|
||||
int written, previousWritten;
|
||||
written = previousWritten = 0;
|
||||
int tries = 0;
|
||||
while(written != block.size() && tries < 100)
|
||||
{
|
||||
written += localSocket->write(block);
|
||||
if(written == previousWritten)
|
||||
tries++;
|
||||
previousWritten = written;
|
||||
}
|
||||
localSocket->waitForBytesWritten(2000);
|
||||
localSocket->close();
|
||||
//QLOG_INFO() << QString("Sending Comic Info : writen data (%1,%2)").arg(written).arg(block.size());
|
||||
if(tries == 100 && written != block.size())
|
||||
{
|
||||
emit finished();
|
||||
QLOG_ERROR() << QString("Sending Comic Info : unable to write data (%1,%2)").arg(written).arg(block.size());
|
||||
return false;
|
||||
}
|
||||
emit finished();
|
||||
return true;
|
||||
}
|
||||
|
||||
emit finished();
|
||||
QLOG_ERROR() << "Sending Comic Info : unable to connect to the server";
|
||||
return false;
|
||||
|
||||
}
|
||||
27
YACReader/yacreader_local_client.h
Normal file
27
YACReader/yacreader_local_client.h
Normal file
@ -0,0 +1,27 @@
|
||||
#ifndef YACREADER_LOCAL_CLIENT_H
|
||||
#define YACREADER_LOCAL_CLIENT_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class QLocalSocket;
|
||||
class ComicDB;
|
||||
|
||||
class YACReaderLocalClient : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit YACReaderLocalClient(QObject *parent = 0);
|
||||
~YACReaderLocalClient();
|
||||
signals:
|
||||
void finished();
|
||||
public slots:
|
||||
void readMessage();
|
||||
bool requestComicInfo(quint64 libraryId, ComicDB & comic,QList<ComicDB> & siblings);
|
||||
bool sendComicInfo(quint64 libraryId, ComicDB & comic);
|
||||
|
||||
private:
|
||||
QLocalSocket * localSocket;
|
||||
|
||||
};
|
||||
|
||||
#endif // YACREADER_LOCAL_CLIENT_H
|
||||
791
YACReader/yacreader_nl.ts
Normal file
791
YACReader/yacreader_nl.ts
Normal file
@ -0,0 +1,791 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="nl_BE" sourcelanguage="en">
|
||||
<context>
|
||||
<name>BookmarksDialog</name>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="25"/>
|
||||
<source>Lastest Page</source>
|
||||
<translation type="unfinished">Laatste Pagina</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="73"/>
|
||||
<source>Close</source>
|
||||
<translation type="unfinished">Sluiten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="83"/>
|
||||
<source>Click on any image to go to the bookmark</source>
|
||||
<translation type="unfinished">Klik op een afbeelding om naar de bladwijzer te gaan </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="107"/>
|
||||
<location filename="bookmarks_dialog.cpp" line="131"/>
|
||||
<source>Loading...</source>
|
||||
<translation type="unfinished">Inladen...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FileComic</name>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="309"/>
|
||||
<source>Unknown error opening the file</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="418"/>
|
||||
<source>7z not found</source>
|
||||
<translation type="unfinished">7Z Archiefbestand niet gevonden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="424"/>
|
||||
<source>Format not supported</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="302"/>
|
||||
<source>CRC error on page (%1): some of the pages will not be displayed correctly</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GoToDialog</name>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="17"/>
|
||||
<source>Page : </source>
|
||||
<translation type="unfinished">Pagina : </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="25"/>
|
||||
<source>Go To</source>
|
||||
<translation type="unfinished">Ga Naar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="27"/>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished">Annuleren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="41"/>
|
||||
<location filename="goto_dialog.cpp" line="76"/>
|
||||
<source>Total pages : </source>
|
||||
<translation type="unfinished">Totaal aantal pagina's : </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="55"/>
|
||||
<source>Go to...</source>
|
||||
<translation type="unfinished">Ga naar...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GoToFlowToolBar</name>
|
||||
<message>
|
||||
<location filename="goto_flow_toolbar.cpp" line="44"/>
|
||||
<source>Page : </source>
|
||||
<translation type="unfinished">Pagina : </translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>HelpAboutDialog</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/help_about_dialog.cpp" line="21"/>
|
||||
<source>About</source>
|
||||
<translation type="unfinished">Over</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/help_about_dialog.cpp" line="24"/>
|
||||
<source>Help</source>
|
||||
<translation type="unfinished">Help</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindowViewer</name>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="197"/>
|
||||
<source>&Open</source>
|
||||
<translation type="unfinished">&Open</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="198"/>
|
||||
<source>O</source>
|
||||
<translation type="unfinished">O</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="200"/>
|
||||
<source>Open a comic</source>
|
||||
<translation type="unfinished">Open een strip</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="203"/>
|
||||
<source>Open Folder</source>
|
||||
<translation type="unfinished">Map Openen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="204"/>
|
||||
<source>Ctrl+O</source>
|
||||
<translation type="unfinished">Ctrl+O</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="206"/>
|
||||
<source>Open image folder</source>
|
||||
<translation type="unfinished">Open afbeeldings map</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="209"/>
|
||||
<source>Save</source>
|
||||
<translation type="unfinished">Bewaar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="211"/>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>Save current page</source>
|
||||
<translation type="unfinished">Bewaren huidige pagina</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="215"/>
|
||||
<source>Previous Comic</source>
|
||||
<translation type="unfinished">Vorige Strip</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="218"/>
|
||||
<source>Open previous comic</source>
|
||||
<translation type="unfinished">Open de vorige strip</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="222"/>
|
||||
<source>Next Comic</source>
|
||||
<translation type="unfinished">Volgende Strip</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="225"/>
|
||||
<source>Open next comic</source>
|
||||
<translation type="unfinished">Open volgende strip</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="229"/>
|
||||
<source>&Previous</source>
|
||||
<translation type="unfinished">&Vorige</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="233"/>
|
||||
<source>Go to previous page</source>
|
||||
<translation type="unfinished">Ga naar de vorige pagina</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="237"/>
|
||||
<source>&Next</source>
|
||||
<translation type="unfinished">&Volgende</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="241"/>
|
||||
<source>Go to next page</source>
|
||||
<translation type="unfinished">Ga naar de volgende pagina</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="254"/>
|
||||
<source>Fit Width</source>
|
||||
<translation type="unfinished">Vensterbreedte aanpassen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="250"/>
|
||||
<source>Fit image to height</source>
|
||||
<translation type="unfinished">Afbeelding aanpassen aan hoogte</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="245"/>
|
||||
<source>Fit Height</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="259"/>
|
||||
<source>Fit image to width</source>
|
||||
<translation type="unfinished">Afbeelding aanpassen aan breedte</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="263"/>
|
||||
<source>Rotate image to the left</source>
|
||||
<translation type="unfinished">Links omdraaien</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="264"/>
|
||||
<source>L</source>
|
||||
<translation type="unfinished">L</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="269"/>
|
||||
<source>Rotate image to the right</source>
|
||||
<translation type="unfinished">Rechts omdraaien</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="270"/>
|
||||
<source>R</source>
|
||||
<translation type="unfinished">R</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="275"/>
|
||||
<source>Double page mode</source>
|
||||
<translation type="unfinished">Dubbele bladzijde modus</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="276"/>
|
||||
<source>Switch to double page mode</source>
|
||||
<translation type="unfinished">Naar dubbele bladzijde modus</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="277"/>
|
||||
<source>D</source>
|
||||
<translation type="unfinished">D</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="284"/>
|
||||
<source>Go To</source>
|
||||
<translation type="unfinished">Ga Naar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="285"/>
|
||||
<source>G</source>
|
||||
<translation type="unfinished">G</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="288"/>
|
||||
<source>Go to page ...</source>
|
||||
<translation type="unfinished">Ga naar bladzijde ...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="291"/>
|
||||
<source>Options</source>
|
||||
<translation type="unfinished">Opties</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="292"/>
|
||||
<source>C</source>
|
||||
<translation type="unfinished">C</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="293"/>
|
||||
<source>YACReader options</source>
|
||||
<translation type="unfinished">YACReader opties</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="298"/>
|
||||
<source>Help</source>
|
||||
<translation type="unfinished">Help</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="299"/>
|
||||
<source>Help, About YACReader</source>
|
||||
<translation type="unfinished">Help, Over YACReader</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="304"/>
|
||||
<source>Magnifying glass</source>
|
||||
<translation type="unfinished">Vergrootglas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="305"/>
|
||||
<source>Switch Magnifying glass</source>
|
||||
<translation type="unfinished">Overschakelen naar Vergrootglas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="306"/>
|
||||
<source>Z</source>
|
||||
<translation type="unfinished">Z</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="312"/>
|
||||
<source>Set bookmark</source>
|
||||
<translation type="unfinished">Bladwijzer instellen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="313"/>
|
||||
<source>Set a bookmark on the current page</source>
|
||||
<translation type="unfinished">Een bladwijzer toevoegen aan de huidige pagina</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="322"/>
|
||||
<source>Show bookmarks</source>
|
||||
<translation type="unfinished">Bladwijzers weergeven</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="323"/>
|
||||
<source>Show the bookmarks of the current comic</source>
|
||||
<translation type="unfinished">Toon de bladwijzers van de huidige strip</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="324"/>
|
||||
<source>M</source>
|
||||
<translation type="unfinished">M</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="329"/>
|
||||
<source>Show keyboard shortcuts</source>
|
||||
<translation type="unfinished">Toon de sneltoetsen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="333"/>
|
||||
<source>Show Info</source>
|
||||
<translation type="unfinished">Info tonen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="334"/>
|
||||
<source>I</source>
|
||||
<translation type="unfinished">I</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="339"/>
|
||||
<source>Close</source>
|
||||
<translation type="unfinished">Sluiten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="344"/>
|
||||
<source>Show Dictionary</source>
|
||||
<translation type="unfinished">Woordenlijst weergeven</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="351"/>
|
||||
<source>Always on top</source>
|
||||
<translation type="unfinished">Altijd op voorgrond</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="359"/>
|
||||
<source>Show full size</source>
|
||||
<translation type="unfinished">Volledig Scherm </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="367"/>
|
||||
<source>Show go to flow</source>
|
||||
<translation type="unfinished">Toon ga naar de Omslagbrowser</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="376"/>
|
||||
<source>&File</source>
|
||||
<translation type="unfinished">&Bestand</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="545"/>
|
||||
<source>File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="571"/>
|
||||
<source>Open Comic</source>
|
||||
<translation type="unfinished">Open een Strip</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="571"/>
|
||||
<source>Comic files</source>
|
||||
<translation type="unfinished">Strip bestanden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="659"/>
|
||||
<source>Open folder</source>
|
||||
<translation type="unfinished">Open een Map</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>Image files (*.jpg)</source>
|
||||
<translation type="unfinished">Afbeelding bestanden (*.jpg)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>page_%1.jpg</source>
|
||||
<translation type="unfinished">pagina_%1.jpg</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="927"/>
|
||||
<source>There is a new version available</source>
|
||||
<translation type="unfinished">Er is een nieuwe versie beschikbaar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="928"/>
|
||||
<source>Do you want to download the new version?</source>
|
||||
<translation type="unfinished">Wilt u de nieuwe versie downloaden?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="931"/>
|
||||
<source>Remind me in 14 days</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="932"/>
|
||||
<source>Not now</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OptionsDialog</name>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="35"/>
|
||||
<source>"Go to flow" size</source>
|
||||
<translation type="unfinished">"Naar Omslagbrowser" afmetingen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="46"/>
|
||||
<source>My comics path</source>
|
||||
<translation type="unfinished">Pad naar mijn strips</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="56"/>
|
||||
<source>Page width stretch</source>
|
||||
<translation type="unfinished">Pagina breedte</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="77"/>
|
||||
<source>Background color</source>
|
||||
<translation type="unfinished">Achtergrondkleur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="80"/>
|
||||
<source>Choose</source>
|
||||
<translation type="unfinished">Kies</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="108"/>
|
||||
<source>Restart is needed</source>
|
||||
<translation type="unfinished">Herstart is nodig</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="121"/>
|
||||
<source>Brightness</source>
|
||||
<translation type="unfinished">Helderheid</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="122"/>
|
||||
<source>Contrast</source>
|
||||
<translation type="unfinished">Contrast</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="123"/>
|
||||
<source>Gamma</source>
|
||||
<translation type="unfinished">Gamma</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="127"/>
|
||||
<source>Reset</source>
|
||||
<translation type="unfinished">Standaardwaarden terugzetten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="133"/>
|
||||
<source>Image options</source>
|
||||
<translation type="unfinished">Afbeelding opties</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="143"/>
|
||||
<source>General</source>
|
||||
<translation type="unfinished">Algemeen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="144"/>
|
||||
<source>Page Flow</source>
|
||||
<translation type="unfinished">Omslagbrowser</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="145"/>
|
||||
<source>Image adjustment</source>
|
||||
<translation type="unfinished">Beeldaanpassing</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="158"/>
|
||||
<source>Options</source>
|
||||
<translation type="unfinished">Opties</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="165"/>
|
||||
<source>Comics directory</source>
|
||||
<translation type="unfinished">Strips map</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../common/exit_check.cpp" line="14"/>
|
||||
<source>7z lib not found</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/exit_check.cpp" line="14"/>
|
||||
<source>unable to load 7z lib from ./utils</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ShortcutsDialog</name>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="16"/>
|
||||
<source>YACReader keyboard shortcuts</source>
|
||||
<translation type="unfinished">YACReader sneltoetsen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="20"/>
|
||||
<source>Close</source>
|
||||
<translation type="unfinished">Sluiten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="66"/>
|
||||
<source>Keyboard Shortcuts</source>
|
||||
<translation type="unfinished">Sneltoetsen</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Viewer</name>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="42"/>
|
||||
<location filename="viewer.cpp" line="693"/>
|
||||
<source>Press 'O' to open comic.</source>
|
||||
<translation type="unfinished">Druk 'O' om een strip te openen.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="217"/>
|
||||
<source>Not found</source>
|
||||
<translation type="unfinished">Niet gevonden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="217"/>
|
||||
<source>Comic not found</source>
|
||||
<translation type="unfinished">Strip niet gevonden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="223"/>
|
||||
<source>Error opening comic</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="229"/>
|
||||
<source>CRC Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="706"/>
|
||||
<source>Loading...please wait!</source>
|
||||
<translation type="unfinished">Inladen...even wachten!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="717"/>
|
||||
<source>Page not available!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="853"/>
|
||||
<source>Cover!</source>
|
||||
<translation type="unfinished">Omslag!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="870"/>
|
||||
<source>Last page!</source>
|
||||
<translation type="unfinished">Laatste pagina!</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFieldEdit</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="9"/>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="29"/>
|
||||
<source>Click to overwrite</source>
|
||||
<translation type="unfinished">Klik hier om te overschrijven</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="11"/>
|
||||
<source>Restore to default</source>
|
||||
<translation type="unfinished">Standaardwaarden herstellen</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFieldPlainTextEdit</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="9"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="20"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="45"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="51"/>
|
||||
<source>Click to overwrite</source>
|
||||
<translation type="unfinished">Klik hier om te overschrijven</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="10"/>
|
||||
<source>Restore to default</source>
|
||||
<translation type="unfinished">Standaardwaarden herstellen</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFlowConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="13"/>
|
||||
<source>How to show covers:</source>
|
||||
<translation type="unfinished">Omslagbladen bekijken:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="15"/>
|
||||
<source>CoverFlow look</source>
|
||||
<translation type="unfinished">Omslagbrowser uiterlijk </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="16"/>
|
||||
<source>Stripe look</source>
|
||||
<translation type="unfinished">Brede band </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="17"/>
|
||||
<source>Overlapped Stripe look</source>
|
||||
<translation type="unfinished">Overlappende band</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderGLFlowConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="19"/>
|
||||
<source>Presets:</source>
|
||||
<translation type="unfinished">Voorinstellingen:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="21"/>
|
||||
<source>Classic look</source>
|
||||
<translation type="unfinished">Klassiek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="24"/>
|
||||
<source>Stripe look</source>
|
||||
<translation type="unfinished">Brede band</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="27"/>
|
||||
<source>Overlapped Stripe look</source>
|
||||
<translation type="unfinished">Overlappende band</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="30"/>
|
||||
<source>Modern look</source>
|
||||
<translation type="unfinished">Modern</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="33"/>
|
||||
<source>Roulette look</source>
|
||||
<translation type="unfinished">Roulette</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="77"/>
|
||||
<source>Show advanced settings</source>
|
||||
<translation type="unfinished">Toon geavanceerde instellingen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="86"/>
|
||||
<source>Custom:</source>
|
||||
<translation type="unfinished">Aangepast:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="89"/>
|
||||
<source>View angle</source>
|
||||
<translation type="unfinished">Kijkhoek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="95"/>
|
||||
<source>Position</source>
|
||||
<translation type="unfinished">Positie</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="101"/>
|
||||
<source>Cover gap</source>
|
||||
<translation type="unfinished">Ruimte tss Omslag</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="107"/>
|
||||
<source>Central gap</source>
|
||||
<translation type="unfinished">Centrale ruimte</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="113"/>
|
||||
<source>Zoom</source>
|
||||
<translation type="unfinished">Zoom</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="119"/>
|
||||
<source>Y offset</source>
|
||||
<translation type="unfinished">Y-positie</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="125"/>
|
||||
<source>Z offset</source>
|
||||
<translation type="unfinished">Z- positie</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="131"/>
|
||||
<source>Cover Angle</source>
|
||||
<translation type="unfinished">Omslag hoek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="137"/>
|
||||
<source>Visibility</source>
|
||||
<translation type="unfinished">Zichtbaarheid</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="143"/>
|
||||
<source>Light</source>
|
||||
<translation type="unfinished">Licht</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="149"/>
|
||||
<source>Max angle</source>
|
||||
<translation type="unfinished">Maximale hoek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="181"/>
|
||||
<source>Low Performance</source>
|
||||
<translation type="unfinished">Lage Prestaties</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="183"/>
|
||||
<source>High Performance</source>
|
||||
<translation type="unfinished">Hoge Prestaties</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="194"/>
|
||||
<source>Use VSync (improve the image quality in fullscreen mode, worse performance)</source>
|
||||
<translation type="unfinished">Gebruik VSync (verbetering van de beeldkwaliteit in de modus volledig scherm, slechtere prestatie)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="202"/>
|
||||
<source>Performance:</source>
|
||||
<translation type="unfinished">Prestatie:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderOptionsDialog</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="21"/>
|
||||
<source>Save</source>
|
||||
<translation type="unfinished">Bewaar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="22"/>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished">Annuleren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="30"/>
|
||||
<source>Use hardware acceleration (restart needed)</source>
|
||||
<translation type="unfinished">Gebruik hardware versnelling (opnieuw opstarten vereist)</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderTranslator</name>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="62"/>
|
||||
<source>YACReader translator</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="117"/>
|
||||
<location filename="translator.cpp" line="210"/>
|
||||
<source>Translation</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="140"/>
|
||||
<source>clear</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="219"/>
|
||||
<source>Service not available</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
791
YACReader/yacreader_pt.ts
Normal file
791
YACReader/yacreader_pt.ts
Normal file
@ -0,0 +1,791 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="pt_BR">
|
||||
<context>
|
||||
<name>BookmarksDialog</name>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="25"/>
|
||||
<source>Lastest Page</source>
|
||||
<translation>Última Página</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="73"/>
|
||||
<source>Close</source>
|
||||
<translation>Fechar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="83"/>
|
||||
<source>Click on any image to go to the bookmark</source>
|
||||
<translation>Clique em qualquer imagem para ir para o marcador</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="107"/>
|
||||
<location filename="bookmarks_dialog.cpp" line="131"/>
|
||||
<source>Loading...</source>
|
||||
<translation>Carregando...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FileComic</name>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="309"/>
|
||||
<source>Unknown error opening the file</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="418"/>
|
||||
<source>7z not found</source>
|
||||
<translation type="unfinished">7z não encontrado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="424"/>
|
||||
<source>Format not supported</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="302"/>
|
||||
<source>CRC error on page (%1): some of the pages will not be displayed correctly</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GoToDialog</name>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="17"/>
|
||||
<source>Page : </source>
|
||||
<translation>Página : </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="25"/>
|
||||
<source>Go To</source>
|
||||
<translation>Ir Para</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="27"/>
|
||||
<source>Cancel</source>
|
||||
<translation>Cancelar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="41"/>
|
||||
<location filename="goto_dialog.cpp" line="76"/>
|
||||
<source>Total pages : </source>
|
||||
<translation>Total de páginas : </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="55"/>
|
||||
<source>Go to...</source>
|
||||
<translation>Ir para...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GoToFlowToolBar</name>
|
||||
<message>
|
||||
<location filename="goto_flow_toolbar.cpp" line="44"/>
|
||||
<source>Page : </source>
|
||||
<translation>Página : </translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>HelpAboutDialog</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/help_about_dialog.cpp" line="21"/>
|
||||
<source>About</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/help_about_dialog.cpp" line="24"/>
|
||||
<source>Help</source>
|
||||
<translation>Ajuda</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindowViewer</name>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="197"/>
|
||||
<source>&Open</source>
|
||||
<translation>&Abrir</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="198"/>
|
||||
<source>O</source>
|
||||
<translation>O</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="200"/>
|
||||
<source>Open a comic</source>
|
||||
<translation>Abrir um quadrinho</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="203"/>
|
||||
<source>Open Folder</source>
|
||||
<translation>Abrir Pasta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="204"/>
|
||||
<source>Ctrl+O</source>
|
||||
<translation>Ctrl+O</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="206"/>
|
||||
<source>Open image folder</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="209"/>
|
||||
<source>Save</source>
|
||||
<translation>Salvar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="211"/>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>Save current page</source>
|
||||
<translation>Salvar página atual</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="215"/>
|
||||
<source>Previous Comic</source>
|
||||
<translation>Quadrinho Anterior</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="218"/>
|
||||
<source>Open previous comic</source>
|
||||
<translation>Abrir quadrinho anterior</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="222"/>
|
||||
<source>Next Comic</source>
|
||||
<translation>Próximo Quadrinho</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="225"/>
|
||||
<source>Open next comic</source>
|
||||
<translation>Abrir próximo quadrinho</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="229"/>
|
||||
<source>&Previous</source>
|
||||
<translation>A&nterior</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="233"/>
|
||||
<source>Go to previous page</source>
|
||||
<translation>Ir para a página anterior</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="237"/>
|
||||
<source>&Next</source>
|
||||
<translation>&Próxima</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="241"/>
|
||||
<source>Go to next page</source>
|
||||
<translation>Ir para a próxima página</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="254"/>
|
||||
<source>Fit Width</source>
|
||||
<translation>Ajustar à Largura</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="250"/>
|
||||
<source>Fit image to height</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="245"/>
|
||||
<source>Fit Height</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="259"/>
|
||||
<source>Fit image to width</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="263"/>
|
||||
<source>Rotate image to the left</source>
|
||||
<translation>Girar imagem à esquerda</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="264"/>
|
||||
<source>L</source>
|
||||
<translation>L</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="269"/>
|
||||
<source>Rotate image to the right</source>
|
||||
<translation>Girar imagem à direita</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="270"/>
|
||||
<source>R</source>
|
||||
<translation>R</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="275"/>
|
||||
<source>Double page mode</source>
|
||||
<translation>Modo dupla página</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="276"/>
|
||||
<source>Switch to double page mode</source>
|
||||
<translation>Alternar para o modo dupla página</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="277"/>
|
||||
<source>D</source>
|
||||
<translation>D</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="284"/>
|
||||
<source>Go To</source>
|
||||
<translation>Ir Para</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="285"/>
|
||||
<source>G</source>
|
||||
<translation>G</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="288"/>
|
||||
<source>Go to page ...</source>
|
||||
<translation>Ir para a página...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="291"/>
|
||||
<source>Options</source>
|
||||
<translation>Opções</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="292"/>
|
||||
<source>C</source>
|
||||
<translation>C</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="293"/>
|
||||
<source>YACReader options</source>
|
||||
<translation>Opções do YACReader</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="298"/>
|
||||
<source>Help</source>
|
||||
<translation>Ajuda</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="299"/>
|
||||
<source>Help, About YACReader</source>
|
||||
<translation>Ajuda, Sobre o YACReader</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="304"/>
|
||||
<source>Magnifying glass</source>
|
||||
<translation>Lupa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="305"/>
|
||||
<source>Switch Magnifying glass</source>
|
||||
<translation>Alternar Lupa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="306"/>
|
||||
<source>Z</source>
|
||||
<translation>Z</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="312"/>
|
||||
<source>Set bookmark</source>
|
||||
<translation>Definir marcador</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="313"/>
|
||||
<source>Set a bookmark on the current page</source>
|
||||
<translation>Definir um marcador na página atual</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="322"/>
|
||||
<source>Show bookmarks</source>
|
||||
<translation>Mostrar marcadores</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="323"/>
|
||||
<source>Show the bookmarks of the current comic</source>
|
||||
<translation>Mostrar os marcadores do quadrinho atual</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="324"/>
|
||||
<source>M</source>
|
||||
<translation>M</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="329"/>
|
||||
<source>Show keyboard shortcuts</source>
|
||||
<translation>Mostrar teclas de atalhos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="333"/>
|
||||
<source>Show Info</source>
|
||||
<translation>Mostrar Informações</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="334"/>
|
||||
<source>I</source>
|
||||
<translation>I</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="339"/>
|
||||
<source>Close</source>
|
||||
<translation>Fechar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="344"/>
|
||||
<source>Show Dictionary</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="351"/>
|
||||
<source>Always on top</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="359"/>
|
||||
<source>Show full size</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="367"/>
|
||||
<source>Show go to flow</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="376"/>
|
||||
<source>&File</source>
|
||||
<translation>&Arquivo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="545"/>
|
||||
<source>File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="571"/>
|
||||
<source>Open Comic</source>
|
||||
<translation>Abrir Quadrinho</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="571"/>
|
||||
<source>Comic files</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="931"/>
|
||||
<source>Remind me in 14 days</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="932"/>
|
||||
<source>Not now</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="659"/>
|
||||
<source>Open folder</source>
|
||||
<translation>Abrir pasta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>Image files (*.jpg)</source>
|
||||
<translation>Arquivos de imagem (*.jpg)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>page_%1.jpg</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="927"/>
|
||||
<source>There is a new version available</source>
|
||||
<translation>Há uma nova versão disponível</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="928"/>
|
||||
<source>Do you want to download the new version?</source>
|
||||
<translation>Você deseja baixar a nova versão?</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OptionsDialog</name>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="35"/>
|
||||
<source>"Go to flow" size</source>
|
||||
<translation>Tamanho do "Ir para cheia"</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="46"/>
|
||||
<source>My comics path</source>
|
||||
<translation>Meu caminho de quadrinhos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="56"/>
|
||||
<source>Page width stretch</source>
|
||||
<translation>Trecho da largura da página</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="77"/>
|
||||
<source>Background color</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="80"/>
|
||||
<source>Choose</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="108"/>
|
||||
<source>Restart is needed</source>
|
||||
<translation>Reiniciar é necessário</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="121"/>
|
||||
<source>Brightness</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="122"/>
|
||||
<source>Contrast</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="123"/>
|
||||
<source>Gamma</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="127"/>
|
||||
<source>Reset</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="133"/>
|
||||
<source>Image options</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="143"/>
|
||||
<source>General</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="144"/>
|
||||
<source>Page Flow</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="145"/>
|
||||
<source>Image adjustment</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="158"/>
|
||||
<source>Options</source>
|
||||
<translation>Opções</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="165"/>
|
||||
<source>Comics directory</source>
|
||||
<translation>Diretório de quadrinhos</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../common/exit_check.cpp" line="14"/>
|
||||
<source>7z lib not found</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/exit_check.cpp" line="14"/>
|
||||
<source>unable to load 7z lib from ./utils</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ShortcutsDialog</name>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="16"/>
|
||||
<source>YACReader keyboard shortcuts</source>
|
||||
<translation>Teclas de atalhos do YACReader</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="20"/>
|
||||
<source>Close</source>
|
||||
<translation>Fechar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="66"/>
|
||||
<source>Keyboard Shortcuts</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Viewer</name>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="42"/>
|
||||
<location filename="viewer.cpp" line="693"/>
|
||||
<source>Press 'O' to open comic.</source>
|
||||
<translation>Pressione 'O' para abrir um quadrinho.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="217"/>
|
||||
<source>Not found</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="217"/>
|
||||
<source>Comic not found</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="223"/>
|
||||
<source>Error opening comic</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="229"/>
|
||||
<source>CRC Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="706"/>
|
||||
<source>Loading...please wait!</source>
|
||||
<translation>Carregando... por favor, aguarde!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="717"/>
|
||||
<source>Page not available!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="853"/>
|
||||
<source>Cover!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="870"/>
|
||||
<source>Last page!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFieldEdit</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="9"/>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="29"/>
|
||||
<source>Click to overwrite</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="11"/>
|
||||
<source>Restore to default</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFieldPlainTextEdit</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="9"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="20"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="45"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="51"/>
|
||||
<source>Click to overwrite</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="10"/>
|
||||
<source>Restore to default</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFlowConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="13"/>
|
||||
<source>How to show covers:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="15"/>
|
||||
<source>CoverFlow look</source>
|
||||
<translation>Olhar capa cheia</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="16"/>
|
||||
<source>Stripe look</source>
|
||||
<translation>Olhar lista</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="17"/>
|
||||
<source>Overlapped Stripe look</source>
|
||||
<translation>Olhar lista sobreposta</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderGLFlowConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="19"/>
|
||||
<source>Presets:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="21"/>
|
||||
<source>Classic look</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="24"/>
|
||||
<source>Stripe look</source>
|
||||
<translation>Olhar lista</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="27"/>
|
||||
<source>Overlapped Stripe look</source>
|
||||
<translation>Olhar lista sobreposta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="30"/>
|
||||
<source>Modern look</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="33"/>
|
||||
<source>Roulette look</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="77"/>
|
||||
<source>Show advanced settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="86"/>
|
||||
<source>Custom:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="89"/>
|
||||
<source>View angle</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="95"/>
|
||||
<source>Position</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="101"/>
|
||||
<source>Cover gap</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="107"/>
|
||||
<source>Central gap</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="113"/>
|
||||
<source>Zoom</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="119"/>
|
||||
<source>Y offset</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="125"/>
|
||||
<source>Z offset</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="131"/>
|
||||
<source>Cover Angle</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="137"/>
|
||||
<source>Visibility</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="143"/>
|
||||
<source>Light</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="149"/>
|
||||
<source>Max angle</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="181"/>
|
||||
<source>Low Performance</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="183"/>
|
||||
<source>High Performance</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="194"/>
|
||||
<source>Use VSync (improve the image quality in fullscreen mode, worse performance)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="202"/>
|
||||
<source>Performance:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderOptionsDialog</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="21"/>
|
||||
<source>Save</source>
|
||||
<translation>Salvar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="22"/>
|
||||
<source>Cancel</source>
|
||||
<translation>Cancelar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="30"/>
|
||||
<source>Use hardware acceleration (restart needed)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderTranslator</name>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="62"/>
|
||||
<source>YACReader translator</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="117"/>
|
||||
<location filename="translator.cpp" line="210"/>
|
||||
<source>Translation</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="140"/>
|
||||
<source>clear</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="219"/>
|
||||
<source>Service not available</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
791
YACReader/yacreader_ru.ts
Normal file
791
YACReader/yacreader_ru.ts
Normal file
@ -0,0 +1,791 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="ru_RU" sourcelanguage="ru">
|
||||
<context>
|
||||
<name>BookmarksDialog</name>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="25"/>
|
||||
<source>Lastest Page</source>
|
||||
<translation>Последняя Страница</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="73"/>
|
||||
<source>Close</source>
|
||||
<translation>Закрыть</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="83"/>
|
||||
<source>Click on any image to go to the bookmark</source>
|
||||
<translation>Нажмите на любое изображение, чтобы перейти к закладке</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="107"/>
|
||||
<location filename="bookmarks_dialog.cpp" line="131"/>
|
||||
<source>Loading...</source>
|
||||
<translation>Загрузка...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FileComic</name>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="309"/>
|
||||
<source>Unknown error opening the file</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="418"/>
|
||||
<source>7z not found</source>
|
||||
<translation type="unfinished">7z не найден</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="424"/>
|
||||
<source>Format not supported</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="302"/>
|
||||
<source>CRC error on page (%1): some of the pages will not be displayed correctly</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GoToDialog</name>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="17"/>
|
||||
<source>Page : </source>
|
||||
<translation>Страница:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="25"/>
|
||||
<source>Go To</source>
|
||||
<translation>Перейти к</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="27"/>
|
||||
<source>Cancel</source>
|
||||
<translation>Отмена</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="41"/>
|
||||
<location filename="goto_dialog.cpp" line="76"/>
|
||||
<source>Total pages : </source>
|
||||
<translation>Общее количеств страниц:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="55"/>
|
||||
<source>Go to...</source>
|
||||
<translation>Перейти к...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GoToFlowToolBar</name>
|
||||
<message>
|
||||
<location filename="goto_flow_toolbar.cpp" line="44"/>
|
||||
<source>Page : </source>
|
||||
<translation>Страница:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>HelpAboutDialog</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/help_about_dialog.cpp" line="21"/>
|
||||
<source>About</source>
|
||||
<translation>О программе</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/help_about_dialog.cpp" line="24"/>
|
||||
<source>Help</source>
|
||||
<translation>Справка</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindowViewer</name>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="197"/>
|
||||
<source>&Open</source>
|
||||
<translation>&Открыть</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="198"/>
|
||||
<source>O</source>
|
||||
<translation>О</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="200"/>
|
||||
<source>Open a comic</source>
|
||||
<translation>Открыть комикс</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="203"/>
|
||||
<source>Open Folder</source>
|
||||
<translation>Открыть папку</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="204"/>
|
||||
<source>Ctrl+O</source>
|
||||
<translation>Ctrl+О</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="206"/>
|
||||
<source>Open image folder</source>
|
||||
<translation>Открыть папку с изображениями</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="209"/>
|
||||
<source>Save</source>
|
||||
<translation>Сохранить</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="211"/>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>Save current page</source>
|
||||
<translation>Сохранить нынешнюю страницу</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="215"/>
|
||||
<source>Previous Comic</source>
|
||||
<translation>Предыдущий комикс</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="218"/>
|
||||
<source>Open previous comic</source>
|
||||
<translation>Открыть предыдуший комикс</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="222"/>
|
||||
<source>Next Comic</source>
|
||||
<translation>Следующий комикс</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="225"/>
|
||||
<source>Open next comic</source>
|
||||
<translation>Открыть следующий комикс</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="229"/>
|
||||
<source>&Previous</source>
|
||||
<translation>&Предыдущий</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="233"/>
|
||||
<source>Go to previous page</source>
|
||||
<translation>Перейти к предыдущей странице</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="237"/>
|
||||
<source>&Next</source>
|
||||
<translation>&Следующий</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="241"/>
|
||||
<source>Go to next page</source>
|
||||
<translation>Перейти к следующей странице</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="254"/>
|
||||
<source>Fit Width</source>
|
||||
<translation>Подогнать ширину</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="250"/>
|
||||
<source>Fit image to height</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="245"/>
|
||||
<source>Fit Height</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="259"/>
|
||||
<source>Fit image to width</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="263"/>
|
||||
<source>Rotate image to the left</source>
|
||||
<translation>Повернуть изображение против часовой стрелки</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="264"/>
|
||||
<source>L</source>
|
||||
<translation>L</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="269"/>
|
||||
<source>Rotate image to the right</source>
|
||||
<translation>Повернуть изображение по часовой стрелке</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="270"/>
|
||||
<source>R</source>
|
||||
<translation>R</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="275"/>
|
||||
<source>Double page mode</source>
|
||||
<translation>Двойной режим страницы</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="276"/>
|
||||
<source>Switch to double page mode</source>
|
||||
<translation>Переключить на двойной режим страницы</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="277"/>
|
||||
<source>D</source>
|
||||
<translation>D</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="284"/>
|
||||
<source>Go To</source>
|
||||
<translation>Перейти к</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="285"/>
|
||||
<source>G</source>
|
||||
<translation>G</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="288"/>
|
||||
<source>Go to page ...</source>
|
||||
<translation>Перейти к странице ...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="291"/>
|
||||
<source>Options</source>
|
||||
<translation>Настройки</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="292"/>
|
||||
<source>C</source>
|
||||
<translation>С</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="293"/>
|
||||
<source>YACReader options</source>
|
||||
<translation>Настройки YACReader</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="298"/>
|
||||
<source>Help</source>
|
||||
<translation>Справка</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="299"/>
|
||||
<source>Help, About YACReader</source>
|
||||
<translation>Справка по YACReader</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="304"/>
|
||||
<source>Magnifying glass</source>
|
||||
<translation>Увеличительное стекло</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="305"/>
|
||||
<source>Switch Magnifying glass</source>
|
||||
<translation>Переключиться на увеличительное стекло</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="306"/>
|
||||
<source>Z</source>
|
||||
<translation>Z</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="312"/>
|
||||
<source>Set bookmark</source>
|
||||
<translation>Установить закладку</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="313"/>
|
||||
<source>Set a bookmark on the current page</source>
|
||||
<translation>Установить закладку на текущей странице</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="322"/>
|
||||
<source>Show bookmarks</source>
|
||||
<translation>Показать закладки</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="323"/>
|
||||
<source>Show the bookmarks of the current comic</source>
|
||||
<translation>Показать закладки текущего комикса</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="324"/>
|
||||
<source>M</source>
|
||||
<translation>M</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="329"/>
|
||||
<source>Show keyboard shortcuts</source>
|
||||
<translation>Показать горячие клавиши</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="333"/>
|
||||
<source>Show Info</source>
|
||||
<translation>Показать информацию</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="334"/>
|
||||
<source>I</source>
|
||||
<translation>I</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="339"/>
|
||||
<source>Close</source>
|
||||
<translation>Закрыть</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="344"/>
|
||||
<source>Show Dictionary</source>
|
||||
<translation>Показать словарь</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="351"/>
|
||||
<source>Always on top</source>
|
||||
<translation>Всегда сверху</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="359"/>
|
||||
<source>Show full size</source>
|
||||
<translation>Полноэкранный режим</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="367"/>
|
||||
<source>Show go to flow</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="376"/>
|
||||
<source>&File</source>
|
||||
<translation>&Файл</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="545"/>
|
||||
<source>File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="571"/>
|
||||
<source>Open Comic</source>
|
||||
<translation>Открыть комикс</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="571"/>
|
||||
<source>Comic files</source>
|
||||
<translation>Файлы комикса</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="659"/>
|
||||
<source>Open folder</source>
|
||||
<translation>Открыть папку</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>Image files (*.jpg)</source>
|
||||
<translation>Файлы изображений</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>page_%1.jpg</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="927"/>
|
||||
<source>There is a new version available</source>
|
||||
<translation>Доступно новое обновление</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="928"/>
|
||||
<source>Do you want to download the new version?</source>
|
||||
<translation>Хотите загрузить новую версию ?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="931"/>
|
||||
<source>Remind me in 14 days</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="932"/>
|
||||
<source>Not now</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OptionsDialog</name>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="35"/>
|
||||
<source>"Go to flow" size</source>
|
||||
<translation>Перейти к исходному размеру</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="46"/>
|
||||
<source>My comics path</source>
|
||||
<translation>Путь комикса</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="56"/>
|
||||
<source>Page width stretch</source>
|
||||
<translation>Растянуть страницу в ширину</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="77"/>
|
||||
<source>Background color</source>
|
||||
<translation>Фоновый цвет</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="80"/>
|
||||
<source>Choose</source>
|
||||
<translation>Выбрать</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="108"/>
|
||||
<source>Restart is needed</source>
|
||||
<translation>Необходима перезагрузка</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="121"/>
|
||||
<source>Brightness</source>
|
||||
<translation>Яркость</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="122"/>
|
||||
<source>Contrast</source>
|
||||
<translation>Контраст</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="123"/>
|
||||
<source>Gamma</source>
|
||||
<translation>Гамма</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="127"/>
|
||||
<source>Reset</source>
|
||||
<translation>Перезапуск</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="133"/>
|
||||
<source>Image options</source>
|
||||
<translation>Настройки изображения</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="143"/>
|
||||
<source>General</source>
|
||||
<translation>Общее</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="144"/>
|
||||
<source>Page Flow</source>
|
||||
<translation>Страница потока</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="145"/>
|
||||
<source>Image adjustment</source>
|
||||
<translation>Регулировки изображения</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="158"/>
|
||||
<source>Options</source>
|
||||
<translation>Настройки</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="165"/>
|
||||
<source>Comics directory</source>
|
||||
<translation>Каталог комиксов</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../common/exit_check.cpp" line="14"/>
|
||||
<source>7z lib not found</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/exit_check.cpp" line="14"/>
|
||||
<source>unable to load 7z lib from ./utils</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ShortcutsDialog</name>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="16"/>
|
||||
<source>YACReader keyboard shortcuts</source>
|
||||
<translation>Клавиатурные комбинации YACReader</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="20"/>
|
||||
<source>Close</source>
|
||||
<translation>Закрыть</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="66"/>
|
||||
<source>Keyboard Shortcuts</source>
|
||||
<translation>Клавиатурные комбинации</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Viewer</name>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="42"/>
|
||||
<location filename="viewer.cpp" line="693"/>
|
||||
<source>Press 'O' to open comic.</source>
|
||||
<translation>Нажмите "O" , чтобы открыть комикс.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="217"/>
|
||||
<source>Not found</source>
|
||||
<translation>Не найдено</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="217"/>
|
||||
<source>Comic not found</source>
|
||||
<translation>Комикс не найден</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="223"/>
|
||||
<source>Error opening comic</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="229"/>
|
||||
<source>CRC Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="706"/>
|
||||
<source>Loading...please wait!</source>
|
||||
<translation>Загрузка ... Пожалуйста подождите!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="717"/>
|
||||
<source>Page not available!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="853"/>
|
||||
<source>Cover!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="870"/>
|
||||
<source>Last page!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFieldEdit</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="9"/>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="29"/>
|
||||
<source>Click to overwrite</source>
|
||||
<translation>Нажмите, чтобы переписать</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="11"/>
|
||||
<source>Restore to default</source>
|
||||
<translation>Вернуть начальные установки</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFieldPlainTextEdit</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="9"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="20"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="45"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="51"/>
|
||||
<source>Click to overwrite</source>
|
||||
<translation>Нажмите, чтобы переписать</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="10"/>
|
||||
<source>Restore to default</source>
|
||||
<translation>Вернуть начальные установки</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFlowConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="13"/>
|
||||
<source>How to show covers:</source>
|
||||
<translation>Как показать обложки:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="15"/>
|
||||
<source>CoverFlow look</source>
|
||||
<translation>Предосмотр обложки</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="16"/>
|
||||
<source>Stripe look</source>
|
||||
<translation>Вид полосами</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="17"/>
|
||||
<source>Overlapped Stripe look</source>
|
||||
<translation>Вид перекрывающимися полосами</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderGLFlowConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="19"/>
|
||||
<source>Presets:</source>
|
||||
<translation>Предустановки:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="21"/>
|
||||
<source>Classic look</source>
|
||||
<translation>Классический вид</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="24"/>
|
||||
<source>Stripe look</source>
|
||||
<translation>Вид полосами</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="27"/>
|
||||
<source>Overlapped Stripe look</source>
|
||||
<translation>Вид перекрывающимися полосами</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="30"/>
|
||||
<source>Modern look</source>
|
||||
<translation>Современный вид</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="33"/>
|
||||
<source>Roulette look</source>
|
||||
<translation>Вид рулеткой</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="77"/>
|
||||
<source>Show advanced settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="86"/>
|
||||
<source>Custom:</source>
|
||||
<translation>Пользовательский:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="89"/>
|
||||
<source>View angle</source>
|
||||
<translation>Угол зрения</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="95"/>
|
||||
<source>Position</source>
|
||||
<translation>Позиция</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="101"/>
|
||||
<source>Cover gap</source>
|
||||
<translation>Осветить разрыв</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="107"/>
|
||||
<source>Central gap</source>
|
||||
<translation>Сфокусировать разрыв</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="113"/>
|
||||
<source>Zoom</source>
|
||||
<translation>Масштабировать</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="119"/>
|
||||
<source>Y offset</source>
|
||||
<translation>Смещение по Y</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="125"/>
|
||||
<source>Z offset</source>
|
||||
<translation>Смещение по Z</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="131"/>
|
||||
<source>Cover Angle</source>
|
||||
<translation>Охватить угол</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="137"/>
|
||||
<source>Visibility</source>
|
||||
<translation>Прозрачность</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="143"/>
|
||||
<source>Light</source>
|
||||
<translation>Осветить</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="149"/>
|
||||
<source>Max angle</source>
|
||||
<translation>Максимальный угол</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="181"/>
|
||||
<source>Low Performance</source>
|
||||
<translation>Минимальная производительность</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="183"/>
|
||||
<source>High Performance</source>
|
||||
<translation>Максимальная производительность</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="194"/>
|
||||
<source>Use VSync (improve the image quality in fullscreen mode, worse performance)</source>
|
||||
<translation>Использовать VSync (повысить формат изображения в полноэкранном режиме , хуже производительность)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="202"/>
|
||||
<source>Performance:</source>
|
||||
<translation>Производительность:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderOptionsDialog</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="21"/>
|
||||
<source>Save</source>
|
||||
<translation>Сохранить</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="22"/>
|
||||
<source>Cancel</source>
|
||||
<translation>Отмена</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="30"/>
|
||||
<source>Use hardware acceleration (restart needed)</source>
|
||||
<translation>Использовать аппаратное ускорение (Требуется перезагрузка)</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderTranslator</name>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="62"/>
|
||||
<source>YACReader translator</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="117"/>
|
||||
<location filename="translator.cpp" line="210"/>
|
||||
<source>Translation</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="140"/>
|
||||
<source>clear</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="219"/>
|
||||
<source>Service not available</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
791
YACReader/yacreader_source.ts
Normal file
791
YACReader/yacreader_source.ts
Normal file
@ -0,0 +1,791 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1">
|
||||
<context>
|
||||
<name>BookmarksDialog</name>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="25"/>
|
||||
<source>Lastest Page</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="73"/>
|
||||
<source>Close</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="83"/>
|
||||
<source>Click on any image to go to the bookmark</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bookmarks_dialog.cpp" line="107"/>
|
||||
<location filename="bookmarks_dialog.cpp" line="131"/>
|
||||
<source>Loading...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FileComic</name>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="302"/>
|
||||
<source>CRC error on page (%1): some of the pages will not be displayed correctly</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="309"/>
|
||||
<source>Unknown error opening the file</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="418"/>
|
||||
<source>7z not found</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/comic.cpp" line="424"/>
|
||||
<source>Format not supported</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GoToDialog</name>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="17"/>
|
||||
<source>Page : </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="25"/>
|
||||
<source>Go To</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="27"/>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="41"/>
|
||||
<location filename="goto_dialog.cpp" line="76"/>
|
||||
<source>Total pages : </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="goto_dialog.cpp" line="55"/>
|
||||
<source>Go to...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GoToFlowToolBar</name>
|
||||
<message>
|
||||
<location filename="goto_flow_toolbar.cpp" line="44"/>
|
||||
<source>Page : </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>HelpAboutDialog</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/help_about_dialog.cpp" line="21"/>
|
||||
<source>About</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/help_about_dialog.cpp" line="24"/>
|
||||
<source>Help</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindowViewer</name>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="197"/>
|
||||
<source>&Open</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="198"/>
|
||||
<source>O</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="200"/>
|
||||
<source>Open a comic</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="203"/>
|
||||
<source>Open Folder</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="204"/>
|
||||
<source>Ctrl+O</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="206"/>
|
||||
<source>Open image folder</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="209"/>
|
||||
<source>Save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="211"/>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>Save current page</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="215"/>
|
||||
<source>Previous Comic</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="218"/>
|
||||
<source>Open previous comic</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="222"/>
|
||||
<source>Next Comic</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="225"/>
|
||||
<source>Open next comic</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="229"/>
|
||||
<source>&Previous</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="233"/>
|
||||
<source>Go to previous page</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="237"/>
|
||||
<source>&Next</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="241"/>
|
||||
<source>Go to next page</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="254"/>
|
||||
<source>Fit Width</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="250"/>
|
||||
<source>Fit image to height</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="245"/>
|
||||
<source>Fit Height</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="259"/>
|
||||
<source>Fit image to width</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="263"/>
|
||||
<source>Rotate image to the left</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="264"/>
|
||||
<source>L</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="269"/>
|
||||
<source>Rotate image to the right</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="270"/>
|
||||
<source>R</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="275"/>
|
||||
<source>Double page mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="276"/>
|
||||
<source>Switch to double page mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="277"/>
|
||||
<source>D</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="284"/>
|
||||
<source>Go To</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="285"/>
|
||||
<source>G</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="288"/>
|
||||
<source>Go to page ...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="291"/>
|
||||
<source>Options</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="292"/>
|
||||
<source>C</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="293"/>
|
||||
<source>YACReader options</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="298"/>
|
||||
<source>Help</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="299"/>
|
||||
<source>Help, About YACReader</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="304"/>
|
||||
<source>Magnifying glass</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="305"/>
|
||||
<source>Switch Magnifying glass</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="306"/>
|
||||
<source>Z</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="312"/>
|
||||
<source>Set bookmark</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="313"/>
|
||||
<source>Set a bookmark on the current page</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="322"/>
|
||||
<source>Show bookmarks</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="323"/>
|
||||
<source>Show the bookmarks of the current comic</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="324"/>
|
||||
<source>M</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="329"/>
|
||||
<source>Show keyboard shortcuts</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="333"/>
|
||||
<source>Show Info</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="334"/>
|
||||
<source>I</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="339"/>
|
||||
<source>Close</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="344"/>
|
||||
<source>Show Dictionary</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="351"/>
|
||||
<source>Always on top</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="359"/>
|
||||
<source>Show full size</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="367"/>
|
||||
<source>Show go to flow</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="376"/>
|
||||
<source>&File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="545"/>
|
||||
<source>File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="571"/>
|
||||
<source>Open Comic</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="571"/>
|
||||
<source>Comic files</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="659"/>
|
||||
<source>Open folder</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>Image files (*.jpg)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="715"/>
|
||||
<source>page_%1.jpg</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="927"/>
|
||||
<source>There is a new version available</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="928"/>
|
||||
<source>Do you want to download the new version?</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="931"/>
|
||||
<source>Remind me in 14 days</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_viewer.cpp" line="932"/>
|
||||
<source>Not now</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OptionsDialog</name>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="35"/>
|
||||
<source>"Go to flow" size</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="46"/>
|
||||
<source>My comics path</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="56"/>
|
||||
<source>Page width stretch</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="77"/>
|
||||
<source>Background color</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="80"/>
|
||||
<source>Choose</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="108"/>
|
||||
<source>Restart is needed</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="121"/>
|
||||
<source>Brightness</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="122"/>
|
||||
<source>Contrast</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="123"/>
|
||||
<source>Gamma</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="127"/>
|
||||
<source>Reset</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="133"/>
|
||||
<source>Image options</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="143"/>
|
||||
<source>General</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="144"/>
|
||||
<source>Page Flow</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="145"/>
|
||||
<source>Image adjustment</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="158"/>
|
||||
<source>Options</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="options_dialog.cpp" line="165"/>
|
||||
<source>Comics directory</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../common/exit_check.cpp" line="14"/>
|
||||
<source>7z lib not found</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../common/exit_check.cpp" line="14"/>
|
||||
<source>unable to load 7z lib from ./utils</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ShortcutsDialog</name>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="16"/>
|
||||
<source>YACReader keyboard shortcuts</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="20"/>
|
||||
<source>Close</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="shortcuts_dialog.cpp" line="66"/>
|
||||
<source>Keyboard Shortcuts</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Viewer</name>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="42"/>
|
||||
<location filename="viewer.cpp" line="693"/>
|
||||
<source>Press 'O' to open comic.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="217"/>
|
||||
<source>Not found</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="217"/>
|
||||
<source>Comic not found</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="223"/>
|
||||
<source>Error opening comic</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="229"/>
|
||||
<source>CRC Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="706"/>
|
||||
<source>Loading...please wait!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="717"/>
|
||||
<source>Page not available!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="853"/>
|
||||
<source>Cover!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="viewer.cpp" line="870"/>
|
||||
<source>Last page!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFieldEdit</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="9"/>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="29"/>
|
||||
<source>Click to overwrite</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_edit.cpp" line="11"/>
|
||||
<source>Restore to default</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFieldPlainTextEdit</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="9"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="20"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="45"/>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="51"/>
|
||||
<source>Click to overwrite</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_field_plain_text_edit.cpp" line="10"/>
|
||||
<source>Restore to default</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFlowConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="13"/>
|
||||
<source>How to show covers:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="15"/>
|
||||
<source>CoverFlow look</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="16"/>
|
||||
<source>Stripe look</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_flow_config_widget.cpp" line="17"/>
|
||||
<source>Overlapped Stripe look</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderGLFlowConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="19"/>
|
||||
<source>Presets:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="21"/>
|
||||
<source>Classic look</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="24"/>
|
||||
<source>Stripe look</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="27"/>
|
||||
<source>Overlapped Stripe look</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="30"/>
|
||||
<source>Modern look</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="33"/>
|
||||
<source>Roulette look</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="77"/>
|
||||
<source>Show advanced settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="86"/>
|
||||
<source>Custom:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="89"/>
|
||||
<source>View angle</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="95"/>
|
||||
<source>Position</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="101"/>
|
||||
<source>Cover gap</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="107"/>
|
||||
<source>Central gap</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="113"/>
|
||||
<source>Zoom</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="119"/>
|
||||
<source>Y offset</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="125"/>
|
||||
<source>Z offset</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="131"/>
|
||||
<source>Cover Angle</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="137"/>
|
||||
<source>Visibility</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="143"/>
|
||||
<source>Light</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="149"/>
|
||||
<source>Max angle</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="181"/>
|
||||
<source>Low Performance</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="183"/>
|
||||
<source>High Performance</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="194"/>
|
||||
<source>Use VSync (improve the image quality in fullscreen mode, worse performance)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_gl_flow_config_widget.cpp" line="202"/>
|
||||
<source>Performance:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderOptionsDialog</name>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="21"/>
|
||||
<source>Save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="22"/>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../custom_widgets/yacreader_options_dialog.cpp" line="30"/>
|
||||
<source>Use hardware acceleration (restart needed)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderTranslator</name>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="62"/>
|
||||
<source>YACReader translator</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="117"/>
|
||||
<location filename="translator.cpp" line="210"/>
|
||||
<source>Translation</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="140"/>
|
||||
<source>clear</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="translator.cpp" line="219"/>
|
||||
<source>Service not available</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
725
YACReader/yacreader_tr.ts
Normal file
725
YACReader/yacreader_tr.ts
Normal file
@ -0,0 +1,725 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="tr_TR">
|
||||
<context>
|
||||
<name>BookmarksDialog</name>
|
||||
<message>
|
||||
<source>Close</source>
|
||||
<translation>Kapat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Loading...</source>
|
||||
<translation>Yükleniyor...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Click on any image to go to the bookmark</source>
|
||||
<translation>Yer imine git</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Lastest Page</source>
|
||||
<translation>Son Sayfa</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Configuration</name>
|
||||
<message>
|
||||
<source>There was a problem saving YACReader configuration. Please, check if you have enough permissions in the YACReader root folder.</source>
|
||||
<translation type="vanished">Yeni ayarlar kaydedilirken bir problem çıktı. Lütfen YACReader dosyasını açın.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Saving config file....</source>
|
||||
<translation type="vanished">Config dosyası kaydediliyor...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FileComic</name>
|
||||
<message>
|
||||
<source>File not found or not images in file</source>
|
||||
<translation type="vanished">Dosya bulunamadı yada dosyada resim yok</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>7z not found</source>
|
||||
<translation>7z bulunamadı</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Comic not found</source>
|
||||
<translation type="vanished">Çizgi roman bulunamadı</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Not found</source>
|
||||
<translation type="vanished">Bulunamadı</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>File error</source>
|
||||
<translation type="vanished">Dosya hatası</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>7z problem</source>
|
||||
<translation type="vanished">7z Problemli</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>7z reading</source>
|
||||
<translation type="vanished">7z Okunuyor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>7z crashed.</source>
|
||||
<translation type="vanished">7z Bozulmuş.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>problem reading from 7z</source>
|
||||
<translation type="vanished">7z Okunurken Problem Oluştu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>7z crashed</source>
|
||||
<translation type="vanished">7z Bozulması</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Unknown error 7z</source>
|
||||
<translation type="vanished">Bilinmeyen 7z hatası</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>7z wasn't found in your PATH.</source>
|
||||
<translation type="vanished">7z Yolu Bulunamadı.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>CRC error on page (%1): some of the pages will not be displayed correctly</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Unknown error opening the file</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Format not supported</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GoToDialog</name>
|
||||
<message>
|
||||
<source>Go To</source>
|
||||
<translation>Git</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Go to...</source>
|
||||
<translation>Git...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Total pages : </source>
|
||||
<translation>Toplam sayfa:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cancel</source>
|
||||
<translation>Vazgeç</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Page : </source>
|
||||
<translation>Sayfa :</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GoToFlowToolBar</name>
|
||||
<message>
|
||||
<source>Page : </source>
|
||||
<translation>Sayfa : </translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>HelpAboutDialog</name>
|
||||
<message>
|
||||
<source>Help</source>
|
||||
<translation>Yardım</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>About</source>
|
||||
<translation>Hakkında</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindowViewer</name>
|
||||
<message>
|
||||
<source>C</source>
|
||||
<translation>C</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>D</source>
|
||||
<translation>D</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>G</source>
|
||||
<translation>G</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>I</source>
|
||||
<translation>I</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>L</source>
|
||||
<translation>L</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>M</source>
|
||||
<translation>M</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>O</source>
|
||||
<translation>O</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>R</source>
|
||||
<translation>R</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Z</source>
|
||||
<translation>Z</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Help</source>
|
||||
<translation>Yardım</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Save</source>
|
||||
<translation>Kaydet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&File</source>
|
||||
<translation>&Dosya</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Next</source>
|
||||
<translation>&İleri</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Open</source>
|
||||
<translation>&Aç</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Close</source>
|
||||
<translation>Kapat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Open Comic</source>
|
||||
<translation>Çizgi Romanı Aç</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Go To</source>
|
||||
<translation>Git</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Open image folder</source>
|
||||
<translation>Resim dosyasınıaç</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set bookmark</source>
|
||||
<translation>Yer imi yap</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>page_%1.jpg</source>
|
||||
<translation>sayfa_%1.jpg</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Switch to double page mode</source>
|
||||
<translation>Çift sayfa moduna geç</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Save current page</source>
|
||||
<translation>Geçerli sayfayı kaydet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Double page mode</source>
|
||||
<translation>Çift sayfa modu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Switch Magnifying glass</source>
|
||||
<translation>Büyüteç</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Open Folder</source>
|
||||
<translation>Dosyayı Aç</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Ctrl+O</source>
|
||||
<translation>Ctrl+O</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Comic files</source>
|
||||
<translation>Çizgi Roman Dosyaları</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Go to previous page</source>
|
||||
<translation>Önceki sayfaya dön</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Open a comic</source>
|
||||
<translation>Çizgi romanı aç</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Image files (*.jpg)</source>
|
||||
<translation>Resim dosyaları (*.jpg)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Next Comic</source>
|
||||
<translation>Sırada ki çizgi roman</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Saving error log file....</source>
|
||||
<translation type="vanished">Hata dosyasını kaydet...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Fit Width</source>
|
||||
<translation>Uygun Genişlik</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Ayarlar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show Info</source>
|
||||
<translation>Bilgiyi göster</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Open folder</source>
|
||||
<translation>Dosyayı aç</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Go to page ...</source>
|
||||
<translation>Sayfata git...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Fit image to width</source>
|
||||
<translation>Görüntüyü sığdır</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Previous</source>
|
||||
<translation>&Geri</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Go to next page</source>
|
||||
<translation>Sonra ki sayfaya geç</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show keyboard shortcuts</source>
|
||||
<translation>Kılavye kısayollarını göster</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Open next comic</source>
|
||||
<translation>Sıradaki çizgi romanı aç</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>There is a new version available</source>
|
||||
<translation>Yeni versiyon mevcut</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show bookmarks</source>
|
||||
<translation>Yer imlerini göster</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Open previous comic</source>
|
||||
<translation>Önceki çizgi romanı aç</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Rotate image to the left</source>
|
||||
<translation>Sayfayı sola yatır</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Fit image to height</source>
|
||||
<translation>Uygun yüksekliğe getir</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show the bookmarks of the current comic</source>
|
||||
<translation>Bu çizgi romanın yer imlerini göster</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show Dictionary</source>
|
||||
<translation>Sözlüğü göster</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>YACReader options</source>
|
||||
<translation>YACReader ayarları</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Help, About YACReader</source>
|
||||
<translation>YACReader hakkında yardım ve bilgi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show go to flow</source>
|
||||
<translation>Akışı göster</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Previous Comic</source>
|
||||
<translation>Önce ki çizgi roman</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show full size</source>
|
||||
<translation>Tam erken</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Magnifying glass</source>
|
||||
<translation>Büyüteç</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set a bookmark on the current page</source>
|
||||
<translation>Sayfayı yer imi olarak ayarla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Do you want to download the new version?</source>
|
||||
<translation>Yeni versiyonu indirmek ister misin ?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>There was a problem saving YACReader error log file. Please, check if you have enough permissions in the YACReader root folder.</source>
|
||||
<translation type="vanished">Kaydederken bir problem çıktı YACReader hata kayıt dosyası. Lütfen YACReader root dosyasını ziyaret edin.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Rotate image to the right</source>
|
||||
<translation>Sayfayı sağa yator</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always on top</source>
|
||||
<translation>Her zaman üstte</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Remind me in 14 days</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Not now</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Fit Height</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OptionsDialog</name>
|
||||
<message>
|
||||
<source>Gamma</source>
|
||||
<translation>Gama</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Reset</source>
|
||||
<translation>Yeniden başlat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>My comics path</source>
|
||||
<translation>Çizgi Romanlarım</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Image adjustment</source>
|
||||
<translation>Resim ayarları</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Page width stretch</source>
|
||||
<translation>Sayfayı uzat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>"Go to flow" size</source>
|
||||
<translation>Akış görünümüne git</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Choose</source>
|
||||
<translation>Seç</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Image options</source>
|
||||
<translation>Sayfa ayarları</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Contrast</source>
|
||||
<translation>Kontrast</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Ayarlar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Comics directory</source>
|
||||
<translation>Çizgi roman konumu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Background color</source>
|
||||
<translation>Arka plan rengi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Page Flow</source>
|
||||
<translation>Sayfa akışı</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>General</source>
|
||||
<translation>Genel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Brightness</source>
|
||||
<translation>Parlaklık</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Restart is needed</source>
|
||||
<translation>Yeniden başlatılmalı</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<source>7z lib not found</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>unable to load 7z lib from ./utils</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ShortcutsDialog</name>
|
||||
<message>
|
||||
<source>Close</source>
|
||||
<translation>Kapat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>YACReader keyboard shortcuts</source>
|
||||
<translation>YACReader klavye kısayolları</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Keyboard Shortcuts</source>
|
||||
<translation>Kılavye Kısayolları</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Viewer</name>
|
||||
<message>
|
||||
<source>Press 'O' to open comic.</source>
|
||||
<translation>'O'ya basarak aç.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cover!</source>
|
||||
<translation>Kapak!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Comic not found</source>
|
||||
<translation>Çizgi roman bulunamadı</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Not found</source>
|
||||
<translation>Bulunamadı</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Last page!</source>
|
||||
<translation>Son sayfa!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Loading...please wait!</source>
|
||||
<translation>Yükleniyor... lütfen bekleyin!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Error opening comic</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>CRC Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Page not available!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderDeletingProgress</name>
|
||||
<message>
|
||||
<source>cancel</source>
|
||||
<translation type="vanished">vazgeç</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Please wait, deleting in progress...</source>
|
||||
<translation type="vanished">Lütfen bekle silme işlemi gerçekleştiriliyor...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFieldEdit</name>
|
||||
<message>
|
||||
<source>Restore to default</source>
|
||||
<translation>Varsayılana ayarla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Click to overwrite</source>
|
||||
<translation>Üzerine yazmak için tıkla</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFieldPlainTextEdit</name>
|
||||
<message>
|
||||
<source>Restore to default</source>
|
||||
<translation>Varsayılana ayarla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Click to overwrite</source>
|
||||
<translation>Üstüne yazmak için tıkla</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderFlowConfigWidget</name>
|
||||
<message>
|
||||
<source>CoverFlow look</source>
|
||||
<translation>Kapak akışı görünümü</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>How to show covers:</source>
|
||||
<translation>Kapaklar nasıl gözüksün:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Stripe look</source>
|
||||
<translation>Şerit görünüm</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Overlapped Stripe look</source>
|
||||
<translation>Çakışan şerit görünüm</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderGLFlowConfigWidget</name>
|
||||
<message>
|
||||
<source>Zoom</source>
|
||||
<translation>Yakınlaş</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Light</source>
|
||||
<translation>Işık</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show advanced settings</source>
|
||||
<translation>Daha fazla ayar göster</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Roulette look</source>
|
||||
<translation>Rulet görünüm</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cover Angle</source>
|
||||
<translation>Kapak Açısı</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Stripe look</source>
|
||||
<translation>Strip görünüm</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Position</source>
|
||||
<translation>Pozisyon</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Z offset</source>
|
||||
<translation>Z dengesi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Y offset</source>
|
||||
<translation>Y dengesi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Central gap</source>
|
||||
<translation>Boş merkaz</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Presets:</source>
|
||||
<translation>Hazırlayan:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Overlapped Stripe look</source>
|
||||
<translation>Çakışan şerit görünüm</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Modern look</source>
|
||||
<translation>Modern görünüm</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>View angle</source>
|
||||
<translation>Bakış açısı</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Max angle</source>
|
||||
<translation>Maksimum açı</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Custom:</source>
|
||||
<translation>Kişisel:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Classic look</source>
|
||||
<translation>Klasik görünüm</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cover gap</source>
|
||||
<translation>Kapak </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>High Performance</source>
|
||||
<translation>Yüksek performans</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Performance:</source>
|
||||
<translation>Performans:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Use VSync (improve the image quality in fullscreen mode, worse performance)</source>
|
||||
<translation>VSync kullan</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Visibility</source>
|
||||
<translation>Görünülebilirlik</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Low Performance</source>
|
||||
<translation>Düşük Performans</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderOptionsDialog</name>
|
||||
<message>
|
||||
<source>Save</source>
|
||||
<translation>Kaydet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Use hardware acceleration (restart needed)</source>
|
||||
<translation>Yüksek donanımlı kullan (yeniden başlatmak gerekli)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cancel</source>
|
||||
<translation>Vazgeç</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderSideBar</name>
|
||||
<message>
|
||||
<source>Search folders and comics</source>
|
||||
<translation type="vanished">Dosyaları ve çizgi romanları ara</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>LIBRARIES</source>
|
||||
<translation type="vanished">KÜTÜPHANELER</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>FOLDERS</source>
|
||||
<translation type="vanished">DOSYALAR</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>YACReaderTranslator</name>
|
||||
<message>
|
||||
<source>YACReader translator</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Translation</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>clear</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Service not available</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
48
YACReaderLibrary.1
Normal file
48
YACReaderLibrary.1
Normal file
@ -0,0 +1,48 @@
|
||||
.\" Manpage for YACReaderLibrary.
|
||||
.\" Contact yoann.gauthier9@gmail.com to correct errors or typos.
|
||||
.TH man 1 "28 September 2014" "2.0" "YACReaderLibrary man page"
|
||||
.SH NAME
|
||||
YACReaderLibrary \- launch YACReaderLibrary application.
|
||||
.SH SYNOPSIS
|
||||
YACReaderLibrary
|
||||
.br
|
||||
YACReaderLibrary [\fB\-h\fR | \fB\-\-help\fR]
|
||||
.br
|
||||
YACReaderLibrary [\fB\-v\fR | \fB\-\-version\fR]
|
||||
|
||||
.SH DESCRIPTION
|
||||
YACReaderLibrary an application for browsing and managing your comic collections with various smooth transition effects.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
Without options
|
||||
Start YACReaderLibrary.
|
||||
.TP
|
||||
.BR \-h, \-\- help
|
||||
Display help text and exit.
|
||||
.TP
|
||||
.BR \-v, \-\- version
|
||||
Display version information and exit.
|
||||
.SH FEATURES
|
||||
- Create, manage and browse your comics collections using beautiful, customizable and smooth "comic flow" transitions.
|
||||
.TP
|
||||
- Comic Vine support.
|
||||
.TP
|
||||
- Easily organization of your comics in libraries.
|
||||
.TP
|
||||
- Find your comics quickly using the built-in search engine.
|
||||
.TP
|
||||
- Open your comics with YACReader from YACReaderLibrary.
|
||||
.TP
|
||||
- Enjoy your comics covers with the fullscreen mode.
|
||||
.TP
|
||||
- Mark your comics as read/unread and track your reading progress.
|
||||
.SH CONTACTS
|
||||
To report bug or contact developpers, send a mail to :
|
||||
.RS 3
|
||||
.TP
|
||||
\fBinfo@yacreader.com\fR : for general information or suggestions about YACReader.
|
||||
.TP
|
||||
\fBsupport@yacreader.com\fR : for problems with YACReader or bugs detected.
|
||||
.RE
|
||||
.SH AUTHOR
|
||||
Luis Ángel San Martín Rodríguez (luisangelsm@gmail.com)
|
||||
13
YACReaderLibrary.desktop
Normal file
13
YACReaderLibrary.desktop
Normal file
@ -0,0 +1,13 @@
|
||||
[Desktop Entry]
|
||||
Name=YACReader Library
|
||||
GenericName=Yet Another Comic Reader - Library
|
||||
Comment=A comic library management application with server mode.
|
||||
Exec=YACReaderLibrary %f
|
||||
Icon=/usr/share/yacreader/iconLibrary.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
StartupNotify=true
|
||||
Categories=Graphics;Viewer;
|
||||
MimeType=
|
||||
Keywords=comic;library;server;
|
||||
X-Desktop-File-Install-Version=0.22
|
||||
BIN
YACReaderLibrary/YACReaderLibrary.icns
Normal file
BIN
YACReaderLibrary/YACReaderLibrary.icns
Normal file
Binary file not shown.
290
YACReaderLibrary/YACReaderLibrary.pro
Normal file
290
YACReaderLibrary/YACReaderLibrary.pro
Normal file
@ -0,0 +1,290 @@
|
||||
######################################################################
|
||||
# Automatically generated by qmake (2.01a) dom 12. oct 20:47:48 2008
|
||||
######################################################################
|
||||
|
||||
TEMPLATE = app
|
||||
TARGET = YACReaderLibrary
|
||||
DEPENDPATH += .
|
||||
INCLUDEPATH += .
|
||||
INCLUDEPATH += ../common \
|
||||
./server \
|
||||
./db \
|
||||
../custom_widgets \
|
||||
./comic_vine \
|
||||
./comic_vine/model
|
||||
|
||||
DEFINES += SERVER_RELEASE NOMINMAX YACREADER_LIBRARY
|
||||
|
||||
win32 {
|
||||
|
||||
LIBS += -L../dependencies/poppler/lib -loleaut32 -lole32 -lshell32
|
||||
|
||||
isEqual(QT_MAJOR_VERSION, 5) {
|
||||
LIBS += -lpoppler-qt5
|
||||
INCLUDEPATH += ../dependencies/poppler/include/qt5
|
||||
}
|
||||
else {
|
||||
LIBS += -lpoppler-qt4
|
||||
INCLUDEPATH += ../dependencies/poppler/include/qt4
|
||||
}
|
||||
|
||||
#QMAKE_CXXFLAGS_RELEASE += /MP /Ob2 /Oi /Ot /GT /GL
|
||||
#QMAKE_LFLAGS_RELEASE += /LTCG
|
||||
CONFIG -= embed_manifest_exe
|
||||
}
|
||||
|
||||
unix:!macx{
|
||||
|
||||
isEqual(QT_MAJOR_VERSION, 5) {
|
||||
INCLUDEPATH += /usr/include/poppler/qt5
|
||||
LIBS += -L/usr/lib -lpoppler-qt5
|
||||
}
|
||||
else {
|
||||
INCLUDEPATH += /usr/include/poppler/qt4
|
||||
LIBS += -L/usr/lib -lpoppler-qt4
|
||||
}
|
||||
LIBS += -lGLU
|
||||
}
|
||||
|
||||
macx{
|
||||
#INCLUDEPATH += "/Volumes/Mac OS X Lion/usr/X11/include"
|
||||
#isEqual(QT_MAJOR_VERSION, 5) {
|
||||
#INCLUDEPATH += /usr/local/include/poppler/qt5
|
||||
#LIBS += -L/usr/local/lib -lpoppler-qt5
|
||||
#}
|
||||
#else {
|
||||
#INCLUDEPATH += /usr/local/include/poppler/qt4
|
||||
#LIBS += -L/usr/local/lib -lpoppler-qt4
|
||||
#}
|
||||
#QT += macextras
|
||||
|
||||
LIBS += -framework Foundation -framework ApplicationServices -framework AppKit
|
||||
|
||||
OBJECTIVE_SOURCES += $$PWD/../common/pdf_comic.mm
|
||||
HEADERS += $$PWD/../common/pdf_comic.h
|
||||
CONFIG += objective_c
|
||||
QT += macextras gui-private
|
||||
}
|
||||
|
||||
unix{
|
||||
QMAKE_CXXFLAGS += -std=c++11
|
||||
}
|
||||
|
||||
#CONFIG += release
|
||||
CONFIG -= flat
|
||||
QT += sql network opengl script
|
||||
|
||||
# Input
|
||||
HEADERS += comic_flow.h \
|
||||
create_library_dialog.h \
|
||||
library_creator.h \
|
||||
library_window.h \
|
||||
add_library_dialog.h \
|
||||
rename_library_dialog.h \
|
||||
properties_dialog.h \
|
||||
options_dialog.h \
|
||||
export_library_dialog.h \
|
||||
import_library_dialog.h \
|
||||
package_manager.h \
|
||||
bundle_creator.h \
|
||||
export_comics_info_dialog.h \
|
||||
import_comics_info_dialog.h \
|
||||
server_config_dialog.h \
|
||||
comic_flow_widget.h \
|
||||
db_helper.h \
|
||||
./db/data_base_management.h \
|
||||
./db/folder_item.h \
|
||||
./db/folder_model.h \
|
||||
./db/comic_model.h \
|
||||
./db/comic_item.h \
|
||||
../common/comic_db.h \
|
||||
../common/folder.h \
|
||||
../common/library_item.h \
|
||||
../common/comic.h \
|
||||
../common/bookmarks.h \
|
||||
../common/pictureflow.h \
|
||||
../common/custom_widgets.h \
|
||||
../common/qnaturalsorting.h \
|
||||
../common/yacreader_flow_gl.h \
|
||||
../common/yacreader_global.h \
|
||||
../common/onstart_flow_selection_dialog.h \
|
||||
no_libraries_widget.h \
|
||||
import_widget.h \
|
||||
yacreader_local_server.h \
|
||||
yacreader_main_toolbar.h \
|
||||
comics_remover.h \
|
||||
../common/http_worker.h \
|
||||
yacreader_libraries.h \
|
||||
../common/exit_check.h \
|
||||
comics_view.h \
|
||||
classic_comics_view.h \
|
||||
empty_folder_widget.h \
|
||||
no_search_results_widget.h \
|
||||
comic_files_manager.h \
|
||||
db/reading_list_model.h \
|
||||
db/reading_list_item.h \
|
||||
yacreader_folders_view.h \
|
||||
yacreader_reading_lists_view.h \
|
||||
add_label_dialog.h
|
||||
|
||||
|
||||
SOURCES += comic_flow.cpp \
|
||||
create_library_dialog.cpp \
|
||||
library_creator.cpp \
|
||||
library_window.cpp \
|
||||
main.cpp \
|
||||
add_library_dialog.cpp \
|
||||
rename_library_dialog.cpp \
|
||||
properties_dialog.cpp \
|
||||
options_dialog.cpp \
|
||||
export_library_dialog.cpp \
|
||||
import_library_dialog.cpp \
|
||||
package_manager.cpp \
|
||||
bundle_creator.cpp \
|
||||
export_comics_info_dialog.cpp \
|
||||
import_comics_info_dialog.cpp \
|
||||
server_config_dialog.cpp \
|
||||
comic_flow_widget.cpp \
|
||||
db_helper.cpp \
|
||||
./db/data_base_management.cpp \
|
||||
./db/folder_item.cpp \
|
||||
./db/folder_model.cpp \
|
||||
./db/comic_model.cpp \
|
||||
./db/comic_item.cpp \
|
||||
../common/comic_db.cpp \
|
||||
../common/folder.cpp \
|
||||
../common/library_item.cpp \
|
||||
../common/comic.cpp \
|
||||
../common/bookmarks.cpp \
|
||||
../common/pictureflow.cpp \
|
||||
../common/custom_widgets.cpp \
|
||||
../common/qnaturalsorting.cpp \
|
||||
../common/yacreader_flow_gl.cpp \
|
||||
../common/onstart_flow_selection_dialog.cpp \
|
||||
no_libraries_widget.cpp \
|
||||
import_widget.cpp \
|
||||
yacreader_local_server.cpp \
|
||||
yacreader_main_toolbar.cpp \
|
||||
comics_remover.cpp \
|
||||
../common/http_worker.cpp \
|
||||
../common/yacreader_global.cpp \
|
||||
yacreader_libraries.cpp \
|
||||
../common/exit_check.cpp \
|
||||
comics_view.cpp \
|
||||
classic_comics_view.cpp \
|
||||
empty_folder_widget.cpp \
|
||||
no_search_results_widget.cpp \
|
||||
comic_files_manager.cpp \
|
||||
db/reading_list_model.cpp \
|
||||
db/reading_list_item.cpp \
|
||||
yacreader_folders_view.cpp \
|
||||
yacreader_reading_lists_view.cpp \
|
||||
add_label_dialog.cpp
|
||||
|
||||
|
||||
include(./server/server.pri)
|
||||
include(../custom_widgets/custom_widgets_yacreaderlibrary.pri)
|
||||
include(../compressed_archive/wrapper.pri)
|
||||
include(./comic_vine/comic_vine.pri)
|
||||
include(../QsLog/QsLog.pri)
|
||||
include(../shortcuts_management/shortcuts_management.pri)
|
||||
|
||||
RESOURCES += images.qrc files.qrc
|
||||
win32:RESOURCES += images_win.qrc
|
||||
unix:!macx:RESOURCES += images_win.qrc
|
||||
macx:RESOURCES += images_osx.qrc
|
||||
|
||||
RC_FILE = icon.rc
|
||||
|
||||
macx {
|
||||
ICON = YACReaderLibrary.icns
|
||||
}
|
||||
|
||||
TRANSLATIONS = yacreaderlibrary_es.ts \
|
||||
yacreaderlibrary_ru.ts \
|
||||
yacreaderlibrary_pt.ts \
|
||||
yacreaderlibrary_fr.ts \
|
||||
yacreaderlibrary_nl.ts \
|
||||
yacreaderlibrary_tr.ts \
|
||||
yacreaderlibrary_de.ts \
|
||||
yacreaderlibrary_source.ts
|
||||
|
||||
isEqual(QT_MAJOR_VERSION, 5) {
|
||||
Release:DESTDIR = ../release5
|
||||
Debug:DESTDIR = ../debug5
|
||||
|
||||
#QML/GridView
|
||||
QT += quick qml
|
||||
|
||||
HEADERS += grid_comics_view.h \
|
||||
comics_view_transition.h
|
||||
|
||||
SOURCES += grid_comics_view.cpp \
|
||||
comics_view_transition.cpp
|
||||
|
||||
RESOURCES += qml.qrc
|
||||
win32:RESOURCES += qml_win.qrc
|
||||
unix:!macx:RESOURCES += qml_win.qrc
|
||||
macx:RESOURCES += qml_osx.qrc
|
||||
|
||||
} else {
|
||||
Release:DESTDIR = ../release
|
||||
Debug:DESTDIR = ../debug
|
||||
}
|
||||
|
||||
win32 {
|
||||
!exists(../compressed_archive/lib7zip){
|
||||
error(You\'ll need 7zip source code to compile YACReader. \
|
||||
Please check the compressed_archive folder for further instructions.)
|
||||
}
|
||||
}
|
||||
|
||||
unix {
|
||||
exists (../compressed_archive/libp7zip) {
|
||||
message(Found p7zip source code...)
|
||||
system(patch -d ../compressed_archive -N -p0 -i libp7zip.patch)
|
||||
} else {
|
||||
error(You\'ll need 7zip source code to compile YACReader. \
|
||||
Please check the compressed_archive folder for further instructions.)
|
||||
}
|
||||
}
|
||||
|
||||
unix:!macx {
|
||||
#set install prefix if it's empty
|
||||
isEmpty(PREFIX) {
|
||||
PREFIX = /usr
|
||||
}
|
||||
|
||||
BINDIR = $$PREFIX/bin
|
||||
LIBDIR = $$PREFIX/lib
|
||||
DATADIR = $$PREFIX/share
|
||||
|
||||
DEFINES += "LIBDIR=\\\"$$LIBDIR\\\"" "DATADIR=\\\"$$DATADIR\\\"" "BINDIR=\\\"$$BINDIR\\\""
|
||||
|
||||
#MAKE INSTALL
|
||||
INSTALLS += bin icon desktop server translation manpage
|
||||
|
||||
bin.path = $$BINDIR
|
||||
isEmpty(DESTDIR) {
|
||||
bin.files = YACReaderLibrary
|
||||
} else {
|
||||
bin.files = $$DESTDIR/YACReaderLibrary
|
||||
}
|
||||
|
||||
server.path = $$DATADIR/yacreader
|
||||
server.files = ../release/server
|
||||
|
||||
icon.path = $$DATADIR/yacreader
|
||||
icon.files = ../images/iconLibrary.png ../images/db.png ../images/coversPackage.png
|
||||
|
||||
desktop.path = $$DATADIR/applications
|
||||
desktop.extra = desktop-file-edit --set-icon=$$DATADIR/yacreader/iconLibrary.png $$PWD/../YACReaderLibrary.desktop
|
||||
desktop.files = ../YACReaderLibrary.desktop
|
||||
#TODO: icons should be located at /usr/share/icons and have the same basename as their application
|
||||
|
||||
translation.path = $$DATADIR/yacreader/languages
|
||||
translation.files = ../release/languages/yacreaderlibrary_*
|
||||
|
||||
manpage.path = $$DATADIR/man/man1
|
||||
manpage.files = ../YACReaderLibrary.1
|
||||
}
|
||||
84
YACReaderLibrary/add_label_dialog.cpp
Normal file
84
YACReaderLibrary/add_label_dialog.cpp
Normal file
@ -0,0 +1,84 @@
|
||||
#include "add_label_dialog.h"
|
||||
|
||||
AddLabelDialog::AddLabelDialog(QWidget *parent) :
|
||||
QDialog(parent)
|
||||
{
|
||||
QVBoxLayout * layout = new QVBoxLayout;
|
||||
|
||||
layout->addWidget(new QLabel(tr("Label name:")));
|
||||
layout->addWidget(edit = new QLineEdit());
|
||||
|
||||
layout->addWidget(new QLabel(tr("Choose a color:")));
|
||||
layout->addWidget(list = new QListWidget() );
|
||||
|
||||
list->addItem(new QListWidgetItem(QIcon(":/images/lists/label_red.png"), tr("red")));
|
||||
list->addItem(new QListWidgetItem(QIcon(":/images/lists/label_orange.png"), tr("orange")));
|
||||
list->addItem(new QListWidgetItem(QIcon(":/images/lists/label_yellow.png"), tr("yellow")));
|
||||
list->addItem(new QListWidgetItem(QIcon(":/images/lists/label_green.png"), tr("green")));
|
||||
list->addItem(new QListWidgetItem(QIcon(":/images/lists/label_cyan.png"), tr("cyan")));
|
||||
list->addItem(new QListWidgetItem(QIcon(":/images/lists/label_blue.png"), tr("blue")));
|
||||
list->addItem(new QListWidgetItem(QIcon(":/images/lists/label_violet.png"), tr("violet")));
|
||||
list->addItem(new QListWidgetItem(QIcon(":/images/lists/label_purple.png"), tr("purple")));
|
||||
list->addItem(new QListWidgetItem(QIcon(":/images/lists/label_pink.png"), tr("pink")));
|
||||
list->addItem(new QListWidgetItem(QIcon(":/images/lists/label_white.png"), tr("white")));
|
||||
list->addItem(new QListWidgetItem(QIcon(":/images/lists/label_light.png"), tr("light")));
|
||||
list->addItem(new QListWidgetItem(QIcon(":/images/lists/label_dark.png"), tr("dark")));
|
||||
|
||||
QColor backgroundColor = this->palette().background().color();
|
||||
list->setStyleSheet(QString("QListWidget {border : none; background-color: rgb(%1,%2,%3);}").arg(backgroundColor.red()).arg(backgroundColor.green()).arg(backgroundColor.blue()));
|
||||
list->setMinimumHeight(225);
|
||||
|
||||
setModal(true);
|
||||
|
||||
setMinimumHeight(340);
|
||||
|
||||
//buttons
|
||||
acceptButton = new QPushButton(tr("accept"),this);
|
||||
cancelButton = new QPushButton(tr("cancel"),this);
|
||||
|
||||
QHBoxLayout * buttons = new QHBoxLayout;
|
||||
buttons->addStretch();
|
||||
buttons->addWidget(acceptButton);
|
||||
buttons->addWidget(cancelButton);
|
||||
|
||||
layout->addStretch();
|
||||
layout->addLayout(buttons);
|
||||
|
||||
setLayout(layout);
|
||||
|
||||
//connections
|
||||
connect(edit,SIGNAL(textChanged(QString)),this,SLOT(validateName(QString)));
|
||||
connect(cancelButton,SIGNAL(clicked()),this,SLOT(close()));
|
||||
connect(acceptButton,SIGNAL(clicked()),this,SLOT(accept()));
|
||||
|
||||
}
|
||||
|
||||
YACReader::LabelColors AddLabelDialog::selectedColor()
|
||||
{
|
||||
return YACReader::LabelColors(list->currentRow());
|
||||
}
|
||||
|
||||
QString AddLabelDialog::name()
|
||||
{
|
||||
return edit->text();
|
||||
}
|
||||
|
||||
int AddLabelDialog::exec()
|
||||
{
|
||||
edit->clear();
|
||||
list->clearSelection();
|
||||
|
||||
acceptButton->setDisabled(true);
|
||||
|
||||
list->setCurrentRow(0);
|
||||
|
||||
return QDialog::exec();
|
||||
}
|
||||
|
||||
void AddLabelDialog::validateName(const QString &name)
|
||||
{
|
||||
if(name.isEmpty())
|
||||
acceptButton->setDisabled(true);
|
||||
else
|
||||
acceptButton->setEnabled(true);
|
||||
}
|
||||
31
YACReaderLibrary/add_label_dialog.h
Normal file
31
YACReaderLibrary/add_label_dialog.h
Normal file
@ -0,0 +1,31 @@
|
||||
#ifndef ADD_LABEL_DIALOG_H
|
||||
#define ADD_LABEL_DIALOG_H
|
||||
|
||||
#include <QtWidgets>
|
||||
|
||||
#include "yacreader_global.h"
|
||||
|
||||
class AddLabelDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit AddLabelDialog(QWidget *parent = 0);
|
||||
YACReader::LabelColors selectedColor();
|
||||
QString name();
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
int exec();
|
||||
|
||||
protected slots:
|
||||
void validateName(const QString & name);
|
||||
|
||||
protected:
|
||||
QLineEdit * edit;
|
||||
QListWidget * list;
|
||||
|
||||
QPushButton * acceptButton;
|
||||
QPushButton * cancelButton;
|
||||
};
|
||||
|
||||
#endif // ADD_LABEL_DIALOG_H
|
||||
124
YACReaderLibrary/add_library_dialog.cpp
Normal file
124
YACReaderLibrary/add_library_dialog.cpp
Normal file
@ -0,0 +1,124 @@
|
||||
#include "add_library_dialog.h"
|
||||
|
||||
#include <QHBoxLayout>
|
||||
#include <QVBoxLayout>
|
||||
#include <QFileDialog>
|
||||
#include <QGridLayout>
|
||||
|
||||
|
||||
AddLibraryDialog::AddLibraryDialog(QWidget * parent)
|
||||
:QDialog(parent)
|
||||
{
|
||||
setupUI();
|
||||
}
|
||||
|
||||
void AddLibraryDialog::setupUI()
|
||||
{
|
||||
textLabel = new QLabel(tr("Comics folder : "));
|
||||
path = new QLineEdit;
|
||||
textLabel->setBuddy(path);
|
||||
connect(path,SIGNAL(textChanged(QString)),this,SLOT(pathSetted(QString)));
|
||||
|
||||
nameLabel = new QLabel(tr("Library Name : "));
|
||||
nameEdit = new QLineEdit;
|
||||
nameLabel->setBuddy(nameEdit);
|
||||
connect(nameEdit,SIGNAL(textChanged(QString)),this,SLOT(nameSetted(QString)));
|
||||
|
||||
accept = new QPushButton(tr("Add"));
|
||||
accept->setDisabled(true);
|
||||
connect(accept,SIGNAL(clicked()),this,SLOT(add()));
|
||||
|
||||
cancel = new QPushButton(tr("Cancel"));
|
||||
connect(cancel,SIGNAL(clicked()),this,SLOT(close()));
|
||||
|
||||
find = new QPushButton(QIcon(":/images/find_folder.png"),"");
|
||||
connect(find,SIGNAL(clicked()),this,SLOT(findPath()));
|
||||
|
||||
QGridLayout * content = new QGridLayout;
|
||||
|
||||
content->addWidget(nameLabel,0,0);
|
||||
content->addWidget(nameEdit,0,1);
|
||||
|
||||
content->addWidget(textLabel,1,0);
|
||||
content->addWidget(path,1,1);
|
||||
content->addWidget(find,1,2);
|
||||
content->setColumnStretch(2,0);
|
||||
|
||||
QHBoxLayout *bottomLayout = new QHBoxLayout;
|
||||
bottomLayout->addStretch();
|
||||
bottomLayout->addWidget(accept);
|
||||
bottomLayout->addWidget(cancel);
|
||||
|
||||
QVBoxLayout *mainLayout = new QVBoxLayout;
|
||||
mainLayout->addLayout(content);
|
||||
mainLayout->addStretch();
|
||||
mainLayout->addLayout(bottomLayout);
|
||||
|
||||
QHBoxLayout * imgMainLayout = new QHBoxLayout;
|
||||
QLabel * imgLabel = new QLabel(this);
|
||||
QPixmap p(":/images/openLibrary.png");
|
||||
imgLabel->setPixmap(p);
|
||||
imgMainLayout->addWidget(imgLabel);//,0,Qt::AlignTop);
|
||||
imgMainLayout->addLayout(mainLayout);
|
||||
|
||||
setLayout(imgMainLayout);
|
||||
|
||||
setModal(true);
|
||||
setWindowTitle(tr("Add an existing library"));
|
||||
}
|
||||
|
||||
void AddLibraryDialog::add()
|
||||
{
|
||||
//accept->setEnabled(false);
|
||||
emit(addLibrary(QDir::cleanPath(path->text()),nameEdit->text()));
|
||||
}
|
||||
|
||||
void AddLibraryDialog::nameSetted(const QString & text)
|
||||
{
|
||||
if(!text.isEmpty())
|
||||
{
|
||||
if(!path->text().isEmpty())
|
||||
{
|
||||
QFileInfo fi(path->text());
|
||||
if(fi.isDir())
|
||||
accept->setEnabled(true);
|
||||
else
|
||||
accept->setEnabled(false);
|
||||
}
|
||||
}
|
||||
else
|
||||
accept->setEnabled(false);
|
||||
}
|
||||
|
||||
void AddLibraryDialog::pathSetted(const QString & text)
|
||||
{
|
||||
QFileInfo fi(text);
|
||||
if(fi.isDir())
|
||||
{
|
||||
if(!nameEdit->text().isEmpty())
|
||||
accept->setEnabled(true);
|
||||
}
|
||||
else
|
||||
accept->setEnabled(false);
|
||||
}
|
||||
|
||||
void AddLibraryDialog::findPath()
|
||||
{
|
||||
QString s = QFileDialog::getExistingDirectory(0,"Comics directory",".");
|
||||
if(!s.isEmpty())
|
||||
{
|
||||
path->setText(s);
|
||||
if(!nameEdit->text().isEmpty())
|
||||
accept->setEnabled(true);
|
||||
}
|
||||
else
|
||||
accept->setEnabled(false);
|
||||
}
|
||||
|
||||
void AddLibraryDialog::close()
|
||||
{
|
||||
path->clear();
|
||||
nameEdit->clear();
|
||||
accept->setEnabled(false);
|
||||
QDialog::close();
|
||||
}
|
||||
35
YACReaderLibrary/add_library_dialog.h
Normal file
35
YACReaderLibrary/add_library_dialog.h
Normal file
@ -0,0 +1,35 @@
|
||||
#ifndef __ADD_LIBRARY_DIALOG_H
|
||||
#define __ADD_LIBRARY_DIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
#include <QPushButton>
|
||||
#include <QThread>
|
||||
|
||||
class AddLibraryDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
AddLibraryDialog(QWidget * parent = 0);
|
||||
private:
|
||||
QLabel * nameLabel;
|
||||
QLabel * textLabel;
|
||||
QLineEdit * path;
|
||||
QLineEdit * nameEdit;
|
||||
QPushButton * find;
|
||||
QPushButton * accept;
|
||||
QPushButton * cancel;
|
||||
void setupUI();
|
||||
public slots:
|
||||
void add();
|
||||
void findPath();
|
||||
void close();
|
||||
void nameSetted(const QString & text);
|
||||
void pathSetted(const QString & text);
|
||||
signals:
|
||||
void addLibrary(QString target, QString name);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
13
YACReaderLibrary/bundle_creator.cpp
Normal file
13
YACReaderLibrary/bundle_creator.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include "bundle_creator.h"
|
||||
|
||||
|
||||
BundleCreator::BundleCreator(void)
|
||||
:QObject()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
BundleCreator::~BundleCreator(void)
|
||||
{
|
||||
}
|
||||
14
YACReaderLibrary/bundle_creator.h
Normal file
14
YACReaderLibrary/bundle_creator.h
Normal file
@ -0,0 +1,14 @@
|
||||
#ifndef __BUNDLE_CREATOR_H
|
||||
#define __BUNDLE_CREATOR_H
|
||||
|
||||
#include <QtCore>
|
||||
|
||||
class BundleCreator : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
BundleCreator(void);
|
||||
~BundleCreator(void);
|
||||
};
|
||||
|
||||
#endif
|
||||
324
YACReaderLibrary/classic_comics_view.cpp
Normal file
324
YACReaderLibrary/classic_comics_view.cpp
Normal file
@ -0,0 +1,324 @@
|
||||
#include "classic_comics_view.h"
|
||||
|
||||
#include "yacreader_table_view.h"
|
||||
|
||||
#include "comic_flow_widget.h"
|
||||
#include "QsLog.h"
|
||||
|
||||
#include "QStackedWidget"
|
||||
|
||||
ClassicComicsView::ClassicComicsView(QWidget *parent)
|
||||
:ComicsView(parent),searching(false)
|
||||
{
|
||||
QHBoxLayout * layout = new QHBoxLayout;
|
||||
|
||||
settings = new QSettings(YACReader::getSettingsPath()+"/YACReaderLibrary.ini",QSettings::IniFormat); //TODO unificar la creación del fichero de config con el servidor
|
||||
settings->beginGroup("libraryConfig");
|
||||
//FLOW-----------------------------------------------------------------------
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
if(QGLFormat::hasOpenGL() && (settings->value(USE_OPEN_GL).toBool() == true))
|
||||
comicFlow = new ComicFlowWidgetGL(0);
|
||||
else
|
||||
comicFlow = new ComicFlowWidgetSW(0);
|
||||
|
||||
comicFlow->updateConfig(settings);
|
||||
comicFlow->setFocusPolicy(Qt::StrongFocus);
|
||||
comicFlow->setShowMarks(true);
|
||||
setFocusProxy(comicFlow);
|
||||
|
||||
comicFlow->setFocus(Qt::OtherFocusReason);
|
||||
|
||||
comicFlow->setContextMenuPolicy(Qt::ActionsContextMenu);
|
||||
|
||||
//TODO!!! set actions....
|
||||
//comicFlow->addAction(toggleFullScreenAction);
|
||||
//comicFlow->addAction(openComicAction);
|
||||
|
||||
//END FLOW----
|
||||
|
||||
|
||||
//layout-----------------------------------------------
|
||||
sVertical = new QSplitter(Qt::Vertical); //spliter derecha
|
||||
|
||||
stack = new QStackedWidget;
|
||||
stack->addWidget(comicFlow);
|
||||
setupSearchingIcon();
|
||||
stack->addWidget(searchingIcon);
|
||||
|
||||
|
||||
sVertical->addWidget(stack);
|
||||
comics = new QWidget;
|
||||
QVBoxLayout * comicsLayout = new QVBoxLayout;
|
||||
comicsLayout->setSpacing(0);
|
||||
comicsLayout->setContentsMargins(0,0,0,0);
|
||||
//TODO ComicsView:(set toolbar) comicsLayout->addWidget(editInfoToolBar);
|
||||
|
||||
tableView = new YACReaderTableView;
|
||||
tableView->verticalHeader()->hide();
|
||||
tableView->setFocusPolicy(Qt::StrongFocus);
|
||||
comicsLayout->addWidget(tableView);
|
||||
comics->setLayout(comicsLayout);
|
||||
sVertical->addWidget(comics);
|
||||
|
||||
//config--------------------------------------------------
|
||||
if(settings->contains(COMICS_VIEW_HEADERS))
|
||||
tableView->horizontalHeader()->restoreState(settings->value(COMICS_VIEW_HEADERS).toByteArray());
|
||||
|
||||
//connections---------------------------------------------
|
||||
connect(tableView, SIGNAL(clicked(QModelIndex)), this, SLOT(centerComicFlow(QModelIndex)));
|
||||
connect(tableView, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(selectedComicForOpening(QModelIndex)));
|
||||
connect(comicFlow, SIGNAL(centerIndexChanged(int)), this, SLOT(updateTableView(int)));
|
||||
connect(tableView, SIGNAL(comicRated(int,QModelIndex)), this, SIGNAL(comicRated(int,QModelIndex)));
|
||||
connect(comicFlow, SIGNAL(selected(uint)), this, SIGNAL(selected(uint)));
|
||||
connect(tableView->horizontalHeader(), SIGNAL(sectionMoved(int,int,int)), this, SLOT(saveTableHeadersStatus()));
|
||||
layout->addWidget(sVertical);
|
||||
setLayout(layout);
|
||||
|
||||
layout->setMargin(0);
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
sVertical->setCollapsible(1,false);
|
||||
#endif
|
||||
|
||||
if(settings->contains(COMICS_VIEW_FLOW_SPLITTER_STATUS))
|
||||
sVertical->restoreState(settings->value(COMICS_VIEW_FLOW_SPLITTER_STATUS).toByteArray());
|
||||
|
||||
|
||||
}
|
||||
|
||||
void ClassicComicsView::setToolBar(QToolBar *toolBar)
|
||||
{
|
||||
static_cast<QVBoxLayout *>(comics->layout())->insertWidget(0,toolBar);
|
||||
}
|
||||
|
||||
void ClassicComicsView::setModel(ComicModel *model)
|
||||
{
|
||||
|
||||
ComicsView::setModel(model);
|
||||
|
||||
if(model == NULL)
|
||||
{
|
||||
comicFlow->clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
connect(model, SIGNAL(dataChanged(QModelIndex,QModelIndex,QVector<int>)), this, SLOT(applyModelChanges(QModelIndex,QModelIndex,QVector<int>)),Qt::UniqueConnection);
|
||||
connect(model, SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SLOT(removeItemsFromFlow(QModelIndex,int,int)),Qt::UniqueConnection);
|
||||
|
||||
tableView->setModel(model);
|
||||
|
||||
tableView->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft);
|
||||
#if QT_VERSION >= 0x050000
|
||||
tableView->horizontalHeader()->setSectionsMovable(true);
|
||||
#else
|
||||
tableView->horizontalHeader()->setMovable(true);
|
||||
#endif
|
||||
//TODO parametrizar la configuración de las columnas
|
||||
for(int i = 0;i<tableView->horizontalHeader()->count();i++)
|
||||
tableView->horizontalHeader()->hideSection(i);
|
||||
|
||||
tableView->horizontalHeader()->showSection(ComicModel::Number);
|
||||
tableView->horizontalHeader()->showSection(ComicModel::Title);
|
||||
tableView->horizontalHeader()->showSection(ComicModel::FileName);
|
||||
tableView->horizontalHeader()->showSection(ComicModel::NumPages);
|
||||
tableView->horizontalHeader()->showSection(ComicModel::Hash); //Size is part of the Hash...TODO add Columns::Size to Columns
|
||||
tableView->horizontalHeader()->showSection(ComicModel::ReadColumn);
|
||||
tableView->horizontalHeader()->showSection(ComicModel::CurrentPage);
|
||||
tableView->horizontalHeader()->showSection(ComicModel::Rating);
|
||||
|
||||
//debido a un bug, qt4 no es capaz de ajustar el ancho teniendo en cuenta todas la filas (no sólo las visibles)
|
||||
//así que se ecala la primera vez y después se deja el control al usuario.
|
||||
//if(!settings->contains(COMICS_VIEW_HEADERS))
|
||||
tableView->resizeColumnsToContents();
|
||||
tableView->horizontalHeader()->setStretchLastSection(true);
|
||||
|
||||
QStringList paths = model->getPaths(model->getCurrentPath());//TODO ComicsView: get currentpath from somewhere currentPath());
|
||||
comicFlow->setImagePaths(paths);
|
||||
comicFlow->setMarks(model->getReadList());
|
||||
//comicFlow->setFocus(Qt::OtherFocusReason);
|
||||
}
|
||||
|
||||
if(settings->contains(COMICS_VIEW_HEADERS))
|
||||
tableView->horizontalHeader()->restoreState(settings->value(COMICS_VIEW_HEADERS).toByteArray());
|
||||
|
||||
|
||||
}
|
||||
|
||||
void ClassicComicsView::setCurrentIndex(const QModelIndex &index)
|
||||
{
|
||||
tableView->setCurrentIndex(index);
|
||||
//TODO ComicsView: scroll comicFlow to index
|
||||
}
|
||||
|
||||
QModelIndex ClassicComicsView::currentIndex()
|
||||
{
|
||||
return tableView->currentIndex();
|
||||
}
|
||||
|
||||
QItemSelectionModel *ClassicComicsView::selectionModel()
|
||||
{
|
||||
return tableView->selectionModel();
|
||||
}
|
||||
|
||||
void ClassicComicsView::scrollTo(const QModelIndex & mi, QAbstractItemView::ScrollHint hint)
|
||||
{
|
||||
comicFlow->setCenterIndex(mi.row());
|
||||
}
|
||||
|
||||
void ClassicComicsView::toFullScreen()
|
||||
{
|
||||
comicFlow->hide();
|
||||
comicFlow->setCenterIndex(comicFlow->centerIndex());
|
||||
comics->hide();
|
||||
|
||||
//showFullScreen() //parent windows
|
||||
|
||||
comicFlow->show();
|
||||
comicFlow->setFocus(Qt::OtherFocusReason);
|
||||
}
|
||||
|
||||
void ClassicComicsView::toNormal()
|
||||
{
|
||||
comicFlow->hide();
|
||||
comicFlow->setCenterIndex(comicFlow->centerIndex());
|
||||
comicFlow->render();
|
||||
comics->show();
|
||||
comicFlow->show();
|
||||
}
|
||||
|
||||
void ClassicComicsView::updateConfig(QSettings *settings)
|
||||
{
|
||||
comicFlow->updateConfig(settings);
|
||||
}
|
||||
|
||||
void ClassicComicsView::setItemActions(const QList<QAction *> &actions)
|
||||
{
|
||||
tableView->addActions(actions);
|
||||
}
|
||||
|
||||
void ClassicComicsView::setViewActions(const QList<QAction *> &actions)
|
||||
{
|
||||
comicFlow->addActions(actions);
|
||||
}
|
||||
|
||||
void ClassicComicsView::enableFilterMode(bool enabled)
|
||||
{
|
||||
if(enabled)
|
||||
{
|
||||
comicFlow->clear();
|
||||
if(previousSplitterStatus.isEmpty())
|
||||
previousSplitterStatus = sVertical->saveState();
|
||||
sVertical->setSizes(QList<int> () << 100 << 10000000);
|
||||
showSearchingIcon();
|
||||
}else
|
||||
{
|
||||
hideSearchingIcon();
|
||||
sVertical->restoreState(previousSplitterStatus);
|
||||
previousSplitterStatus.clear();
|
||||
}
|
||||
|
||||
//sVertical->setCollapsible(0,!enabled);
|
||||
searching = enabled;
|
||||
}
|
||||
|
||||
void ClassicComicsView::selectIndex(int index)
|
||||
{
|
||||
tableView->selectRow(index);
|
||||
}
|
||||
|
||||
void ClassicComicsView::selectAll()
|
||||
{
|
||||
tableView->selectAll();
|
||||
}
|
||||
|
||||
void ClassicComicsView::selectedComicForOpening(const QModelIndex &mi)
|
||||
{
|
||||
emit selected(mi.row());
|
||||
}
|
||||
|
||||
void ClassicComicsView::setShowMarks(bool show)
|
||||
{
|
||||
comicFlow->setShowMarks(show);
|
||||
}
|
||||
|
||||
void ClassicComicsView::centerComicFlow(const QModelIndex & mi)
|
||||
{
|
||||
comicFlow->showSlide(mi.row());
|
||||
comicFlow->setFocus(Qt::OtherFocusReason);
|
||||
}
|
||||
|
||||
void ClassicComicsView::updateTableView(int i)
|
||||
{
|
||||
QModelIndex mi = model->index(i,2);
|
||||
tableView->setCurrentIndex(mi);
|
||||
tableView->scrollTo(mi,QAbstractItemView::EnsureVisible);
|
||||
}
|
||||
|
||||
void ClassicComicsView::saveTableHeadersStatus()
|
||||
{
|
||||
settings->setValue(COMICS_VIEW_HEADERS,tableView->horizontalHeader()->saveState());
|
||||
}
|
||||
|
||||
void ClassicComicsView::saveSplitterStatus()
|
||||
{
|
||||
if(!searching)
|
||||
settings->setValue(COMICS_VIEW_FLOW_SPLITTER_STATUS, sVertical->saveState());
|
||||
}
|
||||
|
||||
void ClassicComicsView::applyModelChanges(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles)
|
||||
{
|
||||
Q_UNUSED(topLeft);
|
||||
Q_UNUSED(bottomRight);
|
||||
if(roles.contains(ComicModel::ReadColumnRole))
|
||||
{
|
||||
comicFlow->setMarks(model->getReadList());
|
||||
comicFlow->updateMarks();
|
||||
}
|
||||
}
|
||||
|
||||
void ClassicComicsView::removeItemsFromFlow(const QModelIndex &parent, int from, int to)
|
||||
{
|
||||
Q_UNUSED(parent);
|
||||
for(int i = from; i<=to; i++)
|
||||
comicFlow->remove(i);
|
||||
}
|
||||
|
||||
void ClassicComicsView::closeEvent(QCloseEvent *event)
|
||||
{
|
||||
saveTableHeadersStatus();
|
||||
saveSplitterStatus();
|
||||
ComicsView::closeEvent(event);
|
||||
}
|
||||
|
||||
void ClassicComicsView::setupSearchingIcon()
|
||||
{
|
||||
searchingIcon = new QWidget(comicFlow);
|
||||
|
||||
QHBoxLayout * h = new QHBoxLayout;
|
||||
|
||||
QPixmap p(":/images/searching_icon.png");
|
||||
QLabel * l = new QLabel(searchingIcon);
|
||||
l->setPixmap(p);
|
||||
l->setFixedSize(p.size());
|
||||
h->addWidget(l,0,Qt::AlignCenter);
|
||||
searchingIcon->setLayout(h);
|
||||
|
||||
QPalette pal(searchingIcon->palette());
|
||||
pal.setColor(QPalette::Background, Qt::black);
|
||||
searchingIcon->setAutoFillBackground(true);
|
||||
searchingIcon->setPalette(pal);
|
||||
|
||||
hideSearchingIcon();
|
||||
}
|
||||
|
||||
void ClassicComicsView::showSearchingIcon()
|
||||
{
|
||||
stack->setCurrentWidget(searchingIcon);
|
||||
}
|
||||
|
||||
void ClassicComicsView::hideSearchingIcon()
|
||||
{
|
||||
stack->setCurrentWidget(comicFlow);
|
||||
}
|
||||
|
||||
66
YACReaderLibrary/classic_comics_view.h
Normal file
66
YACReaderLibrary/classic_comics_view.h
Normal file
@ -0,0 +1,66 @@
|
||||
#ifndef CLASSIC_COMICS_VIEW_H
|
||||
#define CLASSIC_COMICS_VIEW_H
|
||||
|
||||
#include "comics_view.h"
|
||||
|
||||
#include <QModelIndex>
|
||||
#include <QModelIndexList>
|
||||
|
||||
class YACReaderTableView;
|
||||
class QSplitter;
|
||||
class ComicFlowWidget;
|
||||
class QToolBar;
|
||||
class ComicModel;
|
||||
class QStackedWidget;
|
||||
|
||||
class ClassicComicsView : public ComicsView
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ClassicComicsView(QWidget *parent = 0);
|
||||
void setToolBar(QToolBar * toolBar);
|
||||
void setModel(ComicModel *model);
|
||||
void setCurrentIndex(const QModelIndex &index);
|
||||
QModelIndex currentIndex();
|
||||
QItemSelectionModel * selectionModel();
|
||||
void scrollTo(const QModelIndex & mi, QAbstractItemView::ScrollHint hint );
|
||||
void toFullScreen();
|
||||
void toNormal();
|
||||
void updateConfig(QSettings * settings);
|
||||
void setItemActions(const QList<QAction *> & actions);
|
||||
void setViewActions(const QList<QAction *> & actions);
|
||||
void enableFilterMode(bool enabled);
|
||||
void selectIndex(int index);
|
||||
|
||||
public slots:
|
||||
void centerComicFlow(const QModelIndex & mi);
|
||||
void updateTableView(int i);
|
||||
void saveTableHeadersStatus();
|
||||
void saveSplitterStatus();
|
||||
void applyModelChanges(const QModelIndex & topLeft,const QModelIndex & bottomRight,const QVector<int> & roles);
|
||||
void removeItemsFromFlow(const QModelIndex & parent, int from, int to);
|
||||
//ComicsView
|
||||
void setShowMarks(bool show);
|
||||
void selectAll();
|
||||
void selectedComicForOpening(const QModelIndex & mi);
|
||||
|
||||
private:
|
||||
YACReaderTableView * tableView;
|
||||
QWidget *comics;
|
||||
QSplitter * sVertical;
|
||||
ComicFlowWidget * comicFlow;
|
||||
QSettings * settings;
|
||||
void closeEvent ( QCloseEvent * event );
|
||||
|
||||
QStackedWidget * stack;
|
||||
|
||||
QByteArray previousSplitterStatus;
|
||||
QWidget * searchingIcon;
|
||||
bool searching;
|
||||
void setupSearchingIcon();
|
||||
void showSearchingIcon();
|
||||
void hideSearchingIcon();
|
||||
void updateSearchingIconPosition();
|
||||
};
|
||||
|
||||
#endif // CLASSIC_COMICS_VIEW_H
|
||||
99
YACReaderLibrary/comic_files_manager.cpp
Normal file
99
YACReaderLibrary/comic_files_manager.cpp
Normal file
@ -0,0 +1,99 @@
|
||||
#include "comic_files_manager.h"
|
||||
#include <QFile>
|
||||
#include <QFileInfo>
|
||||
#include <QDir>
|
||||
|
||||
#include <QsLog.h>
|
||||
|
||||
#include "comic.h"
|
||||
|
||||
ComicFilesManager::ComicFilesManager(QObject *parent) :
|
||||
QObject(parent), canceled(false)
|
||||
{
|
||||
}
|
||||
|
||||
void ComicFilesManager::copyComicsTo(const QList<QPair<QString,QString> > &sourceComics, const QString &folderDest)
|
||||
{
|
||||
comics = sourceComics;
|
||||
folder = folderDest;
|
||||
move = false;
|
||||
}
|
||||
|
||||
void ComicFilesManager::moveComicsTo(const QList<QPair<QString, QString> > &sourceComics, const QString &folderDest)
|
||||
{
|
||||
comics = sourceComics;
|
||||
folder = folderDest;
|
||||
move = true;
|
||||
}
|
||||
|
||||
QList<QPair<QString, QString> > ComicFilesManager::getDroppedFiles(const QList<QUrl> &urls)
|
||||
{
|
||||
QList<QPair<QString,QString> > dropedFiles;
|
||||
|
||||
QString currentPath;
|
||||
foreach(QUrl url, urls)
|
||||
{
|
||||
currentPath = url.toLocalFile();
|
||||
if(Comic::fileIsComic(currentPath))
|
||||
dropedFiles << QPair<QString, QString>(currentPath,"/");
|
||||
else
|
||||
{
|
||||
QFileInfo info(currentPath);
|
||||
if(info.isDir())
|
||||
{
|
||||
foreach(QString comicPath, Comic::findValidComicFilesInFolder(info.absoluteFilePath()))
|
||||
{
|
||||
QFileInfo comicInfo(comicPath);
|
||||
QString path = comicInfo.absolutePath();
|
||||
dropedFiles << QPair<QString, QString>(comicPath, path.remove(info.absolutePath()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return dropedFiles;
|
||||
}
|
||||
|
||||
void ComicFilesManager::process()
|
||||
{
|
||||
int i=0;
|
||||
bool successProcesingFiles = false;
|
||||
QPair<QString, QString> source;
|
||||
foreach (source, comics) {
|
||||
|
||||
if(canceled)
|
||||
{
|
||||
if(successProcesingFiles)
|
||||
emit success();
|
||||
emit finished();
|
||||
|
||||
return; //TODO rollback?
|
||||
}
|
||||
|
||||
QFileInfo info(source.first);
|
||||
QString destPath = QDir::cleanPath(folder+'/'+source.second);
|
||||
QLOG_DEBUG() << "crear : " << destPath;
|
||||
QDir().mkpath(destPath);
|
||||
if(QFile::copy(source.first, QDir::cleanPath(destPath+'/'+info.fileName())))
|
||||
{
|
||||
successProcesingFiles = true;
|
||||
if(move)
|
||||
{
|
||||
QFile::remove(source.first); //TODO: remove the whole path....
|
||||
}
|
||||
}
|
||||
|
||||
i++;
|
||||
emit progress(i);
|
||||
}
|
||||
|
||||
if(successProcesingFiles)
|
||||
emit success();
|
||||
emit finished();
|
||||
}
|
||||
|
||||
void ComicFilesManager::cancel()
|
||||
{
|
||||
QLOG_DEBUG() << "Operation canceled";
|
||||
canceled = true;
|
||||
}
|
||||
35
YACReaderLibrary/comic_files_manager.h
Normal file
35
YACReaderLibrary/comic_files_manager.h
Normal file
@ -0,0 +1,35 @@
|
||||
#ifndef COMIC_FILES_MANAGER_H
|
||||
#define COMIC_FILES_MANAGER_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QList>
|
||||
#include <QPair>
|
||||
|
||||
|
||||
//this class is intended to work in background, just use moveToThread and process to start working
|
||||
class ComicFilesManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ComicFilesManager(QObject *parent = 0);
|
||||
void copyComicsTo(const QList<QPair<QString,QString> > & sourceComics, const QString & folderDest);
|
||||
void moveComicsTo(const QList<QPair<QString,QString> > & comics, const QString & folderDest);
|
||||
static QList<QPair<QString, QString> > getDroppedFiles(const QList<QUrl> & urls);
|
||||
signals:
|
||||
void currentComic(QString);
|
||||
void progress(int);
|
||||
void finished();
|
||||
void success(); //at least one comics has been copied or moved
|
||||
public slots:
|
||||
void process();
|
||||
void cancel();
|
||||
|
||||
protected:
|
||||
bool move;
|
||||
bool canceled;
|
||||
QList<QPair<QString,QString> > comics;
|
||||
QString folder;
|
||||
|
||||
};
|
||||
|
||||
#endif // COMIC_FILES_MANAGER_H
|
||||
238
YACReaderLibrary/comic_flow.cpp
Normal file
238
YACReaderLibrary/comic_flow.cpp
Normal file
@ -0,0 +1,238 @@
|
||||
#include "comic_flow.h"
|
||||
#include "qnaturalsorting.h"
|
||||
|
||||
#include "yacreader_global.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <QMutex>
|
||||
#include <QImageReader>
|
||||
#include <QTimer>
|
||||
|
||||
ComicFlow::ComicFlow(QWidget* parent,FlowType flowType)
|
||||
:YACReaderFlow(parent,flowType)
|
||||
{
|
||||
updateTimer = new QTimer;
|
||||
connect(updateTimer, SIGNAL(timeout()), this, SLOT(updateImageData()));
|
||||
|
||||
worker = new ImageLoader;
|
||||
connect(this, SIGNAL(centerIndexChanged(int)), this, SLOT(preload()));
|
||||
connect(this, SIGNAL(centerIndexChangedSilent(int)), this, SLOT(preload()));
|
||||
|
||||
setReflectionEffect(PlainReflection);
|
||||
}
|
||||
|
||||
ComicFlow::~ComicFlow()
|
||||
{
|
||||
delete worker;
|
||||
delete updateTimer;
|
||||
}
|
||||
|
||||
void ComicFlow::setImagePaths(const QStringList& paths)
|
||||
{
|
||||
clear();
|
||||
|
||||
//imagePath = path;
|
||||
imageFiles = paths;
|
||||
imagesLoaded.clear();
|
||||
imagesLoaded.fill(false,imageFiles.size());
|
||||
numImagesLoaded = 0;
|
||||
|
||||
imagesSetted.clear();
|
||||
imagesSetted.fill(false,imageFiles.size());
|
||||
|
||||
// populate with empty images
|
||||
QImage img; //TODO remove
|
||||
QString s;
|
||||
for(int i = 0; i < (int)imageFiles.size(); i++)
|
||||
{
|
||||
addSlide(img);
|
||||
s = imageFiles.at(i);
|
||||
s.remove(s.size()-4,4);
|
||||
if(QFileInfo(s+".r").exists())
|
||||
markSlide(i);
|
||||
}
|
||||
|
||||
setCenterIndex(0);
|
||||
worker->reset();
|
||||
preload();
|
||||
}
|
||||
|
||||
void ComicFlow::preload()
|
||||
{
|
||||
if(numImagesLoaded < imagesLoaded.size())
|
||||
updateTimer->start(30); //TODO comprobar rendimiento, originalmente era 70
|
||||
}
|
||||
|
||||
void ComicFlow::updateImageData()
|
||||
{
|
||||
// can't do anything, wait for the next possibility
|
||||
if(worker->busy())
|
||||
return;
|
||||
|
||||
// set image of last one
|
||||
int idx = worker->index();
|
||||
if( idx >= 0 && !worker->result().isNull())
|
||||
{
|
||||
if(!imagesSetted[idx])
|
||||
{
|
||||
setSlide(idx, worker->result());
|
||||
imagesSetted[idx] = true;
|
||||
numImagesLoaded++;
|
||||
imagesLoaded[idx]=true;
|
||||
}
|
||||
}
|
||||
|
||||
// try to load only few images on the left and right side
|
||||
// i.e. all visible ones plus some extra
|
||||
#define COUNT 8
|
||||
int indexes[2*COUNT+1];
|
||||
int center = centerIndex();
|
||||
indexes[0] = center;
|
||||
for(int j = 0; j < COUNT; j++)
|
||||
{
|
||||
indexes[j*2+1] = center+j+1;
|
||||
indexes[j*2+2] = center-j-1;
|
||||
}
|
||||
for(int c = 0; c < 2*COUNT+1; c++)
|
||||
{
|
||||
int i = indexes[c];
|
||||
if((i >= 0) && (i < slideCount()))
|
||||
if(!imagesLoaded[i])//slide(i).isNull())
|
||||
{
|
||||
// schedule thumbnail generation
|
||||
QString fname = imageFiles[i];
|
||||
|
||||
|
||||
worker->generate(i, fname, slideSize());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// no need to generate anything? stop polling...
|
||||
updateTimer->stop();
|
||||
}
|
||||
|
||||
void ComicFlow::keyPressEvent(QKeyEvent* event)
|
||||
{
|
||||
PictureFlow::keyPressEvent(event);
|
||||
}
|
||||
|
||||
void ComicFlow::wheelEvent(QWheelEvent * event)
|
||||
{
|
||||
if(event->delta()<0)
|
||||
showNext();
|
||||
else
|
||||
showPrevious();
|
||||
event->accept();
|
||||
}
|
||||
|
||||
void ComicFlow::removeSlide(int cover)
|
||||
{
|
||||
worker->lock();
|
||||
|
||||
worker->reset();
|
||||
|
||||
imageFiles.removeAt(cover);
|
||||
if(imagesLoaded[cover])
|
||||
numImagesLoaded--;
|
||||
imagesLoaded.remove(cover);
|
||||
imagesSetted.remove(cover);
|
||||
|
||||
YACReaderFlow::removeSlide(cover);
|
||||
worker->unlock();
|
||||
|
||||
preload();
|
||||
}
|
||||
//-----------------------------------------------------------------------------
|
||||
//ImageLoader
|
||||
//-----------------------------------------------------------------------------
|
||||
static QImage loadImage(const QString& fileName)
|
||||
{
|
||||
QImage image;
|
||||
bool result = image.load(fileName);
|
||||
|
||||
if(!result)
|
||||
return QImage();
|
||||
|
||||
return image;
|
||||
}
|
||||
|
||||
ImageLoader::ImageLoader():
|
||||
QThread(), restart(false), working(false), idx(-1)
|
||||
{
|
||||
}
|
||||
|
||||
ImageLoader::~ImageLoader()
|
||||
{
|
||||
mutex.lock();
|
||||
condition.wakeOne();
|
||||
mutex.unlock();
|
||||
wait();
|
||||
}
|
||||
|
||||
bool ImageLoader::busy() const
|
||||
{
|
||||
return isRunning() ? working : false;
|
||||
}
|
||||
|
||||
void ImageLoader::generate(int index, const QString& fileName, QSize size)
|
||||
{
|
||||
mutex.lock();
|
||||
this->idx = index;
|
||||
this->fileName = fileName;
|
||||
this->size = size;
|
||||
this->img = QImage();
|
||||
mutex.unlock();
|
||||
|
||||
if (!isRunning())
|
||||
start();
|
||||
else
|
||||
{
|
||||
// already running, wake up whenever ready
|
||||
restart = true;
|
||||
condition.wakeOne();
|
||||
}
|
||||
}
|
||||
|
||||
void ImageLoader::lock()
|
||||
{
|
||||
mutex.lock();
|
||||
}
|
||||
|
||||
void ImageLoader::unlock()
|
||||
{
|
||||
mutex.unlock();
|
||||
}
|
||||
|
||||
void ImageLoader::run()
|
||||
{
|
||||
for(;;)
|
||||
{
|
||||
// copy necessary data
|
||||
mutex.lock();
|
||||
this->working = true;
|
||||
QString fileName = this->fileName;
|
||||
mutex.unlock();
|
||||
|
||||
QImage image = loadImage(fileName);
|
||||
|
||||
// let everyone knows it is ready
|
||||
mutex.lock();
|
||||
this->working = false;
|
||||
this->img = image;
|
||||
mutex.unlock();
|
||||
|
||||
// put to sleep
|
||||
mutex.lock();
|
||||
if (!this->restart)
|
||||
condition.wait(&mutex);
|
||||
restart = false;
|
||||
mutex.unlock();
|
||||
}
|
||||
}
|
||||
|
||||
QImage ImageLoader::result()
|
||||
{
|
||||
return img;
|
||||
}
|
||||
77
YACReaderLibrary/comic_flow.h
Normal file
77
YACReaderLibrary/comic_flow.h
Normal file
@ -0,0 +1,77 @@
|
||||
#ifndef __COMICFLOW_H
|
||||
#define __COMICFLOW_H
|
||||
|
||||
#include "yacreader_flow.h"
|
||||
|
||||
#include <QtCore>
|
||||
#include <QObject>
|
||||
#include <QThread>
|
||||
#include <QImage>
|
||||
#include <QMutex>
|
||||
#include <QWaitCondition>
|
||||
#include <QString>
|
||||
#include <QWheelEvent>
|
||||
|
||||
class ImageLoader;
|
||||
class ComicFlow : public YACReaderFlow
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ComicFlow(QWidget* parent = 0,FlowType flowType = CoverFlowLike);
|
||||
virtual ~ComicFlow();
|
||||
|
||||
void setImagePaths(const QStringList& paths);
|
||||
//bool eventFilter(QObject *target, QEvent *event);
|
||||
void keyPressEvent(QKeyEvent* event);
|
||||
void removeSlide(int cover);
|
||||
|
||||
private slots:
|
||||
void preload();
|
||||
void updateImageData();
|
||||
|
||||
private:
|
||||
//QString imagePath;
|
||||
QStringList imageFiles;
|
||||
QVector<bool> imagesLoaded;
|
||||
QVector<bool> imagesSetted;
|
||||
int numImagesLoaded;
|
||||
QTimer* updateTimer;
|
||||
ImageLoader* worker;
|
||||
virtual void wheelEvent(QWheelEvent * event);
|
||||
};
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Source code of ImageLoader class was modified from http://code.google.com/p/photoflow/
|
||||
//------------------------------------------------------------------------------
|
||||
class ImageLoader : public QThread
|
||||
{
|
||||
public:
|
||||
ImageLoader();
|
||||
~ImageLoader();
|
||||
// returns FALSE if worker is still busy and can't take the task
|
||||
bool busy() const;
|
||||
void generate(int index, const QString& fileName, QSize size);
|
||||
void reset(){idx = -1;};
|
||||
int index() const { return idx; };
|
||||
void lock();
|
||||
void unlock();
|
||||
QImage result();
|
||||
|
||||
protected:
|
||||
void run();
|
||||
|
||||
private:
|
||||
QMutex mutex;
|
||||
QWaitCondition condition;
|
||||
|
||||
bool restart;
|
||||
bool working;
|
||||
int idx;
|
||||
QString fileName;
|
||||
QSize size;
|
||||
QImage img;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
345
YACReaderLibrary/comic_flow_widget.cpp
Normal file
345
YACReaderLibrary/comic_flow_widget.cpp
Normal file
@ -0,0 +1,345 @@
|
||||
#include "comic_flow_widget.h"
|
||||
|
||||
ComicFlowWidget::ComicFlowWidget(QWidget * parent)
|
||||
:QWidget(parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
ComicFlowWidgetSW::ComicFlowWidgetSW(QWidget * parent)
|
||||
:ComicFlowWidget(parent)
|
||||
{
|
||||
flow = new ComicFlow(parent);
|
||||
|
||||
connect(flow,SIGNAL(centerIndexChanged(int)),this,SIGNAL(centerIndexChanged(int)));
|
||||
connect(flow,SIGNAL(selected(unsigned int)),this,SIGNAL(selected(unsigned int)));
|
||||
|
||||
QVBoxLayout * l = new QVBoxLayout;
|
||||
l->addWidget(flow);
|
||||
setLayout(l);
|
||||
|
||||
//TODO eleminar "padding"
|
||||
QPalette Pal(palette());
|
||||
// set black background
|
||||
Pal.setColor(QPalette::Background, Qt::black);
|
||||
setAutoFillBackground(true);
|
||||
setPalette(Pal);
|
||||
|
||||
//config
|
||||
QMatrix m;
|
||||
m.rotate(-90);
|
||||
m.scale(-1,1);
|
||||
QImage image(":/images/setRead.png");
|
||||
QImage imageTransformed = image.transformed(m,Qt::SmoothTransformation);
|
||||
setMarkImage(imageTransformed);
|
||||
}
|
||||
|
||||
QSize ComicFlowWidgetSW::minimumSizeHint() const
|
||||
{
|
||||
return flow->minimumSizeHint();
|
||||
}
|
||||
QSize ComicFlowWidgetSW::sizeHint() const
|
||||
{
|
||||
return flow->sizeHint();
|
||||
}
|
||||
|
||||
void ComicFlowWidgetSW::setShowMarks(bool value)
|
||||
{
|
||||
flow->setShowMarks(value);
|
||||
}
|
||||
void ComicFlowWidgetSW::setMarks(QVector<YACReaderComicReadStatus> marks)
|
||||
{
|
||||
flow->setMarks(marks);
|
||||
}
|
||||
void ComicFlowWidgetSW::setMarkImage(QImage & image)
|
||||
{
|
||||
flow->setMarkImage(image);
|
||||
}
|
||||
void ComicFlowWidgetSW::markSlide(int index, YACReaderComicReadStatus status)
|
||||
{
|
||||
flow->markSlide(index,status);
|
||||
}
|
||||
void ComicFlowWidgetSW::unmarkSlide(int index)
|
||||
{
|
||||
flow->unmarkSlide(index);
|
||||
}
|
||||
void ComicFlowWidgetSW::setSlideSize(QSize size)
|
||||
{
|
||||
flow->setSlideSize(size);
|
||||
}
|
||||
void ComicFlowWidgetSW::clear()
|
||||
{
|
||||
flow->clear();
|
||||
}
|
||||
void ComicFlowWidgetSW::setImagePaths(QStringList paths)
|
||||
{
|
||||
flow->setImagePaths(paths);
|
||||
}
|
||||
void ComicFlowWidgetSW::setCenterIndex(int index)
|
||||
{
|
||||
flow->setCenterIndex(index);
|
||||
}
|
||||
void ComicFlowWidgetSW::showSlide(int index)
|
||||
{
|
||||
flow->showSlide(index);
|
||||
}
|
||||
int ComicFlowWidgetSW::centerIndex()
|
||||
{
|
||||
return flow->centerIndex();
|
||||
}
|
||||
void ComicFlowWidgetSW::updateMarks()
|
||||
{
|
||||
flow->updateMarks();
|
||||
}
|
||||
void ComicFlowWidgetSW::setFlowType(FlowType flowType)
|
||||
{
|
||||
flow->setFlowType(flowType);
|
||||
}
|
||||
void ComicFlowWidgetSW::render()
|
||||
{
|
||||
flow->render();
|
||||
}
|
||||
void ComicFlowWidgetSW::keyPressEvent(QKeyEvent* event)
|
||||
{
|
||||
flow->keyPressEvent(event);
|
||||
}
|
||||
void ComicFlowWidgetSW::paintEvent(QPaintEvent *event)
|
||||
{
|
||||
flow->paintEvent(event);
|
||||
}
|
||||
void ComicFlowWidgetSW::mousePressEvent(QMouseEvent* event)
|
||||
{
|
||||
flow->mousePressEvent(event);
|
||||
}
|
||||
void ComicFlowWidgetSW::resizeEvent(QResizeEvent* event)
|
||||
{
|
||||
flow->resizeEvent(event);
|
||||
}
|
||||
void ComicFlowWidgetSW::mouseDoubleClickEvent(QMouseEvent* event)
|
||||
{
|
||||
flow->mouseDoubleClickEvent(event);
|
||||
}
|
||||
void ComicFlowWidgetSW::updateConfig(QSettings * settings)
|
||||
{
|
||||
switch (settings->value(FLOW_TYPE_SW).toInt())
|
||||
{
|
||||
case CoverFlowLike:
|
||||
flow->setFlowType(CoverFlowLike);
|
||||
return;
|
||||
case Strip:
|
||||
flow->setFlowType(Strip);
|
||||
return;
|
||||
case StripOverlapped:
|
||||
flow->setFlowType(StripOverlapped);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void ComicFlowWidgetSW::remove(int cover)
|
||||
{
|
||||
flow->removeSlide(cover);
|
||||
}
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
///OpenGL ComicFlow
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
ComicFlowWidgetGL::ComicFlowWidgetGL(QWidget * parent)
|
||||
:ComicFlowWidget(parent)
|
||||
{
|
||||
flow = new YACReaderComicFlowGL(parent);
|
||||
|
||||
connect(flow,SIGNAL(centerIndexChanged(int)),this,SIGNAL(centerIndexChanged(int)));
|
||||
connect(flow,SIGNAL(selected(unsigned int)),this,SIGNAL(selected(unsigned int)));
|
||||
|
||||
QVBoxLayout * l = new QVBoxLayout;
|
||||
l->addWidget(flow);
|
||||
l->setContentsMargins(0,0,0,0);
|
||||
setLayout(l);
|
||||
|
||||
//TODO eleminar "padding"
|
||||
QPalette Pal(palette());
|
||||
// set black background
|
||||
Pal.setColor(QPalette::Background, Qt::black);
|
||||
setAutoFillBackground(true);
|
||||
setPalette(Pal);
|
||||
}
|
||||
|
||||
QSize ComicFlowWidgetGL::minimumSizeHint() const
|
||||
{
|
||||
return flow->minimumSizeHint();
|
||||
}
|
||||
QSize ComicFlowWidgetGL::sizeHint() const
|
||||
{
|
||||
return flow->sizeHint();
|
||||
}
|
||||
|
||||
void ComicFlowWidgetGL::setShowMarks(bool value)
|
||||
{
|
||||
flow->setShowMarks(value);
|
||||
}
|
||||
void ComicFlowWidgetGL::setMarks(QVector<YACReaderComicReadStatus> marks)
|
||||
{
|
||||
flow->setMarks(marks);
|
||||
}
|
||||
void ComicFlowWidgetGL::setMarkImage(QImage & image)
|
||||
{
|
||||
flow->setMarkImage(image);
|
||||
}
|
||||
void ComicFlowWidgetGL::markSlide(int index, YACReaderComicReadStatus status)
|
||||
{
|
||||
flow->markSlide(index,status);
|
||||
}
|
||||
void ComicFlowWidgetGL::unmarkSlide(int index)
|
||||
{
|
||||
flow->unmarkSlide(index);
|
||||
}
|
||||
void ComicFlowWidgetGL::setSlideSize(QSize size)
|
||||
{
|
||||
flow->setSlideSize(size);
|
||||
}
|
||||
void ComicFlowWidgetGL::clear()
|
||||
{
|
||||
flow->clear();
|
||||
}
|
||||
void ComicFlowWidgetGL::setImagePaths(QStringList paths)
|
||||
{
|
||||
flow->setImagePaths(paths);
|
||||
}
|
||||
void ComicFlowWidgetGL::setCenterIndex(int index)
|
||||
{
|
||||
flow->setCenterIndex(index);
|
||||
}
|
||||
void ComicFlowWidgetGL::showSlide(int index)
|
||||
{
|
||||
flow->showSlide(index);
|
||||
}
|
||||
int ComicFlowWidgetGL::centerIndex()
|
||||
{
|
||||
return flow->centerIndex();
|
||||
}
|
||||
void ComicFlowWidgetGL::updateMarks()
|
||||
{
|
||||
flow->updateMarks();
|
||||
}
|
||||
void ComicFlowWidgetGL::setFlowType(FlowType flowType)
|
||||
{
|
||||
if(flowType == CoverFlowLike)
|
||||
flow->setPreset(presetYACReaderFlowClassicConfig);
|
||||
else if(flowType == Strip)
|
||||
flow->setPreset(presetYACReaderFlowStripeConfig);
|
||||
else if(flowType == StripOverlapped)
|
||||
flow->setPreset(presetYACReaderFlowOverlappedStripeConfig);
|
||||
else
|
||||
flow->setPreset(defaultYACReaderFlowConfig);
|
||||
}
|
||||
void ComicFlowWidgetGL::render()
|
||||
{
|
||||
flow->render();
|
||||
}
|
||||
void ComicFlowWidgetGL::keyPressEvent(QKeyEvent* event)
|
||||
{
|
||||
flow->keyPressEvent(event);
|
||||
}
|
||||
void ComicFlowWidgetGL::paintEvent(QPaintEvent *event)
|
||||
{
|
||||
//flow->paintEvent(event);
|
||||
ComicFlowWidget::paintEvent(event);
|
||||
}
|
||||
void ComicFlowWidgetGL::mousePressEvent(QMouseEvent* event)
|
||||
{
|
||||
flow->mousePressEvent(event);
|
||||
}
|
||||
void ComicFlowWidgetGL::resizeEvent(QResizeEvent* event)
|
||||
{
|
||||
flow->resizeGL(event->size().width(),event->size().height());
|
||||
}
|
||||
void ComicFlowWidgetGL::mouseDoubleClickEvent(QMouseEvent* event)
|
||||
{
|
||||
flow->mouseDoubleClickEvent(event);
|
||||
}
|
||||
|
||||
void ComicFlowWidgetGL::updateConfig(QSettings * settings)
|
||||
{
|
||||
Performance performance = medium;
|
||||
|
||||
switch (settings->value(PERFORMANCE).toInt())
|
||||
{
|
||||
case 0:
|
||||
performance = low;
|
||||
break;
|
||||
case 1:
|
||||
performance = medium;
|
||||
break;
|
||||
case 2:
|
||||
performance = high;
|
||||
break;
|
||||
case 3:
|
||||
performance = ultraHigh;
|
||||
break;
|
||||
}
|
||||
|
||||
flow->setPerformance(performance);
|
||||
if(!settings->contains(V_SYNC))
|
||||
flow->useVSync(false);
|
||||
else
|
||||
flow->useVSync(settings->value(V_SYNC).toBool());
|
||||
|
||||
switch (settings->value(FLOW_TYPE_GL).toInt())
|
||||
{
|
||||
case 0:
|
||||
flow->setPreset(presetYACReaderFlowClassicConfig);
|
||||
return;
|
||||
case 1:
|
||||
flow->setPreset(presetYACReaderFlowStripeConfig);
|
||||
return;
|
||||
case 2:
|
||||
flow->setPreset(presetYACReaderFlowOverlappedStripeConfig);
|
||||
return;
|
||||
case 3:
|
||||
flow->setPreset(defaultYACReaderFlowConfig);
|
||||
return;
|
||||
case 4:
|
||||
flow->setPreset(pressetYACReaderFlowDownConfig);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
//custom config
|
||||
|
||||
flow->setCF_RX(settings->value(X_ROTATION).toInt());
|
||||
flow->setCF_Y(settings->value(Y_POSITION).toInt());
|
||||
flow->setX_Distance(settings->value(COVER_DISTANCE).toInt());
|
||||
flow->setCenter_Distance(settings->value(CENTRAL_DISTANCE).toInt());
|
||||
flow->setCF_Z(settings->value(ZOOM_LEVEL).toInt());
|
||||
flow->setY_Distance(settings->value(Y_COVER_OFFSET).toInt());
|
||||
flow->setZ_Distance(settings->value(Z_COVER_OFFSET).toInt());
|
||||
flow->setRotation(settings->value(COVER_ROTATION).toInt());
|
||||
flow->setFadeOutDist(settings->value(FADE_OUT_DIST).toInt());
|
||||
flow->setLightStrenght(settings->value(LIGHT_STRENGTH).toInt());
|
||||
flow->setMaxAngle(settings->value(MAX_ANGLE).toInt());
|
||||
|
||||
/* flow->setVisibility(settings->value("visibilityDistance").toInt());
|
||||
flow->setLightStrenght(settings->value("lightStrength").toInt())*/;
|
||||
|
||||
}
|
||||
|
||||
void ComicFlowWidgetGL::remove(int cover)
|
||||
{
|
||||
flow->remove(cover);
|
||||
}
|
||||
|
||||
//void ComicFlowWidgetGL::setCF_RX(int value){ flow->setCF_RX(value);}
|
||||
//void ComicFlowWidgetGL::setCF_RY(int value){ flow->setCF_RY(value);}
|
||||
//void ComicFlowWidgetGL::setCF_RZ(int value){ flow->setCF_RZ(value);}
|
||||
//void ComicFlowWidgetGL::setZoom(int zoom){ flow->setZoom(zoom);}
|
||||
//void ComicFlowWidgetGL::setRotation(int angle){ flow->setRotation(angle);}
|
||||
//void ComicFlowWidgetGL::setX_Distance(int distance){ flow->setX_Distance(distance);}
|
||||
//void ComicFlowWidgetGL::setCenter_Distance(int distance){ flow->setCenter_Distance(distance);}
|
||||
//void ComicFlowWidgetGL::setZ_Distance(int distance){ flow->setZ_Distance(distance);}
|
||||
//void ComicFlowWidgetGL::setCF_Y(int value){ flow->setCF_Y(value);}
|
||||
//void ComicFlowWidgetGL::setY_Distance(int value){ flow->setY_Distance(value);}
|
||||
//void ComicFlowWidgetGL::setPreset(const Preset & p){ flow->setPreset(p);}
|
||||
128
YACReaderLibrary/comic_flow_widget.h
Normal file
128
YACReaderLibrary/comic_flow_widget.h
Normal file
@ -0,0 +1,128 @@
|
||||
#ifndef __COMIC_FLOW_WIDGET_H
|
||||
#define __COMIC_FLOW_WIDGET_H
|
||||
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
#include "pictureflow.h"
|
||||
#include "comic_flow.h"
|
||||
#include "yacreader_flow_gl.h"
|
||||
|
||||
class ComicFlowWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ComicFlowWidget(QWidget * paret = 0);
|
||||
|
||||
public slots:
|
||||
virtual void setShowMarks(bool value) = 0;
|
||||
virtual void setMarks(QVector<YACReaderComicReadStatus> marks) = 0;
|
||||
virtual void setMarkImage(QImage & image) = 0;
|
||||
virtual void markSlide(int index, YACReaderComicReadStatus status) = 0;
|
||||
virtual void unmarkSlide(int index) = 0;
|
||||
virtual void setSlideSize(QSize size) = 0;
|
||||
virtual void clear() = 0;
|
||||
virtual void setImagePaths(QStringList paths) = 0;
|
||||
virtual void setCenterIndex(int index) = 0;
|
||||
virtual void showSlide(int index) = 0;
|
||||
virtual int centerIndex() = 0;
|
||||
virtual void updateMarks() = 0;
|
||||
virtual void setFlowType(FlowType flowType) = 0;
|
||||
virtual void render() = 0;
|
||||
virtual void updateConfig(QSettings * settings) = 0;
|
||||
virtual void remove(int cover) = 0;
|
||||
signals:
|
||||
void centerIndexChanged(int);
|
||||
void selected(unsigned int);
|
||||
};
|
||||
|
||||
|
||||
class ComicFlowWidgetSW : public ComicFlowWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
ComicFlow * flow;
|
||||
public:
|
||||
ComicFlowWidgetSW(QWidget * parent = 0);
|
||||
|
||||
void setShowMarks(bool value);
|
||||
void setMarks(QVector<YACReaderComicReadStatus> marks);
|
||||
void setMarkImage(QImage & image);
|
||||
void markSlide(int index, YACReaderComicReadStatus status);
|
||||
void unmarkSlide(int index);
|
||||
void setSlideSize(QSize size);
|
||||
void clear();
|
||||
void setImagePaths(QStringList paths);
|
||||
void setCenterIndex(int index);
|
||||
void showSlide(int index);
|
||||
int centerIndex();
|
||||
void updateMarks();
|
||||
void setFlowType(FlowType flowType);
|
||||
void render();
|
||||
void updateConfig(QSettings * settings);
|
||||
void remove(int cover);
|
||||
protected:
|
||||
void keyPressEvent(QKeyEvent* event);
|
||||
void paintEvent(QPaintEvent *event);
|
||||
void mousePressEvent(QMouseEvent* event);
|
||||
void resizeEvent(QResizeEvent* event);
|
||||
void mouseDoubleClickEvent(QMouseEvent* event);
|
||||
QSize minimumSizeHint() const;
|
||||
QSize sizeHint() const;
|
||||
QSize slideSizeW;
|
||||
QSize slideSizeF;
|
||||
};
|
||||
|
||||
class ComicFlowWidgetGL : public ComicFlowWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
YACReaderComicFlowGL * flow;
|
||||
public:
|
||||
ComicFlowWidgetGL(QWidget * parent = 0);
|
||||
|
||||
void setShowMarks(bool value);
|
||||
void setMarks(QVector<YACReaderComicReadStatus> marks);
|
||||
void setMarkImage(QImage & image);
|
||||
void markSlide(int index, YACReaderComicReadStatus status);
|
||||
void unmarkSlide(int index);
|
||||
void setSlideSize(QSize size);
|
||||
void clear();
|
||||
void setImagePaths(QStringList paths);
|
||||
void setCenterIndex(int index);
|
||||
void showSlide(int index);
|
||||
int centerIndex();
|
||||
void updateMarks();
|
||||
void setFlowType(FlowType flowType);
|
||||
void render();
|
||||
void updateConfig(QSettings * settings);
|
||||
void remove(int cover);
|
||||
//public slots:
|
||||
// void setCF_RX(int value);
|
||||
// //the Y Rotation of the Coverflow
|
||||
// void setCF_RY(int value);
|
||||
// //the Z Rotation of the Coverflow
|
||||
// void setCF_RZ(int value);
|
||||
// //perspective
|
||||
// void setZoom(int zoom);
|
||||
// void setRotation(int angle);
|
||||
// //sets the distance between the covers
|
||||
// void setX_Distance(int distance);
|
||||
// //sets the distance between the centered and the non centered covers
|
||||
// void setCenter_Distance(int distance);
|
||||
// //sets the pushback amount
|
||||
// void setZ_Distance(int distance);
|
||||
// void setCF_Y(int value);
|
||||
// void setY_Distance(int value);
|
||||
// void setPreset(const Preset & p);
|
||||
protected:
|
||||
void keyPressEvent(QKeyEvent* event);
|
||||
void paintEvent(QPaintEvent *event);
|
||||
void mousePressEvent(QMouseEvent* event);
|
||||
void resizeEvent(QResizeEvent* event);
|
||||
void mouseDoubleClickEvent(QMouseEvent* event);
|
||||
QSize minimumSizeHint() const;
|
||||
QSize sizeHint() const;
|
||||
};
|
||||
|
||||
#endif
|
||||
68
YACReaderLibrary/comic_vine/api_key_dialog.cpp
Normal file
68
YACReaderLibrary/comic_vine/api_key_dialog.cpp
Normal file
@ -0,0 +1,68 @@
|
||||
#include "api_key_dialog.h"
|
||||
|
||||
#include <QVBoxLayout>
|
||||
#include <QHBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
#include <QPushButton>
|
||||
#include <QSettings>
|
||||
|
||||
#include "yacreader_global.h"
|
||||
|
||||
ApiKeyDialog::ApiKeyDialog(QWidget *parent) :
|
||||
QDialog(parent)
|
||||
{
|
||||
QVBoxLayout * layout = new QVBoxLayout;
|
||||
QHBoxLayout * buttonsLayout = new QHBoxLayout;
|
||||
|
||||
settings = new QSettings(YACReader::getSettingsPath()+"/YACReaderLibrary.ini",QSettings::IniFormat); //TODO unificar la creación del fichero de config con el servidor
|
||||
settings->beginGroup("ComicVine");
|
||||
|
||||
QLabel * info = new QLabel(tr("Before you can connect to Comic Vine, you need your own API key. Please, get one free <a href=\"http://www.comicvine.com/api/\">here</a>"));
|
||||
info->setWordWrap(true);
|
||||
info->setOpenExternalLinks(true);
|
||||
edit = new QLineEdit();
|
||||
edit->setPlaceholderText(tr("Paste here your Comic Vine API key"));
|
||||
connect(edit,SIGNAL(textChanged(QString)),this,SLOT(enableAccept(QString)));
|
||||
|
||||
acceptButton = new QPushButton(tr("Accept"));
|
||||
acceptButton->setDisabled(true);
|
||||
connect(acceptButton,SIGNAL(clicked()),this,SLOT(saveApiKey()));
|
||||
|
||||
cancelButton = new QPushButton(tr("Cancel"));
|
||||
connect(cancelButton,SIGNAL(clicked()),this,SLOT(reject()));
|
||||
|
||||
layout->addWidget(info);
|
||||
layout->addWidget(edit);
|
||||
layout->addStretch();
|
||||
|
||||
buttonsLayout->addStretch();
|
||||
buttonsLayout->addWidget(acceptButton);
|
||||
buttonsLayout->addWidget(cancelButton);
|
||||
|
||||
layout->addLayout(buttonsLayout);
|
||||
|
||||
setLayout(layout);
|
||||
|
||||
resize(400,150);
|
||||
|
||||
if(settings->contains(COMIC_VINE_API_KEY))
|
||||
edit->setText(settings->value(COMIC_VINE_API_KEY).toString());
|
||||
}
|
||||
|
||||
ApiKeyDialog::~ApiKeyDialog()
|
||||
{
|
||||
delete settings;
|
||||
}
|
||||
|
||||
void ApiKeyDialog::enableAccept(const QString &text)
|
||||
{
|
||||
//TODO key validation
|
||||
acceptButton->setEnabled(!text.isEmpty());
|
||||
}
|
||||
|
||||
void ApiKeyDialog::saveApiKey()
|
||||
{
|
||||
settings->setValue(COMIC_VINE_API_KEY,edit->text());
|
||||
accept();
|
||||
}
|
||||
31
YACReaderLibrary/comic_vine/api_key_dialog.h
Normal file
31
YACReaderLibrary/comic_vine/api_key_dialog.h
Normal file
@ -0,0 +1,31 @@
|
||||
#ifndef API_KEY_DIALOG_H
|
||||
#define API_KEY_DIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
class QPushButton;
|
||||
class QLineEdit;
|
||||
class QSettings;
|
||||
|
||||
class ApiKeyDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ApiKeyDialog(QWidget *parent = 0);
|
||||
~ApiKeyDialog();
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
protected slots:
|
||||
void enableAccept(const QString & text);
|
||||
void saveApiKey();
|
||||
|
||||
protected:
|
||||
QPushButton * acceptButton;
|
||||
QPushButton * cancelButton;
|
||||
QLineEdit * edit;
|
||||
QSettings * settings;
|
||||
};
|
||||
|
||||
#endif // API_KEY_DIALOG_H
|
||||
46
YACReaderLibrary/comic_vine/comic_vine.pri
Normal file
46
YACReaderLibrary/comic_vine/comic_vine.pri
Normal file
@ -0,0 +1,46 @@
|
||||
|
||||
HEADERS += \
|
||||
comic_vine/comic_vine_dialog.h \
|
||||
comic_vine/comic_vine_client.h \
|
||||
comic_vine/scraper_lineedit.h \
|
||||
comic_vine/title_header.h \
|
||||
comic_vine/series_question.h \
|
||||
comic_vine/search_single_comic.h \
|
||||
comic_vine/search_volume.h \
|
||||
comic_vine/select_comic.h \
|
||||
comic_vine/select_volume.h \
|
||||
comic_vine/model/volumes_model.h \
|
||||
comic_vine/model/comics_model.h \
|
||||
comic_vine/model/json_model.h \
|
||||
comic_vine/model/response_parser.h \
|
||||
comic_vine/scraper_tableview.h \
|
||||
comic_vine/sort_volume_comics.h \
|
||||
comic_vine/model/local_comic_list_model.h \
|
||||
comic_vine/model/volume_comics_model.h \
|
||||
comic_vine/scraper_scroll_label.h \
|
||||
comic_vine/scraper_results_paginator.h \
|
||||
comic_vine/scraper_selector.h \
|
||||
comic_vine/api_key_dialog.h
|
||||
|
||||
SOURCES += \
|
||||
comic_vine/comic_vine_dialog.cpp \
|
||||
comic_vine/comic_vine_client.cpp \
|
||||
comic_vine/scraper_lineedit.cpp \
|
||||
comic_vine/title_header.cpp \
|
||||
comic_vine/series_question.cpp \
|
||||
comic_vine/search_single_comic.cpp \
|
||||
comic_vine/search_volume.cpp \
|
||||
comic_vine/select_comic.cpp \
|
||||
comic_vine/select_volume.cpp \
|
||||
comic_vine/model/volumes_model.cpp \
|
||||
comic_vine/model/comics_model.cpp \
|
||||
comic_vine/model/json_model.cpp \
|
||||
comic_vine/model/response_parser.cpp \
|
||||
comic_vine/scraper_tableview.cpp \
|
||||
comic_vine/sort_volume_comics.cpp \
|
||||
comic_vine/model/local_comic_list_model.cpp \
|
||||
comic_vine/model/volume_comics_model.cpp \
|
||||
comic_vine/scraper_scroll_label.cpp \
|
||||
comic_vine/scraper_results_paginator.cpp \
|
||||
comic_vine/scraper_selector.cpp \
|
||||
comic_vine/api_key_dialog.cpp
|
||||
171
YACReaderLibrary/comic_vine/comic_vine_client.cpp
Normal file
171
YACReaderLibrary/comic_vine/comic_vine_client.cpp
Normal file
@ -0,0 +1,171 @@
|
||||
#include "comic_vine_client.h"
|
||||
|
||||
//this is the API key used by YACReader to access Comic Vine
|
||||
//please, do not use it in your own software, get one for free at Comic Vine
|
||||
static const QString CV_API_KEY = "%CV_API_KEY%"; //get from settings
|
||||
static const QString CV_API_KEY_DEFAULT = "46680bebb358f1de690a5a365e15d325f9649f91";
|
||||
|
||||
static const QString CV_WEB_ADDRESS = "http://www.comicvine.com/api";
|
||||
|
||||
//gets any volumen containing any comic matching 'query'
|
||||
static const QString CV_SEARCH = CV_WEB_ADDRESS + "/search/?api_key=" + CV_API_KEY +
|
||||
"&format=json&limit=100&resources=volume"
|
||||
"&field_list=name,start_year,publisher,id,image,count_of_issues,deck"
|
||||
"&sort=name:asc"
|
||||
"&query=%1&page=%2";
|
||||
//http://www.comicvine.com/api/search/?api_key=46680bebb358f1de690a5a365e15d325f9649f91&format=json&limit=100&resources=volume&field_list=name,start_year,publisher,id,image,count_of_issues,deck&query=superman
|
||||
|
||||
//gets the detail for a volume %1
|
||||
static const QString CV_SERIES_DETAIL = CV_WEB_ADDRESS + "/volume/4050-%1/?api_key=" + CV_API_KEY +
|
||||
"&format=json&field_list=name,start_year,publisher,image,count_of_issues,id,description";
|
||||
|
||||
//gets info for comics in a volume id %1
|
||||
static const QString CV_COMICS_INFO = CV_WEB_ADDRESS + "/issues/?api_key=" + CV_API_KEY +
|
||||
"&format=json&field_list=name,issue_number,id,image&filter=volume:%1"
|
||||
"&sort=cover_date:asc" //sorting by cover_date, because comic vine doesn't use natural sorting (issue_number -> 1 10 11 ... 100 2 20 21....)
|
||||
"&offset=%2";
|
||||
|
||||
//"http://www.comicvine.com/api/issues/?api_key=46680bebb358f1de690a5a365e15d325f9649f91&format=json&field_list=name,issue_number,id,image&filter=volume:%1&page=%2
|
||||
|
||||
//gets id for comic number %2 in a volume id %1
|
||||
static const QString CV_COMIC_ID = CV_WEB_ADDRESS + "/issues/?api_key=" + CV_API_KEY +
|
||||
"&format=json&field_list=name,issue_number,id,image"
|
||||
"&filter=volume:%1,issue_number:%2";
|
||||
//gets comic detail
|
||||
static const QString CV_COMIC_DETAIL = CV_WEB_ADDRESS + "/issue/4000-%1/?api_key=" + CV_API_KEY + "&format=json";
|
||||
//http://www.comicvine.com/api/issue/4000-%1/?api_key=46680bebb358f1de690a5a365e15d325f9649f91&format=json
|
||||
|
||||
//gets comic cover URL
|
||||
static const QString CV_COVER_URL = CV_WEB_ADDRESS + "/issue/4000-%1/?api_key=" + CV_API_KEY + "&format=json&field_list=image";
|
||||
|
||||
//gets comics matching name %1 and number %2
|
||||
//http://comicvine.com/api/issues/?api_key=46680bebb358f1de690a5a365e15d325f9649f91&limit=20&filter=name:super,issue_number:15
|
||||
|
||||
ComicVineClient::ComicVineClient(QObject *parent) :
|
||||
QObject(parent)
|
||||
{
|
||||
settings = new QSettings(YACReader::getSettingsPath()+"/YACReaderLibrary.ini",QSettings::IniFormat); //TODO unificar la creación del fichero de config con el servidor
|
||||
settings->beginGroup("ComicVine");
|
||||
}
|
||||
|
||||
ComicVineClient::~ComicVineClient()
|
||||
{
|
||||
delete settings;
|
||||
}
|
||||
|
||||
//CV_SEARCH
|
||||
void ComicVineClient::search(const QString & query, int page)
|
||||
{
|
||||
HttpWorker * search = new HttpWorker(QString(CV_SEARCH).replace(CV_API_KEY,settings->value(COMIC_VINE_API_KEY,CV_API_KEY_DEFAULT).toString()).arg(query).arg(page));
|
||||
connect(search,SIGNAL(dataReady(const QByteArray &)),this,SLOT(proccessVolumesSearchData(const QByteArray &)));
|
||||
connect(search,SIGNAL(timeout()),this,SIGNAL(timeOut()));
|
||||
connect(search,SIGNAL(finished()),search,SLOT(deleteLater()));
|
||||
search->get();
|
||||
}
|
||||
//CV_SEARCH result
|
||||
void ComicVineClient::proccessVolumesSearchData(const QByteArray & data)
|
||||
{
|
||||
QString json(data);
|
||||
emit searchResult(json);
|
||||
emit finished();
|
||||
}
|
||||
|
||||
void ComicVineClient::proccessSeriesDetailData(const QByteArray &data)
|
||||
{
|
||||
QString json(data);
|
||||
emit seriesDetail(json);
|
||||
emit finished();
|
||||
}
|
||||
|
||||
void ComicVineClient::processVolumeComicsInfo(const QByteArray &data)
|
||||
{
|
||||
QString json(data);
|
||||
emit volumeComicsInfo(json);
|
||||
emit finished();
|
||||
}
|
||||
|
||||
void ComicVineClient::proccessComicDetailData(const QByteArray &data)
|
||||
{
|
||||
QString json(data);
|
||||
emit comicDetail(json);
|
||||
emit finished();
|
||||
}
|
||||
|
||||
//CV_SERIES_DETAIL
|
||||
void ComicVineClient::getSeriesDetail(const QString & id)
|
||||
{
|
||||
HttpWorker * search = new HttpWorker(QString(CV_SERIES_DETAIL).replace(CV_API_KEY,settings->value(COMIC_VINE_API_KEY,CV_API_KEY_DEFAULT).toString()).arg(id));
|
||||
connect(search,SIGNAL(dataReady(const QByteArray &)),this,SLOT(proccessSeriesDetailData(const QByteArray &)));
|
||||
connect(search,SIGNAL(timeout()),this,SIGNAL(timeOut()));
|
||||
connect(search,SIGNAL(finished()),search,SLOT(deleteLater()));
|
||||
search->get();
|
||||
}
|
||||
|
||||
void ComicVineClient::getSeriesCover(const QString & url)
|
||||
{
|
||||
HttpWorker * search = new HttpWorker(url);
|
||||
connect(search,SIGNAL(dataReady(const QByteArray &)),this,SIGNAL(seriesCover(const QByteArray &)));
|
||||
connect(search,SIGNAL(timeout()),this,SIGNAL(timeOut())); //TODO
|
||||
connect(search,SIGNAL(finished()),search,SLOT(deleteLater()));
|
||||
search->get();
|
||||
}
|
||||
|
||||
//CV_COMIC_IDS
|
||||
void ComicVineClient::getVolumeComicsInfo(const QString & idVolume, int page)
|
||||
{
|
||||
HttpWorker * search = new HttpWorker(QString(CV_COMICS_INFO).replace(CV_API_KEY,settings->value(COMIC_VINE_API_KEY,CV_API_KEY_DEFAULT).toString()).arg(idVolume).arg((page-1)*100)); //page on works for search, using offset instead
|
||||
connect(search,SIGNAL(dataReady(const QByteArray &)),this,SLOT(processVolumeComicsInfo(const QByteArray &)));
|
||||
connect(search,SIGNAL(timeout()),this,SIGNAL(timeOut())); //TODO
|
||||
connect(search,SIGNAL(finished()),search,SLOT(deleteLater()));
|
||||
search->get();
|
||||
}
|
||||
|
||||
//CV_COMIC_ID
|
||||
void ComicVineClient::getComicId(const QString & id, int comicNumber)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//CV_COMIC_DETAIL
|
||||
QByteArray ComicVineClient::getComicDetail(const QString & id, bool & outError, bool & outTimeout)
|
||||
{
|
||||
HttpWorker * search = new HttpWorker(QString(CV_COMIC_DETAIL).replace(CV_API_KEY,settings->value(COMIC_VINE_API_KEY,CV_API_KEY_DEFAULT).toString()).arg(id));
|
||||
|
||||
//connect(search,SIGNAL(dataReady(const QByteArray &)),this,SLOT(proccessComicDetailData(const QByteArray &)));
|
||||
//connect(search,SIGNAL(timeout()),this,SIGNAL(timeOut()));
|
||||
//connect(search,SIGNAL(finished()),search,SLOT(deleteLater()));
|
||||
search->get();
|
||||
search->wait();
|
||||
outError = !(search->wasValid());
|
||||
outTimeout = search->wasTimeout();
|
||||
QByteArray result = search->getResult();
|
||||
delete search;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
//CV_COMIC_DETAIL
|
||||
void ComicVineClient::getComicDetailAsync(const QString & id)
|
||||
{
|
||||
HttpWorker * search = new HttpWorker(QString(CV_COMIC_DETAIL).replace(CV_API_KEY,settings->value(COMIC_VINE_API_KEY,CV_API_KEY_DEFAULT).toString()).arg(id));
|
||||
|
||||
connect(search,SIGNAL(dataReady(const QByteArray &)),this,SLOT(proccessComicDetailData(const QByteArray &)));
|
||||
connect(search,SIGNAL(timeout()),this,SIGNAL(timeOut()));
|
||||
connect(search,SIGNAL(finished()),search,SLOT(deleteLater()));
|
||||
search->get();
|
||||
}
|
||||
|
||||
void ComicVineClient::getComicCover(const QString &url)
|
||||
{
|
||||
HttpWorker * search = new HttpWorker(url);
|
||||
connect(search,SIGNAL(dataReady(const QByteArray &)),this,SIGNAL(comicCover(QByteArray)));
|
||||
connect(search,SIGNAL(timeout()),this,SIGNAL(timeOut())); //TODO
|
||||
connect(search,SIGNAL(finished()),search,SLOT(deleteLater()));
|
||||
search->get();
|
||||
}
|
||||
|
||||
//CV_COVER_DETAIL
|
||||
void ComicVineClient::getCoverURL(const QString & id)
|
||||
{
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user