pax_global_header 0000666 0000000 0000000 00000000064 14555431165 0014523 g ustar 00root root 0000000 0000000 52 comment=821f2ea84710c220e46dc0785b4a5567bc4cf7aa
lomiri-ui-extras-0.6.3/ 0000775 0000000 0000000 00000000000 14555431165 0014743 5 ustar 00root root 0000000 0000000 lomiri-ui-extras-0.6.3/.gitignore 0000664 0000000 0000000 00000001046 14555431165 0016734 0 ustar 00root root 0000000 0000000 *.qmlproject.user
CMakeCache.txt
CMakeLists.txt.user
CMakeFiles/
cmake_install.cmake
cmake_uninstall.cmake
Makefile
install_manifest.txt
CTestTestfile.cmake
Testing/
*.moc
moc_*.cpp
*_automoc.cpp
tests/unittests/tst_QmlTests
tests/unittests/tst_CommandLineParserTests
tests/unittests/tst_HistoryModelTests
tests/unittests/tst_HistoryMatchesModelTests
tests/unittests/tst_TabsModelTests
po/*.gmo
obj-*
debian/files
debian/tmp/
debian/qml-module-lomiri-components-extras/
debian/*.debhelper
debian/*.debhelper.log
debian/*.substvars
debian/stamp-*
lomiri-ui-extras-0.6.3/AUTHORS 0000664 0000000 0000000 00000002300 14555431165 0016006 0 ustar 00root root 0000000 0000000 Aashrut
Abdullah AL Shohag
Advocatux
Ahmed Suliman
Aitzol Berasategi
Allan Nordhøy
Andrew Hayzen
Anne Onyme
Anonymous
Arthur Mello
Aurelio Cilia
Bill Filler
Bittin1ddc447d824349b2
Cflep
Dalton Durst
Dan
Dano6
Ege Öz
Ennio Lavagnini
Enolp
Eugene
Florian Boucault
Florian Leeber
Gallegonovato
Gnu-ewm
Guenter Schwann
Guido Berhoerster
Heimen Stoffels
Hosted Weblate
HSN80
Hussain Hashem Aljafri
Ierihon
Ivo Xavier
Jan Sprinz
Jaume Angrill
Jiri Grönroos
Joan CiberSheep
Jonas G Drange
Jonatan Hatakeyama Zeidler
Jozef Mlich
Ken VanDine
Louies
Louies0623
Łukasz 'sil2100' Zemczak
Luna Jernberg
Lxdb
Marius Gripsgard
Mike
Mike Gabriel
Milan Korecky
Milan Korecký
Moo
M Sugahara
Muhammad
Neutrum N
NPL
Øjvind Fritjof Arnfred
Omer Akram
OPNA2608
Pavel Borecki
P_E_T_O
P -H Lin
Phlostically
Ratchanan Srirattanamet
Ricardo Salveti De Araujo
Riccardo Riccio
Rodney
Rodney Dawes
Rodrigo Benedito
Rúben Carneiro
Rudra Harsh V Singh
Ryan Argente
Sami Törmänen
Samson
Sander
Sebastien Bacher
Sergii Horichenko
SongInseo
Stefan
Stefan Weng
StefWe
Sylke Vicious
Temuri Doghonadze
Thanakit Srisearmpok
Timo Jyrinki
Timothy G
Tom Dom
Tom Rausner
Ugo Riboni
Vinícius F
Walter Garcia-Fontes
Weblate
Yasser Lotfy
不朽正义
lomiri-ui-extras-0.6.3/CMakeLists.txt 0000664 0000000 0000000 00000002065 14555431165 0017506 0 ustar 00root root 0000000 0000000 cmake_minimum_required(VERSION 3.5)
project(lomiri-ui-extras VERSION 0.6.3)
# Standard install paths
include(GNUInstallDirs)
option(ENABLE_TESTS "Build test programs" ON)
# enable QML debugging
if(CMAKE_BUILD_TYPE MATCHES DEBUG OR CMAKE_BUILD_TYPE MATCHES "Debug")
add_definitions(-DQT_QML_DEBUG)
endif()
find_package(Qt5Core REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Quick REQUIRED)
find_package(Qt5DBus REQUIRED)
find_package(Qt5Xml REQUIRED)
find_package(Qt5Test)
add_definitions(-DQT_NO_KEYWORDS)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
# make non compiled files visible in qtcreator
file(GLOB_RECURSE NON_COMPILED_FILES *.qml *.js *.py *.svg *.png *.in *.json *.desktop *.pot qmldir)
add_custom_target(NON_COMPILED_TARGET ALL SOURCES ${NON_COMPILED_FILES})
# for dh_translations to extract the domain
# (regarding syntax consistency, see http://pad.lv/1181187)
set (GETTEXT_PACKAGE "lomiri-ui-extras")
add_subdirectory(modules)
if(ENABLE_TESTS)
enable_testing()
add_subdirectory(tests)
endif()
add_subdirectory(po)
lomiri-ui-extras-0.6.3/COPYING 0000664 0000000 0000000 00000104513 14555431165 0016002 0 ustar 00root root 0000000 0000000 GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
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.
Copyright (C)
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 .
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:
Copyright (C)
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
.
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
.
lomiri-ui-extras-0.6.3/ChangeLog 0000664 0000000 0000000 00000242547 14555431165 0016533 0 ustar 00root root 0000000 0000000 2024-01-28 Mike Gabriel
* Release 0.6.3 (HEAD -> main, tag: 0.6.3)
2023-12-31 phlostically
* Translated using Weblate (Esperanto) (9fadfeb)
2023-12-27 Weblate
* Added translation using Weblate (Chinese (Simplified)
(zh_LATN@pinyin)) (f754a7a)
* Added translation using Weblate (Tamil (Sri Lanka)) (6a8d3f6)
* Added translation using Weblate (German (Walser)) (4325a5f)
* Added translation using Weblate (Meadow Mari) (4c610c4)
* Added translation using Weblate (Crimean Tatar) (2c7bf99)
* Added translation using Weblate (Chuvash) (f8f4f40)
* Added translation using Weblate (Silesian) (4f67e50)
* Added translation using Weblate (Latin) (58115d5)
* Added translation using Weblate (Venetian) (7391fcf)
* Added translation using Weblate (Ossetian) (117065a)
* Added translation using Weblate (Sami (Northern)) (ca527ab)
* Added translation using Weblate (Greenlandic) (5079ff7)
* Added translation using Weblate (Assamese) (1f77fb0)
* Added translation using Weblate (Haitian) (884fd5f)
* Added translation using Weblate (Cornish) (2628443)
* Added translation using Weblate (Frisian) (0a1b4b3)
* Added translation using Weblate (Kashubian) (b6c154e)
* Added translation using Weblate (Aragonese) (5f06373)
* Added translation using Weblate (Tibetan) (dbcbf8e)
* Added translation using Weblate (Filipino) (1d2215e)
* Added translation using Weblate (Tigrinya) (c2cd1f0)
* Added translation using Weblate (Tatar) (de494df)
2023-12-26 Weblate
* Added translation using Weblate (Italian (it_CARES)) (b61191e)
2023-12-22 NPL
* Translated using Weblate (Japanese) (34d1e0c)
2023-12-17 Mike Gabriel
* Merge branch 'fix/lessExactQmltestrunnerFinding' into 'main'
(59f7f56)
2023-12-16 OPNA2608
* Find qmltestrunner without PATHS hint (0e55d4f)
2023-11-22 OPNA2608
* tests/qml/CMakeLists.txt: Don't insist on finding qmltestrunner
only at hardcoded guess (b0c4901)
2023-11-15 Ratchanan Srirattanamet
* Merge branch 'fix/qt5_use_modules' into 'main' (df506e7)
2023-11-15 OPNA2608
* Move added find_package() calls to top-level CMakeLists.txt
(1c06bda)
2023-11-14 OPNA2608
* Stop using qt5_use_modules (87540af)
2023-11-15 Ratchanan Srirattanamet
* Merge branch 'fix/newerExiv2Compat' into 'main' (f337cee)
2023-11-14 OPNA2608
* plugin/photoeditor: Add version guards to new Exiv2 code (ef767c5)
* plugin/photoeditor: Fix for Exiv2 0.28.0 (74bb579)
2023-10-18 Weblate
* Added translation using Weblate (Xhosa) (5301c98)
* Added translation using Weblate (Manx) (9c59981)
* Added translation using Weblate (Corsican) (a96ea22)
* Added translation using Weblate (Chechen) (22f36c3)
* Added translation using Weblate (Wolof) (0574437)
* Added translation using Weblate (Kurdish (Central)) (2358bd3)
* Added translation using Weblate (Uzbek) (58848fe)
* Added translation using Weblate (Kyrgyz) (36acb42)
* Added translation using Weblate (Sotho (Southern)) (22319d2)
* Added translation using Weblate (Kazakh) (7d2e5b8)
* Added translation using Weblate (Norwegian Nynorsk) (97c8288)
* Added translation using Weblate (Swahili) (b351358)
* Added translation using Weblate (Odia) (b1f6c79)
* Added translation using Weblate (Bengali) (6f9f2e4)
* Added translation using Weblate (Irish) (8309a18)
2023-10-15 Mike Gabriel
* Release 0.6.2 (f14880d) (tag: 0.6.2)
* Merge branch 'personal/sunweaver/cmake-CMP0048' into 'main'
(3edd5c1)
* CMakeLists.txt: Bump cmake_minimum_required to 3.5. (c6ce76e)
* CMakeLists.txt: Set cmake_minimum_required() before using the
project() function. (9366ba4)
* Release 0.6.1 (c695853) (tag: 0.6.1)
2023-09-06 bittin1ddc447d824349b2
* Translated using Weblate (Swedish) (357add3)
2023-08-13 Abdullah AL Shohag
* Translated using Weblate (Bengali (Bangladesh)) (d7ac673)
2023-07-28 Milan Korecky
* Translated using Weblate (Czech) (7217414)
2023-06-30 Rudra Harsh V.Singh
* Translated using Weblate (Sanskrit) (1b53c05)
2023-06-30 Weblate
* Added translation using Weblate (Sanskrit) (a25bcd7)
2023-04-12 Temuri Doghonadze
* Translated using Weblate (Georgian) (810944f)
2023-04-11 Temuri Doghonadze
* Translated using Weblate (Georgian) (ff63e1f)
* Translated using Weblate (Georgian) (cd5635e)
2023-04-04 gallegonovato
* Translated using Weblate (Spanish) (282216d)
2023-03-31 Sylke Vicious
* Translated using Weblate (Italian) (0ebc843)
2023-03-31 Jozef Mlich
* Translated using Weblate (Czech) (474cfff)
2023-03-30 Sylke Vicious
* Translated using Weblate (Italian) (926bd10)
2023-02-27 Heimen Stoffels
* Translated using Weblate (Dutch) (bd45d52)
2023-02-26 Luna Jernberg
* Translated using Weblate (Swedish) (8b6509e)
2023-02-22 Heimen Stoffels
* Translated using Weblate (Dutch) (52b260f)
2023-02-16 phlostically
* Translated using Weblate (Esperanto) (8030520)
2023-01-31 Mike Gabriel
* Translated using Weblate (German) (61053c7)
2023-01-30 Sergii Horichenko
* Translated using Weblate (Russian) (a3a15d1)
2023-01-24 gnu-ewm
* Translated using Weblate (Polish) (acdff16)
2023-01-14 Dan
* Translated using Weblate (Ukrainian) (9653a72)
2023-01-13 Sergii Horichenko
* Translated using Weblate (Russian) (de7acc1)
2023-01-13 Ivo Xavier
* Translated using Weblate (Portuguese) (17cf8ea)
2023-01-13 Timothy G
* Translated using Weblate (French) (f302487)
2023-01-11 Dan
* Translated using Weblate (Ukrainian) (e9af1ed)
2023-01-11 Marius Gripsgard
* Release 0.6.0 (d6b15f0) (tag: 0.6.0)
2023-01-04 Anonymous
* Translated using Weblate (Chinese (Min Nan)) (606072b)
* Translated using Weblate (Kurdish (Southern)) (cd2ee5f)
* Translated using Weblate (French (Switzerland)) (48dba36)
* Translated using Weblate (Kurdish (Northern)) (3906b82)
* Translated using Weblate (Shan) (09b3b3d)
* Translated using Weblate (Bemba) (3897a6c)
* Translated using Weblate (Oromo) (f845ed5)
* Translated using Weblate (Dhivehi) (7830a1f)
* Translated using Weblate (Nyanja) (e4c7995)
* Translated using Weblate (Lojban) (6c59027)
* Translated using Weblate (Macedonian) (dc5265c)
* Translated using Weblate (Maori) (d0d48d0)
* Translated using Weblate (Malayalam) (7a7d090)
* Translated using Weblate (Friulian) (3518aa1)
* Translated using Weblate (Pashto) (e2bb46b)
* Translated using Weblate (Telugu) (4dba48f)
* Translated using Weblate (Turkmen) (d60bb6d)
* Translated using Weblate (Ido) (9f59b32)
* Translated using Weblate (Tetum) (b8435fa)
* Translated using Weblate (Scots) (110d630)
* Translated using Weblate (Franco-Provençal) (427c356)
* Translated using Weblate (Sindhi) (a86ebc5)
* Translated using Weblate (Tajik) (f52065d)
* Translated using Weblate (Pampanga) (938e9eb)
* Translated using Weblate (Nepali) (c77c967)
* Translated using Weblate (Burmese) (fb86777)
* Translated using Weblate (Marathi) (eb956a2)
* Translated using Weblate (Malagasy) (e778b41)
* Translated using Weblate (Lao) (214ae89)
* Translated using Weblate (Lingala) (cc367d1)
* Translated using Weblate (Luxembourgish) (bc319c6)
* Translated using Weblate (Kabyle) (9edf5bf)
* Translated using Weblate (Icelandic) (457021e)
* Translated using Weblate (Estonian) (a6deaf9)
* Translated using Weblate (Bulgarian) (080da6c)
2023-01-05 Mike Gabriel
* Revert "Deleted translation using Weblate (Chinese (Traditional,
Hong Kong))" (e552546)
* Revert "Added translation using Weblate (Chinese (Traditional, Hong
Kong))" (4670011)
2023-01-04 Weblate
* Added translation using Weblate (Chinese (Traditional, Hong Kong))
(8e74047)
2023-01-04 Allan Nordhøy
* Translated using Weblate (Norwegian Bokmål) (3a3037c)
2023-01-04 Mike Gabriel
* Deleted translation using Weblate (Chinese (Traditional, Hong
Kong)) (09e8bd8)
2023-01-04 Weblate
* Added translation using Weblate (Chinese (Min Nan)) (03a68ec)
* Added translation using Weblate (Kurdish (Southern)) (79789ae)
* Added translation using Weblate (French (Switzerland)) (1ae25b6)
* Added translation using Weblate (Kurdish (Northern)) (7592b87)
* Added translation using Weblate (Shan) (f3a8f6d)
* Added translation using Weblate (Bemba) (457268c)
* Added translation using Weblate (Oromo) (34a0d4b)
* Added translation using Weblate (Dhivehi) (ea35ab9)
* Added translation using Weblate (Nyanja) (5802d2e)
* Added translation using Weblate (English (Canada)) (646566b)
* Added translation using Weblate (Lojban) (262f908)
* Added translation using Weblate (Georgian) (77ce9f5)
* Added translation using Weblate (Macedonian) (7ec9cd9)
* Added translation using Weblate (Maori) (a835e0b)
* Added translation using Weblate (Malayalam) (2fc9fd4)
* Added translation using Weblate (Friulian) (9560c08)
* Added translation using Weblate (Hindi) (a83b16d)
* Added translation using Weblate (Armenian) (c657728)
* Added translation using Weblate (Pashto) (9cc9670)
* Added translation using Weblate (Telugu) (7959c1f)
* Added translation using Weblate (Turkmen) (7573a39)
2023-01-03 Muhammad
* Translated using Weblate (Urdu) (86b9312)
2023-01-03 Weblate
* Added translation using Weblate (Urdu) (db38797)
* Added translation using Weblate (Ido) (c80c22d)
* Added translation using Weblate (Tetum) (efd1fad)
* Added translation using Weblate (Scots) (5fc6862)
* Added translation using Weblate (Franco-Provençal) (fa76400)
* Added translation using Weblate (Sindhi) (db0867b)
2023-01-03 Hosted Weblate
* Update translation files (09aa22c)
2022-11-23 Mike Gabriel
* Merge branch 'personal/mariogrip/focal_-_qtdepriwarn' into 'main'
(33115fb)
2022-11-22 Marius Gripsgard
* Set missing default constructor and copy (6a9d2db)
* src: Use Qt::SkipEmptyParts for qt version 5.14 and up (dda1f50)
* ‘QString::null’ is deprecated: use QString() (dadefc2)
2022-10-27 Mike Gabriel
* Merge branch 'keep-tabsbar' into 'main' (4d6758d)
2022-10-27 Guido Berhoerster
* Revert "Move TabsBar component to morph-browser" (a4b54bb)
2022-10-13 Ratchanan Srirattanamet
* Merge branch 'remove-tabsbar' into 'main' (12bfa9a)
2022-08-02 Guido Berhoerster
* Move TabsBar component to morph-browser (709b922)
2022-09-08 Ratchanan Srirattanamet
* Merge branch 'fix-service-name' into 'main' (01204b3)
2022-09-07 Guido Berhoerster
* Fix incorrect Lomiri greeter DBus service name in PamAuthentication
qml plugin (310bb6d)
2022-07-18 Ratchanan Srirattanamet
* Merge branch 'import-app-subpackages' into 'main' (9de19d0)
2022-07-15 Guido Berhoerster
* Switch to /com/lomiri/LomiriGreeter service (c66c248)
* Restore use of QT_NO_KEYWORDS and replace keywords with macros
(27a64aa)
2022-07-12 Guido Berhoerster
* Add Lomiri.Components.Extras.PamAuthentication qml module (6e76664)
2022-03-08 Ratchanan Srirattanamet
* Merge branch 'mr/unify-copyright-holdership-for-Canonical' into
'main' (8ad53d4)
2022-03-03 Mike Gabriel
* Use unified spelling for copyright holdership by Canonical Ltd. (no
comma between Canonical and Ltd.). (9a4d90e)
* Use unified spelling for copyright holdership by Canonical Ltd.
('Ltd.' needs a full-stop at its end). (c7643a1)
2022-03-04 Mike Gabriel
* Release 0.5 (6777d57) (tag: 0.5)
2021-08-31 Marius Gripsgard
* Merge branch 'github/fork/nanu-c/xenial' into 'main' (3b73842)
2021-08-23 Ratchanan Srirattanamet
* d/copyright: update metadata (b8bf9d3)
* Rename UbuntuAnimation to LomiriAnimation (04f991c)
2021-08-20 Ratchanan Srirattanamet
* Merge branch 'ubports/xenial' into focal (0145917)
2021-08-19 Ratchanan Srirattanamet
* Move Jenkinsfile to debian/ per the new guideline (594f9d4)
* d/changelog: fixup versioning and update changelog (43e9d42)
* po: update and rename pot file (2fe1b15)
* tests/qml: migrate to Lomiri.Test (6a53541)
* tests/qml: re-enable tests (9a2b6f7)
* tests/qml: enforce xcb QPA (c7936e8)
* .gitignore: update the binary package name (a492ee4)
* Rename .bzrignore to .gitignore (09e0167)
* Remove obsolete .bzr-builddeb/ (95c058f)
* d/control: update homepage due to GitLab migration (adf1c0e)
* d/control: remove unneeded Provides/Conflicts/Replaces (cb4d753)
* d/control: correct the binary package name (ad647c6)
* Fix the link in README (0bdb119)
2021-08-18 Florian Leeber
* Merge pull request #72 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (77ce537)
2021-07-29 Weblate
* Translated by Ivo Xavier using Weblate
(Portuguese) - 100.0% (22 of 22 strings) (0a17113)
2021-07-18 aaron@nanu-c.org
* move to lomiri (bc21c08)
2021-07-17 aaron@nanu-c.org
* rename to qml-module-lomiri-ui-extras (d6a3893)
* rename to UbuntuShape to LomiriShape (61974dc)
2021-07-13 aaron@nanu-c.org
* rename to lomiri-ui-extras + focal support (2f33c32)
2021-06-15 Rodney
* Merge pull request #71 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (70ffb86)
2021-06-15 Weblate
* Translated by Milan Korecký using Weblate
(Czech) - 100.0% (22 of 22 strings) (1f9e0c8)
2021-05-24 Rodney
* Merge pull request #70 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (b619bbf)
2021-05-23 Weblate
* Translated by Wannaphong Phatthiyaphaibun
using Weblate (Thai) - 40.9% (9 of 22 strings) (f74993a)
2021-03-26 Rodney
* Merge pull request #69 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (6f5fc35)
2021-03-26 Weblate
* Translated by vokaliz using Weblate
(Russian) - 100.0% (22 of 22 strings) (e75bb41)
2021-03-25 Rodney
* Merge pull request #68 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (4d3e912)
2021-03-25 Weblate
* Translated by vokaliz using Weblate
(Russian) - 100.0% (22 of 22 strings) (723e6b5)
2021-03-21 Florian Leeber
* Merge pull request #67 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (4380e69)
2021-03-19 Weblate
* Translated by c4pp4 using Weblate (Czech) -
100.0% (22 of 22 strings) (50fd0a6)
2021-01-08 Marius Gripsgard
* Merge pull request #66 from ubports/xenial_-_qt-5-12 (798a881)
2020-10-13 Rodney Dawes
* Fix some QML warnings. (40ff30d)
2020-11-30 Dalton Durst
* Merge pull request #64 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (773785f)
2020-11-23 Weblate
* Translated by Jiri Grönroos using Weblate
(Finnish) - 100.0% (22 of 22 strings) (25c5fd0)
2020-11-15 Florian Leeber
* Merge pull request #63 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (78b5616)
2020-11-13 Weblate
* Translated by abidin using Weblate (Arabic)
- 86.3% (19 of 22 strings) (8fcd80f)
2020-11-12 Rodney
* Merge pull request #62 from ubports/xenial_-_jenkinsfile (986a433)
2020-11-12 Rodney Dawes
* Update the Jenkinsfile (9c270e9)
2020-11-08 Florian Leeber
* Merge pull request #61 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (6184830)
2020-11-06 Weblate
* Translated by abidin using Weblate (Arabic)
- 81.8% (18 of 22 strings) (4cb34c8)
2020-11-01 Florian Leeber
* Merge pull request #60 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (0b24a79)
2020-10-26 Weblate
* Translated by Heimen Stoffels using Weblate
(Dutch) - 100.0% (22 of 22 strings) (1e887f1)
2020-09-06 Florian Leeber
* Merge pull request #59 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (8fecad1)
2020-09-05 Weblate
* Translated by tamer dab using Weblate
(Hebrew) - 100.0% (22 of 22 strings) (1ecd3d1)
2020-08-26 Florian Leeber
* Merge pull request #58 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (4722844)
2020-08-16 Weblate
* Translated by Efstathios Iosifidis using
Weblate (Greek) - 100.0% (22 of 22 strings) (291de77)
2020-08-16 Florian Leeber
* Merge pull request #57 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (8a144a0)
2020-08-08 Weblate
* Translated by satriocode using Weblate
(Indonesian) - 100.0% (22 of 22 strings) (bc94a5a)
2020-08-03 Florian Leeber
* Merge pull request #56 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (02493d6)
2020-08-01 Weblate
* Translated by ffsi using Weblate
(Portuguese (Brazil)) - 100.0% (22 of 22 strings)
(6d86914)
2020-07-20 Weblate
* Translated using Weblate (Dutch) (7cedcee)
2020-05-26 Florian Leeber
* Merge pull request #55 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (f037ad2)
2020-05-19 Pavel Borecki
* Translated using Weblate (Czech) (feb92f3)
2020-05-18 Pavel Borecki
* Translated using Weblate (Czech) (b6d4c89)
2020-05-13 Mike
* Translated using Weblate (Italian) (e2ad52a)
2020-05-10 Florian Leeber
* Merge pull request #54 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (dc9bd0c)
2020-05-08 Ryan Argente
* Translated using Weblate (French (Canada)) (7aa615b)
2020-03-30 Florian Leeber
* Merge pull request #53 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (c1dc1ca)
2020-03-24 Weblate
* Merge branch 'origin/xenial' into Weblate. (c0bf100)
2020-03-24 Florian Leeber
* Merge pull request #52 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (3f98fae)
2020-03-21 Ryan Argente
* Translated using Weblate (French (Canada)) (50da509)
2020-03-17 cflep
* Translated using Weblate (Luxembourgish) (d9b7715)
2020-03-09 Florian Leeber
* Merge pull request #51 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (02c86da)
2020-03-06 Neutrum N
* Translated using Weblate (Galician) (8faae48)
2020-03-05 Neutrum N
* Translated using Weblate (Galician) (127e315)
2020-03-02 Florian Leeber
* Merge pull request #50 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (72e94a1)
2020-02-28 Pavel Borecki
* Translated using Weblate (Czech) (655f9a0)
2020-02-24 dano6
* Translated using Weblate (Slovak) (d61de77)
2020-02-24 Florian Leeber
* Merge pull request #49 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (64368d5)
2020-02-20 Ryan Argente
* Translated using Weblate (French (Canada)) (f2652ee)
2020-02-17 Riccardo Riccio
* Translated using Weblate (Slovenian) (71b02a9)
2020-02-16 Weblate
* Merge branch 'origin/xenial' into Weblate. (1669728)
2020-02-16 dano6
* Translated using Weblate (Slovak) (5d0e526)
2020-02-16 Florian Leeber
* Merge pull request #48 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (f1ccf26)
2020-02-15 HSN80
* Translated using Weblate (Persian) (a80f4b7)
2020-02-10 HSN80
* Translated using Weblate (Persian) (877b2db)
2020-02-09 Rodrigo Benedito
* Translated using Weblate (Portuguese (Brazil)) (c399f96)
2020-02-09 Florian Leeber
* Merge pull request #47 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (4f55994)
2020-02-05 Ege Öz
* Translated using Weblate (Turkish) (b762842)
2020-01-27 Florian Leeber
* Merge pull request #46 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (476c7a3)
2020-01-22 Weblate
* Merge branch 'origin/xenial' into Weblate. (ce3c526)
2020-01-22 Florian Leeber
* Merge pull request #45 from cibersheep/ColorAndComponentUpgrade
(4746a9b)
2020-01-22 Joan CiberSheep
* UbuntuColors to theme palette, update components (302cf4b)
2019-12-20 M.Sugahara
* Translated using Weblate (Japanese) (772fd8d)
2019-12-12 Sami Törmänen
* Translated using Weblate (Finnish) (3a1783e)
2019-12-20 Eugene
* Translated using Weblate (Russian) (3af7912)
2019-11-10 Florian Leeber
* Merge pull request #44 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (13f31ae)
2019-11-02 Ege Öz
* Translated using Weblate (Turkish) (4b55820)
2019-11-03 Florian Leeber
* Merge pull request #43 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (b669706)
2019-10-28 enolp
* Translated using Weblate (Asturian) (4b3695f)
2019-10-15 Florian Leeber
* Merge pull request #42 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (6f4f7b2)
2019-10-04 Sami Törmänen
* Translated using Weblate (Finnish) (f9f11db)
2019-09-30 Florian Leeber
* Merge pull request #41 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (a576459)
2019-09-24 Moo
* Translated using Weblate (Lithuanian) (0de57f2)
2019-08-08 Florian Leeber
* Merge pull request #40 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (73b9e08)
2019-08-01 Moo
* Translated using Weblate (Lithuanian) (a42b84f)
2019-07-26 Florian Leeber
* Merge pull request #39 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (13935d9)
2019-07-15 Yasser Lotfy
* Translated using Weblate (Arabic) (9349443)
2019-07-12 Florian Leeber
* Merge pull request #38 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (537e83b)
2019-07-05 Aitzol Berasategi
* Translated using Weblate (Basque) (4eb2d81)
2019-06-28 Florian Leeber
* Merge pull request #37 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (b11cc57)
2019-06-21 lxdb
* Translated using Weblate (English (United States)) (36e4072)
2019-05-07 Florian Leeber
* Merge pull request #36 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (8411a55)
2019-05-05 Aurelio Cilia
* Translated using Weblate (Italian) (671f88e)
2019-05-04 Florian Leeber
* Merge pull request #35 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (bc48e8b)
2019-05-01 louies0623
* Translated using Weblate (Chinese (Traditional)) (b9f2239)
2019-04-29 Joan CiberSheep
* Translated using Weblate (Catalan) (d45c7d3)
2019-04-27 Jiri Grönroos
* Translated using Weblate (Finnish) (a67a87e)
2019-04-28 Walter Garcia-Fontes
* Translated using Weblate (Catalan) (37f66f4)
2019-04-25 Florian Leeber
* Merge pull request #34 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (5749d56)
2019-04-25 Vinícius F
* Translated using Weblate (Portuguese (Brazil)) (0250e7a)
2019-04-23 不朽正义
* Translated using Weblate (Chinese (Simplified)) (42cfa64)
2019-04-17 Weblate
* Merge branch 'origin/xenial' into Weblate (877e7be)
2019-04-17 Florian Leeber
* Merge pull request #33 from StefWe/exposeUX (0ccb6a3)
2019-04-17 Stefan
* Main action arranged on the right and Cancel now has a neutral
color (88cb878)
2019-04-16 Weblate
* Merge branch 'origin/xenial' into Weblate (2c7a2fa)
2019-04-16 Florian Leeber
* Merge pull request #31 from StefWe/compression (d13416f)
2019-04-15 Stefan
* using default compression on saving an edited image (3ade3fb)
2019-04-14 Weblate
* Merge branch 'origin/xenial' into Weblate (5c0b3b4)
2019-04-14 Florian Leeber
* Merge pull request #29 from StefWe/exposure (925cb3e)
2019-04-12 Stefan Weng
* Merge branch 'exposure' of
https://github.com/StefWe/ubuntu-ui-extras into exposure
(332ed26)
2019-04-12 Stefan
* Exposure function activated (efc5bc3)
2019-04-12 Weblate
* Merge branch 'origin/xenial' into Weblate (43b7ac4)
2019-04-11 Stefan Weng
* Translated using Weblate (German) (c09b577)
2019-04-12 Florian Leeber
* Merge pull request #28 from StefWe/issue3 (89ec3e6)
2019-04-12 Stefan
* Exposure function activated (1007eb1)
2019-04-11 Aashrut
* Translated using Weblate (Gujarati) (c93e16a)
* Added translation using Weblate (Gujarati) (827963e)
2019-04-11 Stefan
* using i18n.dtr instead of i18n.tr (80d4f68)
2019-04-01 louies0623
* Translated using Weblate (Chinese (Traditional)) (f3ad7eb)
2019-03-26 Tom Dom
* Translated using Weblate (Dutch) (7261420)
2019-03-23 Florian Leeber
* Merge pull request #27 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (ca9c4ff)
2019-03-12 Rúben Carneiro
* Translated using Weblate (Portuguese) (fb2c0cb)
2019-02-11 advocatux
* Translated using Weblate (Spanish) (03cc9d6)
2019-03-03 Anne Onyme
* Translated using Weblate (French) (6ec7823)
2019-02-12 Milan Korecký
* Translated using Weblate (Czech) (18311a3)
2019-02-11 Weblate
* Merge branch 'origin/xenial' into Weblate (1d6db53)
2019-02-11 Heimen Stoffels
* Translated using Weblate (Dutch) (2fabdb4)
2019-02-11 Florian Leeber
* Merge pull request #26 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (772acc6)
2019-01-21 louies0623
* Translated using Weblate (Japanese) (1bd6638)
2019-01-16 Florian Leeber
* Merge pull request #25 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (0c1d967)
2019-01-03 Ennio Lavagnini
* Translated using Weblate (Italian) (bceea97)
2019-01-01 Jaume Angrill
* Translated using Weblate (Catalan) (d36b510)
2018-12-26 Florian Leeber
* Merge pull request #24 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (152ad13)
2018-12-19 Hussain Hashem Aljafri
* Translated using Weblate (Arabic) (3a12a18)
2018-12-18 Louies
* Added translation using Weblate (English (United States)) (bae5440)
2018-12-13 P_E_T_O
* Translated using Weblate (Slovak) (b688361)
2018-11-25 Florian Leeber
* Merge pull request #23 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (db601ed)
2018-11-18 advocatux
* Translated using Weblate (Spanish) (6e46715)
2018-11-22 Louies
* Translated using Weblate (Esperanto) (409889d)
* Translated using Weblate (Chinese (Traditional)) (31397b7)
* Translated using Weblate (Chinese (Hong Kong)) (4334488)
2018-11-11 Samson
* Translated using Weblate (Amharic) (0227614)
2018-11-22 Louies
* Translated using Weblate (Chinese (Hong Kong)) (a4171d7)
2018-11-11 Florian Leeber
* Merge pull request #22 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (689dafd)
2018-11-05 advocatux
* Translated using Weblate (Spanish) (6266725)
2018-11-09 Aurelio Cilia
* Translated using Weblate (Italian) (3c7328f)
2018-11-05 Anne Onyme
* Translated using Weblate (French) (f584447)
2018-11-09 Jiri Grönroos
* Translated using Weblate (Finnish) (5e9b11e)
2018-11-05 Louies
* Translated using Weblate (Chinese (Traditional)) (4dab997)
2018-11-05 Joan CiberSheep
* Translated using Weblate (Catalan) (1cd9a0e)
2018-11-10 Sander
* Translated using Weblate (Dutch) (299cead)
2018-11-04 Florian Leeber
* Merge pull request #21 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (67ae212)
2018-10-31 ierihon
* Translated using Weblate (Русский) (fce7d40)
2018-10-28 Florian Leeber
* Merge pull request #20 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (38ebaa6)
2018-10-23 Louies
* Translated using Weblate (Esperanto) (5d1d78e)
2018-10-25 Louies
* Translated using Weblate (Chinese (Traditional)) (c8fa222)
* Translated using Weblate (漢語(正體字)) (fb7f222)
2018-10-25 P.-H. Lin
* Translated using Weblate (漢語(正體字)) (c32a7d5)
2018-10-23 Louies
* Translated using Weblate (Chinese (Traditional)) (9d77cf9)
2018-10-23 Weblate
* Merge branch 'origin/xenial' into Weblate (800a155)
2018-10-22 Louies
* Translated using Weblate (Chinese (Traditional)) (db64c0b)
2018-10-23 Florian Leeber
* Merge pull request #18 from jonnius/disabletests (aace6fd)
2018-10-21 Florian Leeber
* Merge pull request #19 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (9dea716)
2018-10-19 M.Sugahara
* Translated using Weblate (Japanese) (24ed6fd)
2018-10-21 Jonatan Hatakeyama Zeidler
* Disable tests by default (b3c2534)
2018-10-14 Florian Leeber
* Merge pull request #17 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (ca73bfa)
2018-09-08 SongInseo
* Translated using Weblate (Koreanisch) (dbdeb84)
2018-10-04 Neutrum N
* Translated using Weblate (Galicisch) (3f67a92)
2018-10-05 Milan Korecký
* Translated using Weblate (Tschechisch) (5048f60)
2018-09-15 Tom Rausner
* Translated using Weblate (Danish) (86fe2cc)
2018-09-02 Jan Sprinz
* Merge pull request #16 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (80a3720)
2018-09-01 Weblate
* Merge remote-tracking branch 'origin/xenial' into xenial (bdfc7cf)
2018-08-23 P_E_T_O
* Translated using Weblate (Slovak) (a0dff66)
2018-08-19 Jiri Grönroos
* Translated using Weblate (Finnish) (69c8517)
2018-08-26 Øjvind Fritjof Arnfred
* Translated using Weblate (Danish) (71f811a)
2018-08-27 Ahmed Suliman
* Translated using Weblate (Arabic) (994a891)
2018-09-01 Florian Leeber
* Merge pull request #15 from
ubports-weblate/weblate-ubports-ubuntu-ui-extras (b127390)
2018-09-01 Weblate
* Merge branch 'xenial' of
https://github.com/ubports/ubuntu-ui-extras into xenial
(d07d053)
2018-08-19 Tom Rausner
* Translated using Weblate (Danish) (b90a7db)
* Translated using Weblate (Danish) (c475e51)
2018-08-12 ubports-weblate
* Update from Weblate. (#14) (3bcf5cd)
2018-08-08 ierihon
* Translated using Weblate (Belarusian) (cc95f23)
* Translated using Weblate (Belarusian) (9b0aa1d)
2018-07-30 thanakit srisearmpok
* Translated using Weblate (Thai) (935c36d)
2018-08-05 Tom Rausner
* Translated using Weblate (Danish) (d52f92b)
2018-07-29 Tom Rausner
* Translated using Weblate (Danish) (979eeab)
2018-08-05 ubports-weblate
* Translated using Weblate (German) (#13) (1ad6daa)
2018-07-21 ubports-weblate
* Update from Weblate. (#12) (0be8140)
2018-05-13 ubports-weblate
* Update from Weblate. (#11) (a720356)
2018-05-11 Florian Leeber
* Seriously? (76b3845)
* And it happened again, removing excess " (8f17393)
2018-05-11 ubports-weblate
* Update from Weblate. (#10) (488a0a2)
2018-05-11 StefWe
* Did some manually fix in the translation .po files (#8) (3db65af)
2018-05-11 ubports-weblate
* Update from Weblate. (#9) (a47d1f6)
2018-05-10 ubports-weblate
* Update POT (#7) (86ac70d)
* Update from Weblate. (#6) (390dcaa)
* Update from Weblate. (#5) (35b7e49)
2018-05-06 ubports-weblate
* Update from Weblate. (#4) (c7a578f)
2018-05-02 Florian Leeber
* Merge pull request #2 from StefWe/xenial (b5da30e)
2018-05-02 Stefan Weng
* Merge branch 'xenial' of https://github.com/StefWe/ubuntu-ui-extras
into xenial (ecfaee0)
* combined "Revert to original" and "Revert to Original" so only one
must be translated (311ccf2)
2018-05-02 Stefan
* cmake-extra added (56bb9ab)
* made a list of all dependencies for faster setup next time
(235c093)
2018-01-07 Marius Gripsgard
* Imported to UBports (13dd817)
2017-04-04 Jonas G. Drange
* sets a default printer on provisioning if there is none (49a4f0d)
* ensures that there are no races in provisioning a printer (82ae8d4)
2017-04-03 Andrew Hayzen
* Fix changing of printer not loading defaults and add a tes.
Improve colorModel struct to != when name or
colorModelType are different (fa487d1)
2017-04-03 Jonas G. Drange
* sets a default printer on provisioning if there is none (ae71c28)
2017-04-03 Andrew Hayzen
* Update comments (a21b9ca)
* Rebase on staging (39739e3)
* Fix changing of printer not loading defaults and add a tes.
Improve colorModel struct to != when name or
colorModelType are different (d618253)
2017-03-31 Andrew Hayzen
* Set m_copies when using updateFrom and add test for updateFrom
(3e505ba)
* Remove debug line (0094fb7)
* Add test for updateFrom (7f5fdac)
* Set m_copies when using updateFrom (e46878e)
2017-03-23 Bileto Bot
* Releasing 0.3+17.04.20170323-0ubuntu1 (786095c)
* Adds devices as an model on Printers, and re-instates remote
printer model on Printers.; makes sure the backend is
refreshed on enable/disable; If printerAdded is called
ensure there is always a proxy printer corrects
thread affinity for printerloaded printers, as well as any
qobject children it might have; Remove PrinterQueue.qml
example and add missing job methods to Printers.qml
example, so we have only one example; improves the
deviceName by dropping the CMD (note that the full string
remains accessible from device.id); Connect
job-impressions-completed from cups to
PrinterJob::impressionsCompleted(); In the job model
listen to printerStateChanged as changes t
job-impressions-completed causes that signal; Improve the
PrinterSignalHandler to limit the maximum wait time of
unprocessed signals to four times the timeout; Add unit
test for SignalRateLimiter to check it does perform a
flush; Rename PrinterSignalHandler to SignalRateLimite.
Add a JobLoader for loading a specific jobId for a printer
and loading the extended attributes; Move the loading of
creationTime, completedTime, processingTime, size and user
to extended attributes as signals don't give us thos.
Add method for PrinterBackend for getting a specific jo.
Split up JobModel::update so there is jobCreated, jobState
and jobCompleted which then call addJob, removeJob and
updateJob; Improve Printer::updateFrom to not call
loadAttributes as this results in a possible UI bloc.
Add missing comparisions for PrinterJob deepCompare and
updateFrom; Change PrinterJob::setPrinter to not call
loadDefaults and instead explicitly call it; Change
Printers to trigger requestJobExtendedAttributes which
triggers a background thread rather than doing in
foreground; exposes copies attribute on the printe.
includes cups/adminutils.h into which the cups device
callback was moved in >= libcups2-dev 2.2.2; allows
browsing on local and remote printers; Add filters for
active, paused and queued; Add sorting by creationTime
and then falling back to id; Change time related roles in
JobModel to return QDateTime, not QString, so sorting
doesn't break; Update tests; Change
printerGetJobAttributes to use printer-uri and job-id (the
same as holdJob and releaseJob; Give
printerGetJobAttributes printerName so we can ensure we
get the correct job; adds read/write of the shared
property; adds extended attribute fetching
(IppClient::printerGetAttributes); refactors attribute
retrieval from cups; implements deviceUri and lastMessage
on Printer; adds Printers.printTestPage; Add tests for
JobModel roles; Add tests for make and location in
Printer; Fix JobModel color and quality roles to use
fallback if no text; Add tests for all roles in
PrinterModel; Remove PdfRole it is not used (IsPdfRole
instead); Add holdJob and releaseJob methods to Printers
* Add HeldRole to JobModel; Add tests for hold and
releasing a job; Update example to show how hold and
release work; Update StateRole to return just the state,
not text; Remove PrinterJob friends and make setters
public as they aren't exposed to QML anyway; adds make
and location to printermodel and printer; Pull of trun.
Remove use of bitewise or as it fails in CI; guards
against excessive loading of printers and drivers; adds
loadPrinter method on Printers; drops a lot of code that
was not used, and some TODOS/FIXMES that aren't necessary
* Fix/add commented or empty tests; Implement tests that
had QSKIP; removes empty brackets; adds cmake extras,
required by printer stuff; Remove remaining fixme'.
Rename UbuntuSettingsComponentsPrintersPlugin to
UbuntuComponentsExtrasPrintersPlugin; Remove import
Ubuntu.Settings.Components 0.1 from example qml import.
Rename definition UBUNTUSETTINGSPRINTERS_LIBRARY to
UBUNTUCOMPONENTSEXTRASPRINTERS_LIBRARY; Rename
UbuntuSettingsPrintersQml to
UbuntuComponentsExtrasPrintersQml; Rename translation
domain to ubuntu-ui-extras; Fix for printsupport being
build-depends rather than depends (c6427e0)
2017-03-23 Jonas G. Drange
* Adds second phase of printer components. (d61bd82)
2017-03-22 Jonas G. Drange
* bumps version (d37d9e8)
* syncs with trunk (eca81e8)
* updates changelog (320292b)
* Adds devices as an model on Printers, and re-instates remote
printer model on Printers. (8c777c8)
* makes sure the backend is refreshed on enable/disable (e6e66b8)
* move example to use devices instead of remotePrinters (ce1b061)
2017-03-21 Jonas G. Drange
* adds devices as an model, and re-instates remote printers model
(cd8b489)
* makes sure the backend is refreshed on enable/disable (44c00f2)
2017-03-20 Jonas G. Drange
* bumps version (cf87d5d)
* syncs with trunk (f7330be)
2017-03-20 Andrew Hayzen
* If printerAdded is called ensure there is always a proxy printer
(4241e3d)
2017-03-20 Jonas G. Drange
* corrects thread affinity for printerloaded printers, as well
as any qobject children it might have (c51e797)
* corrects thread affinity for printerloaded printers, as well as any
qobject children it might have (936dcdc)
2017-03-20 Andrew Hayzen
* If printerAdded is called ensure there is always a proxy printer
* Update printerLoaded to use getPrinterByName to improve
DRY (29d6194)
* Remove PrinterQueue.qml example and add missing job methods to
Printers.qml example, so we have only one example
(94094b0)
2017-03-20 Jonas G. Drange
* improves the deviceName by dropping the CMD (note that the full
string remains accessible from device.id) (7aaa68e)
2017-03-19 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (e4df768)
2017-03-16 Andrew Hayzen
* Pull of upstream (66a675e)
* Connect job-impressions-completed from cups to
PrinterJob::impressionsCompleted(); In the job model
listen to printerStateChanged as changes t
job-impressions-completed causes that signal; Improve the
PrinterSignalHandler to limit the maximum wait time of
unprocessed signals to four times the timeout; Add unit
test for SignalRateLimiter to check it does perform a
flush; Rename PrinterSignalHandler to SignalRateLimiter
(ee44cae)
2017-03-16 Jonas G. Drange
* removes CMD from MDL (e18eece)
2017-03-16 Andrew Hayzen
* Add a JobLoader for loading a specific jobId for a printer and
loading the extended attributes; Move the loading of
creationTime, completedTime, processingTime, size and user
to extended attributes as signals don't give us thos.
Add method for PrinterBackend for getting a specific jo.
Split up JobModel::update so there is jobCreated, jobState
and jobCompleted which then call addJob, removeJob and
updateJob; Improve Printer::updateFrom to not call
loadAttributes as this results in a possible UI bloc.
Add missing comparisions for PrinterJob deepCompare and
updateFrom; Change PrinterJob::setPrinter to not call
loadDefaults and instead explicitly call it; Change
Printers to trigger requestJobExtendedAttributes which
triggers a background thread rather than doing in
foreground (c046f7e)
* Set timezone after time_t (f39231c)
* Fix timezones, internally use UTC then when exposing to QML set
as local timezone (c2589c0)
2017-03-15 Andrew Hayzen
* Pull of upstream (f21711d)
* Set timezone for completedTime, creationTime, processingTime in
PrinterJob (53fbdb8)
* Pull of upstream; Fix tests (emulation in
MockBackend::printerGetJobAttributes) (b74ec77)
* Change JobLoader to only respond with a QMap of attributes and
not a PrinterJob; Change Printers to directly call
JobModel::updateJobPrinter; Remove headers we don't need
in JobLoader; Change FIXME to TODO; Update tests
(595bcc9)
2017-03-14 Andrew Hayzen
* Try to use job-media-sheets-completed first (eafb0e3)
* Pull of upstream (cc94670)
* Use tryLock instead of lock and print a warning (936f36f)
* Fix missed renames; Fix failing tests; Actually set the printer
from JobLoader to the PrinterJob in JobModel, even if it
isn't loaded to keep the reference up to date; Improve
emulation to be closer to real (94526e0)
* Pull of upstream (9dd873e)
* Rename m_activeRequests to m_activePrinterRequests; Update
JobModel::updateJob description (55915ce)
* Remove MockPrinters and use Printers directly (41bd73a)
* Resolve failing tests with new JobLoader changes; Add comments
(c57d1bf)
2017-03-14 Jonas G. Drange
* exposes copies attribute on the printer (5203df2)
* address andrew's comment (243b451)
2017-03-13 Andrew Hayzen
* Use job-state from extendedJobAttributes so that when there is a
signal flood the state is correct (e61e076)
2017-03-13 Jonas G. Drange
* includes cups/adminutils.h into which the cups device callback was
moved in >= libcups2-dev 2.2.2 (037f886)
* includes adminutils (87781cf)
2017-03-13 Andrew Hayzen
* Pull of upstream (d8b82ac)
* Add QMutex to IppClient::printerGetAttributes to make it thread
safe; Reuse the same Printer backend in JobLoader; Don't
worry about having not Printer in PrinterJob::loadDefaults
* Remove some debug (46dd20c)
2017-03-13 Jonas G. Drange
* address comment from andrew (beb8ee9)
2017-03-13 Andrew Hayzen
* Rebase ontop of
lp:~ahayzen/ubuntu-ui-extras/job-model-split-update
(ed554cf)
* Remove move methods in models they aren't used anymore (filters
instead); Add initial code in JobLoader to only load a
printer if an unloaded one is given; Remove commented
code (625dd5c)
* First iteration of improvements for loading jobs in a background
thread; Add a JobLoader for loading a specific jobId for
a printer and loading the extended attributes; Move the
loading of creationTime, completedTime, processingTime,
size and user to extended attributes as signals don't give
us those; Add method for PrinterBackend for getting a
specific job; Split up JobModel::update so there is
jobCreated, jobState and jobCompleted which then call
addJob, removeJob and updateJob; Improve
Printer::updateFrom to not call loadAttributes as this
results in a possible UI block; Add missing comparisions
for PrinterJob deepCompare and updateFrom; Change
PrinterJob::setPrinter to not call loadDefaults and
instead explicitly call it; Change Printers to trigger
requestJobExtendedAttributes which triggers a background
thread rather than doing in foreground (a7295dc)
2017-03-10 Jonas G. Drange
* conforms to APS (64a6bd5)
* syncs with printer-staging (9f1be0b)
* implements the behaviour andrew laid out in MP (aea0047)
2017-03-10 Andrew Hayzen
* Merge of upstream (74df5fd)
* Merge of upstream (80592cc)
2017-03-10 Jonas G. Drange
* allows browsing on local and remote printers (4820c66)
2017-03-09 Andrew Hayzen
* Remove PrinterQueue.qml example and add missing job methods to
Printers.qml example, so we have only one example
(ce698a1)
2017-03-09 Jonas G. Drange
* avoids unecessary sort (6cf7bcf)
2017-03-09 Andrew Hayzen
* Show impressions in the PrinterQueue.qml (2117444)
2017-03-09 Jonas G. Drange
* show indicator while loading (eba9e4d)
2017-03-09 Andrew Hayzen
* Add unit test for SignalRateLimiter to check it does perform a
flush (1427d9d)
* Rename PrinterSignalHandler to SignalRateLimiter (444011a)
2017-03-09 Jonas G. Drange
* expose what protocol it is (1b661b7)
* use device uri if it exists (d8fc09e)
2017-03-09 Andrew Hayzen
* Connect job-impressions-completed from cups to
PrinterJob::impressionsCompleted(); In the job model
listen to printerStateChanged as changes t
job-impressions-completed causes that signal; Improve the
PrinterSignalHandler to limit the maximum wait time of
unprocessed signals to four times the timeout (9bf5790)
2017-03-09 Jonas G. Drange
* clarify the id splitting (27ba039)
2017-03-08 Jonas G. Drange
* removes commented code (2425e09)
* finish example addition of network printers (0d7ac24)
* implements type in device (24a05ab)
* tests devicemodel (85f4796)
* merges in printer-getdevices (f44c5a5)
* implements devicesearcher (ba5c6a4)
2017-03-07 Jonas G. Drange
* adds testing of copies (42dadae)
* add visible test of local/remote printers (a46c722)
2017-03-06 Jonas G. Drange
* lazily initialize remote/local filters (9960f6b)
* syncs with trunk (b8301f6)
* syncs with trunk (8b290c6)
* adds remote semantics (0440242)
2017-03-06 Andrew Hayzen
* Add filters for active, paused and queued; Add sorting by
creationTime and then falling back to id; Change time
related roles in JobModel to return QDateTime, not
QString, so sorting doesn't break; Update tests (44ce9e0)
* Change QList to QSet; Add qHash for JobState; Make Q_INVOKABLE
methods Q_SLOTS; Add comment about QML ownership
(2f71d68)
* Add filters for active, paused and queued; Add sorting by
creationTime and then falling back to id; Change time
related roles in JobModel to return QDateTime, not
QString, so sorting doesn't break; Update tests (883e833)
2017-03-03 Andrew Hayzen
* Change printerGetJobAttributes to use printer-uri and job-id (the
same as holdJob and releaseJob; Give
printerGetJobAttributes printerName so we can ensure we
get the correct job (d84be79)
* Change printerGetJobAttributes to use printer-uri and job-id (the
same as holdJob and releaseJob; Give
printerGetJobAttributes printerName so we can ensure we
get the correct job (66acd74)
2017-03-03 Jonas G. Drange
* adds read/write of the shared property (617330d)
* end to end copies (8b0fea6)
* adds copy delegate (4b54f58)
* adds delegate for shared (f38a81e)
* adds role, small refactor in backend (db1c3f8)
* define api for copy (489e1e8)
* allow read/write of shared (72da119)
2017-03-02 Jonas G. Drange
* adds extended attribute fetching
(IppClient::printerGetAttributes); refactors attribute
retrieval from cups; implements deviceUri and lastMessage
on Printer (43c6cb6)
* lols (c9b6083)
* deepcompare must consider deviceUri (2cab0cf)
* adds new printer attributes to example, and fixes some rendering
issues in said thing (abbe9ae)
* comment on smelly C array stuff, implement laststatemessage
(2f7dc5d)
* adds tests (3b6cd4f)
* drops some whitespace (181b4bd)
* sync with trunk (7669df9)
* adds Printers.printTestPage (aa32d99)
* refactors the way we ask for extended attributes so as to ask for
them maximum once (b780f42)
* adds device uri (f370d93)
2017-03-02 Andrew Hayzen
* Add tests for JobModel roles; Add tests for make and location in
Printer; Fix JobModel color and quality roles to use
fallback if no text; Add tests for all roles in
PrinterModel; Remove PdfRole it is not used (IsPdfRole
instead) (5ad98e3)
* Rebase onto lp:~phablet-team/ubuntu-ui-extras/printer-staging
(465737d)
* Add tests for JobModel roles; Add tests for make and location in
Printer; Fix JobModel color and quality roles to use
fallback if no text (141687a)
2017-03-02 Jonas G. Drange
* adds Printers.printTestPage (7dd7ab3)
2017-03-02 Andrew Hayzen
* Add holdJob and releaseJob methods to Printers; Add HeldRole to
JobModel; Add tests for hold and releasing a job; Update
example to show how hold and release work; Update
StateRole to return just the state, not text; Remove
PrinterJob friends and make setters public as they aren't
exposed to QML anyway (91ad465)
2017-03-02 Jonas G. Drange
* adds make and location to printermodel and printer (a679819)
2017-03-01 Bileto Bot
* Releasing 0.2+17.04.20170301.2-0ubuntu1 (8ef72a7)
2017-03-01 Andrew Hayzen
* Add printer-components from ubuntu-settings-components to
ubuntu-ui-extras (original branch
https://code.launchpad.net/~phablet-team/ubuntu-settings-components/printer-components)
* Add plugin module to Extras/Printers; Add translation
support for cpp/h; Add tests for Printers; Add debian
depends (c6aef79)
* Add tests for two new roles from
lp:~jonas-drange/ubuntu-ui-extras/make-and-location
(a734f2e)
* Rebase on lp:~jonas-drange/ubuntu-ui-extras/make-and-location so
we can add tests :-) (eb52e76)
* Add tests for all roles in PrinterModel; Remove PdfRole it is
not used (IsPdfRole instead) (bd2901e)
2017-03-01 Jonas G. Drange
* adds make and location to printermodel and printer (844076c)
* drop qwarning (1d1e8e5)
* syncs with trunk (0143434)
* refactors attribute retrieval from cups, adds extended attribute
fetching (4c12675)
2017-03-01 Andrew Hayzen
* Remove PrinterJob friends and make setters public as they aren't
exposed to QML anyway (0ca7237)
* Fix typo in example (9c087d1)
* Add holdJob and releaseJob methods to Printers; Add HeldRole to
JobModel; Add tests for hold and releasing a job; Update
example to show how hold and release work; Update
StateRole to return just the state, not text (7eb4f2e)
2017-02-28 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (5f8e31c)
2017-02-24 Andrew Hayzen
* Pull of trunk (8b6e478)
* Remove use of bitewise or as it fails in CI (632279a)
* Remove use of bitewise or as it fails in CI (717cf38)
2017-02-24 Jonas G. Drange
* guards against excessive loading of printers and drivers (cbb284b)
* adds loadPrinter method on Printers (22be218)
* qlist->qset (c5b6131)
* guard against excessive driver loading (cb6c8dc)
* adds loadPrinter method on Printers (5abf557)
* adds logic for only requesting non-requested printers (080973c)
2017-02-23 Jonas G. Drange
* drops a lot of code that was not used, and some TODOS/FIXMES that
aren't necessary (e7c5fe9)
* syncs with trunk (6fef709)
* drops a lot of code that was not used, and some TODOS/FIXMES that
aren't necessary (32f5e1d)
2017-02-23 Andrew Hayzen
* Fix/add commented or empty tests (9ea055d)
* Remove Q_UNUSED on parameters that are now used :-) (8624723)
* Pull of upstream (6539c0e)
* Fix/add commented or empty tests (a1f2fbb)
* Implement tests that had QSKIP (d3296a9)
2017-02-23 Jonas G. Drange
* removes empty brackets (f38b713)
2017-02-23 Andrew Hayzen
* Implement tests that had QSKIP (e44fabc)
2017-02-22 Jonas G. Drange
* removes {} which caused a non-printer to always be loaded if no
default (a6d264a)
* adds cmake extras, required by printer stuff (955163a)
* adds required dep (f74fb87)
2017-02-22 Bileto Bot
* Releasing 0.2+17.04.20170222-0ubuntu1 (916d829)
2017-02-22 Andrew Hayzen
* Add qtdeclarative5-dev-tools, qml-module-ubuntu-test and xvfb as
build-deps; Order build-deps alphabetically (LP:
#1666556) (c73447c)
* When the tab is being destroyed unset the source of the TabIcon
Loader (35f7d67)
* Add qml-module-qtqml-models2 as a depends, as it was missing
(a0c9da2)
* Add qtdeclarative5-dev-tools, qml-module-ubuntu-test and xvfb as
build-deps; Order build-deps alphabetically (3703946)
2017-02-21 Andrew Hayzen
* Remove remaining fixme's (abf2e94)
* Rename UbuntuSettingsComponentsPrintersPlugin to
UbuntuComponentsExtrasPrintersPlugin; Remove import
Ubuntu.Settings.Components 0.1 from example qml imports
(abaaab7)
* Rename definition UBUNTUSETTINGSPRINTERS_LIBRARY to
UBUNTUCOMPONENTSEXTRASPRINTERS_LIBRARY (98f1939)
* Rename UbuntuSettingsPrintersQml to
UbuntuComponentsExtrasPrintersQml; Rename translation
domain to ubuntu-ui-extras; Fix for printsupport being
build-depends rather than depends (3651371)
* Add printer-components from ubuntu-settings-components to
ubuntu-ui-extras (original branch
https://code.launchpad.net/~phablet-team/ubuntu-settings-components/printer-components)
* Add plugin module to Extras/Printers; Add translation
support for cpp/h; Add tests for Printers; Add debian
depends (36859b6)
2017-02-15 Andrew Hayzen
* When the tab is being destroyed unset the source of the TabIcon
Loader (d2a9d57)
2017-02-13 Andrew Hayzen
* Add qml-module-qtqml-models2 as a depends, as it was missing
(b06c10e)
2017-02-02 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (4e6ef43)
2017-02-01 Bileto Bot
* Resync trunk. (5e9d16b)
2017-01-30 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (126a9c0)
2017-01-16 Bileto Bot
* Releasing 0.2+17.04.20170116-0ubuntu1 (4d169b3)
2017-01-16 Florian Boucault
* New component: TabsBar (8f4edf1)
* Support transparent background colors. (d8c0620)
2017-01-09 Andrew Hayzen
* Add drag and drop support to tabs component (f98e9aa)
2017-01-06 Andrew Hayzen
* Add removeTabWithoutDestroying; Change behaviour of dimmed
rectangle to always undim when inside the droparea
(19f050e)
2017-01-03 Andrew Hayzen
* Resolve issue with type being inside qualified namespace; Clean
some code comments (80dd38a)
* Remove use of singleton and add "dimmed" property instead
(024f2f6)
2016-12-21 Andrew Hayzen
* Add objectName for listview (5d2d66e)
* Add drag and drop support to tabs component (d7cb181)
2016-12-09 Florian Boucault
* Removed unused tab PNGs. (655325c)
2016-12-08 Florian Boucault
* Introduce TabsBar in 0.3 (92053b8)
* New component: TabsBar (1ae7df6)
2016-10-04 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (07ea98a)
2016-10-03 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (48753c8)
2016-10-02 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (341dda7)
2016-09-20 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (d3823d5)
2016-08-31 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (5df566b)
2016-08-24 Bileto Bot
* Releasing 0.2+16.10.20160824.1-0ubuntu1 (2c14ce8)
2016-08-24 Timo Jyrinki
* Stop depending on transitional packages. (LP: #1583079) (LP:
#1583079) (5c189bb)
2016-08-24 Florian Boucault
* Fix image orientation in photo image provider for Qt>=5.5 (596094b)
* Fixed corresponding unit test (23edf87)
* For Qt5.5 and above, manually rotate images with orientation tags
set when applying any transformation. (e16d94b)
2016-08-23 Florian Boucault
* Fix image orientation in photo image provider for Qt>=5.5.
(2754677)
2016-08-22 Florian Boucault
* Photo editor: mirrored icon for rotation action. (21065c0)
2016-07-20 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (b05160e)
2016-07-14 Bileto Bot
* Releasing 0.2+16.10.20160714-0ubuntu1 (ebaf8f0)
2016-07-14 Florian Boucault
* Fixes for crossbuilding. (ecb3f08)
2016-07-11 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (b401f2b)
2016-07-06 Florian Boucault
* Fixes for crossbuilding. (afa041d)
2016-07-04 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (a28b490)
2016-06-26 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (819d218)
2016-06-17 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (6452d0c)
2016-06-09 Bileto Bot
* Releasing 0.2+16.10.20160609.1-0ubuntu1 (b400461)
2016-06-09 Arthur Mello
* Specify the domain "ubuntu-ui-extras" for i18n messages (LP:
#1521222) (246629a)
2016-06-09 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (a49b02d)
2016-06-07 Arthur Mello
* Merge with trunk (a0e67a4)
2016-06-06 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (b57b9d0)
2016-06-05 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (f8d4f1e)
2016-05-18 Timo Jyrinki
* Stop depending on transitional packages. (LP: #1583079) (15b963a)
2016-05-11 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (580886a)
2016-05-03 CI Train Bot
* Releasing 0.2+16.04.20160503-0ubuntu1 (34cc5e0)
2016-05-03 Florian Boucault
* Qt now takes into account the EXIF orientation data when loading
pictures; the rotation workaround is no longer necessary.
Approved by: PS Jenkins bot, Ugo Riboni (51d7463)
2016-04-29 Arthur Mello
* Specify the domain "ubuntu-ui-extras" for i18n messages (b13cf5b)
2016-04-27 Florian Boucault
* Qt now takes into account the EXIF orientation data when loading
pictures; the rotation workaround is no longer necessary.
(dbdea4b)
2016-04-26 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (26e4169)
2016-03-27 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (534acf1)
2016-03-23 CI Train Bot
* Releasing 0.2+16.04.20160323.1-0ubuntu1 (60d21b3)
2016-03-23 Arthur Mello
* Do not remove files during photo editor's copy process
Fixes:
#1549991 Approved by: PS Jenkins bot (f22b354)
2016-03-23 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (b34290f)
2016-03-15 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (d468d72)
2016-03-01 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (9404d89)
2016-02-29 CI Train Bot
* Resync trunk. (150483b)
2016-02-28 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (6dcf6c0)
2016-02-25 CI Train Bot
* Releasing 0.2+16.04.20160225-0ubuntu1 (28e0158)
2016-02-25 Florian Boucault
* When rotating pictures during edit, write the EXIF orientation tag
with the right type (unsigned short) instead of signed
long. PhotoImageProvider: change its behaviour to only
rectify the EXIF orientation tag type when necessary
(removes all other behaviours: caching, etc.)
Fixes:
#1541210 Approved by: PS Jenkins bot, Arthur Mello
(b221433)
2016-02-25 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (f7d23f8)
2016-02-23 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (afafaf0)
2016-02-16 Arthur Mello
* Remove original file after renaming process (faaf81e)
* Do not remove files during photo editor's copy process (ca093c4)
2016-02-13 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (b4b7714)
2016-02-11 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (ddaf8aa)
2016-02-10 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (b8367cb)
2016-02-09 Launchpad Translations on behalf of phablet-team
* Launchpad automatic translations update. (37a1f9c)
2016-01-12 Arthur Mello
* Update pot files (a790cdd)
2016-01-05 CI Train Bot
* Releasing 0.2+16.04.20160105-0ubuntu1 (c8ddb38)
2016-01-05 Arthur Mello
* Fix po/CMakeLists.txt command to update pot files
Fixes: #1521222
Approved by: PS Jenkins bot (3a6e5fa)
* Fix po/CMakeLists.txt command to update pot files (7e22aac)
2015-12-21 CI Train Bot
* Releasing 0.2+16.04.20151221-0ubuntu1 (9aad292)
2015-12-21 Bill Filler
* remove uneeded runtime dep on libexiv2-13 Approved by: PS Jenkins
bot (86ded62)
2015-12-21 Arthur Mello
* After editing a photo modify the original file instead of
removing/moving it
Fixes: #1524973 Approved by: PS Jenkins
bot (2b5a99a)
2015-12-21 Bill Filler
* updated changelog (3f54d6a)
* update changelog (5996753)
* remove uneeded runtime dep on libexiv2-13 (3ca6d17)
2015-12-11 Arthur Mello
* After editing a photo modify the original file instead of
removing/moving it (30c2955)
2015-06-10 Florian Boucault
* Further simplifications of unit tests. (cb03c8e)
2015-04-29 Florian Boucault
* PhotoImageProvider: change its behaviour to only rectify the EXIF
orientation tag type if necessary. (607f281)
2015-03-11 CI Train Bot
* Releasing 0.2+15.04.20150311-0ubuntu1 (fe66edf)
2015-03-11 Arthur Mello
* Add QML tests to PhotoEditor's components Approved by: PS Jenkins
bot (8f419ca)
* Changes made on Gallery version of the editor to fix build and AP
tests Approved by: PS Jenkins bot (6c3a902)
2015-03-10 Arthur Mello
* Removed unused test (f725448)
* Add QML test for CropDragArea (d98259e)
* Add QML Test for BusyIndicator Component (65ac313)
* Add another test to ActionsBar (12f1c58)
* Add ActionsBar QML tests (83ec7ee)
* Fix on CMakeLists.txt (8e4a115)
* Add basic structure for building qml tests (63a205b)
2015-03-02 Arthur Mello
* Changes made on Gallery version of the editor to fix build and AP
tests (a177c6a)
2015-02-12 CI Train Bot
* Releasing 0.2+15.04.20150212.3-0ubuntu1 (37bfe36)
2015-02-12 Bill Filler
* remove slow actions, bump the version of the component
Fixes:
#1368787 Approved by: PS Jenkins bot (2b38bca)
2015-02-12 Ugo Riboni
* Add debian tags to force replacing the old package with the new
(4c0abdd)
2015-02-11 Bill Filler
* remove the changelog bump as this is done automatically by CI
(c4e3907)
2015-02-11 Ugo Riboni
* Simplify the actions bar to just use an AbstractButton (0830eee)
* Remove enhance and exposure actions for now, as they are too slow
(9c721f9)
* Bump the version to 0.2 to enable detection of PhotoEditor by apps
(b39fa2b)
2015-02-04 CI Train Bot
* Releasing 0.1+15.04.20150204-0ubuntu1 (0357a46)
2015-02-04 Ugo Riboni
* Add a photo editor component, partially based on the Gallery photo
editor
Fixes: #1368787 Approved by: PS Jenkins bot
(a71f800)
* Make the busy indicator more obvious only for enhance, without it
being too much in your face anyway (a38e884)
* Fix incorrect handling of the revert action availability (69d79ae)
2015-02-03 Ugo Riboni
* Add a more visible busy indicator when applying the super slow
enhance filter (203ac05)
* Update with new icons from design and correctly disable revert
action (0fa60d5)
2015-01-28 Ugo Riboni
* Replace the thumbnail in the EXIF after editing (ff10056)
2015-01-15 Ugo Riboni
* Code style fix. No functionality change. (35153c7)
* Disable the QML cache in the cropper, so that only the photo image
provider cache is used (55688df)
2014-12-16 Ugo Riboni
* Use a better icon for the revert to original action (25a5c98)
2014-12-15 Ugo Riboni
* When cropping from a smaller area to a larger one update the crop
frame as we drag, to make it easier to extend the crop
area without having to drop several times. (a5b1a57)
* Add a confirmation dialog before reverting to original (f3687d8)
* Disable undo/redo actions while in crop or exposure mode or while
performing an operation on the image pixels. (2ef9957)
* Disable QML cache on the exposure adjuster image so that it
correctly uses the photo image provider cache when
reloading (122f7fd)
* Fix a bug where dragging the crop rectangle would activate the
brightness adjustment (05468ce)
2014-12-09 Ugo Riboni
* Update imports to use the latests version of QtQuick and the UI
components (cd0bbf5)
* Add missing copyright headers (2c95db5)
* Limit the size of the images to the size of the screen (c70a631)
* More removal of Share (56c7126)
* Remove more things needed to remove the Share component (34142b4)
* Remove dependencies for the share component which has been removed
(e9d08ca)
* Remove the Share component as it is not used by anything and has
been superseded (07d4914)
* Fix a bug in the CMakeLists.txt (0db765f)
2014-12-03 Ugo Riboni
* Further simplify (d7e8fa7)
* Further simplify the image provider (344dd26)
* Simplify and refactor code a bit (b36380f)
* Prevent the image editor to load empty pictures before it is
started (cb4365e)
* Add more crop tests and ensure the crop rectangle is always within
bounds (360f39c)
* Add tests for cropping (73c3f5c)
* Add tests for the PhotoData class (b4a41f3)
* Remove more dead code (b986e5f)
2014-12-02 Ugo Riboni
* Simplify the code, fix a bug where requestedSize was not honored,
and add tests for the cache using different requested
sizes (3295464)
* Expose some signals helping track the status of the cache, and
write some initial tests for the cache. Fix a bug
resulting from these tests. (d57666c)
* Remove support for color balance since it is not used. We can pull
it back in later if needed. (0cc23be)
* Remove dead code (5c4f4dd)
* Largely simplify things by not storing original orientation and
size and applying the crop rectangle directly to the
correctly rotated image in the editing thread. (4a82844)
2014-12-01 Ugo Riboni
* Fix but in crop component preventing it from appearing (559e494)
* Fix an image provider test and start adding tests for the PhotoData
class (24d0e85)
* Fix previous commit and add more image provider tests (f6ec274)
* Add unit tests for the photo image provider (8e979a6)
2014-11-25 Ugo Riboni
* Prevent file operations on empty paths (9341c97)
* Rename the Photo class to PhotoData (0616034)
2014-11-24 Ugo Riboni
* Fix package dependencies and installation (f38e0cb)
* Reload the cropper every time (fb661bf)
* Preserve metadata when performing pixel manipulation operations
(84bb141)
* Fix revert to original and allow the option of not saving when
finishing an editing session (26baa1c)
2014-11-19 Ugo Riboni
* Add a first draft of the PhotoEditor component (which also includes
the image://photo/ provider) (3606e69)
* Ignore generated CMakeLists.txt.user (499c136)
2014-11-10 CI bot
* Releasing 0.1+15.04.20141110-0ubuntu1 (a34a091)
2014-11-10 Sebastien Bacher
* Update the translations template during the build, to use for
langpacks
Fixes: 1391200 Approved by: Martin Pitt, PS
Jenkins bot (d7e34cc)
2014-11-10 Ricardo Salveti de Araujo
* No-change rebuild for shlib changes in qtbase and qtdeclarative.
(5772e03)
2014-11-10 Sebastien Bacher
* don't use dh_translations, it's not needed (43dfbb7)
* Update the translations template during the build, to use for
langpacks (74963b9)
2014-03-31 CI bot
* Releasing 0.1+14.04.20140331-0ubuntu1 (95e711c)
2014-03-31 Ken VanDine
* Fixed deprecations, refactored a bit for simplicity. Use an Item
instead of a Rectangle to be more consistent with the
toolkit. (d28fdd0)
2014-03-06 CI bot
* Releasing 0.1+14.04.20140306-0ubuntu1 (7fde449)
* No change rebuild against Qt 5.2.1. (a354ba5)
2014-02-28 Ken VanDine
* Switch the Item back to a Rectangle, makes the input fields easier
to read. (81b5bdb)
2014-02-27 CI bot
* Releasing 0.1+14.04.20140227-0ubuntu1 (43849fe)
* release trunk (1f1a3c6)
2014-02-24 Ken VanDine
* Merged trunk (daac42b)
2014-02-24 Arthur Mello
* fix facebook icon not appearing. (1b1a796)
2014-02-20 Ken VanDine
* Fixed deprecations, refactored a bit. Use an Item instead of a
Rectangle to be more consistent with the toolkit.
(8da9f6f)
* Fixed deprecations, refactored a bit for simplicity. Also filter
accounts by provider, limiting the model to just Facebook.
This lets us remove all the conditionals for facebook.
(c01337b)
2014-02-20 Arthur Mello
* Fix share provider icon source (147c5c3)
2013-10-21 Guenter Schwann
* Use lazy loading for facebook id and name.
Fixes:
https://bugs.launchpad.net/bugs/1221266. (0a2d0b6)
2013-10-18 Guenter Schwann
* Use lazy loading for facebook id and name (d3812b1)
2013-10-16 Ugo Riboni
* Allow checking if the Facebook account has been configured or
removed.
Fixes: https://bugs.launchpad.net/bugs/1240145.
(f4ccb9b)
* Add the ability to verify if a Facebook account has been created or
deleted (e2ce3b6)
2013-08-29 Automatic PS uploader
* Releasing 0.1+13.10.20130829-0ubuntu1 (revision 52 from
lp:ubuntu-ui-extras). (a0b12b7)
* Releasing 0.1+13.10.20130829-0ubuntu1, based on r52 (8cb4768)
2013-08-29 Ken VanDine
* Updated for qtdeclarative5-friends0.2 . (8d9f98e)
* Updated for qtdeclarative5-friends0.2 (9567bdb)
2013-08-21 Automatic PS uploader
* Releasing 0.1+13.10.20130821.1-0ubuntu1 (revision 50 from
lp:ubuntu-ui-extras). (78e985f)
* Releasing 0.1+13.10.20130821.1-0ubuntu1, based on r50 (fc0f725)
2013-08-21 Ugo Riboni
* Add a SharePopover component that apps can use to let the user
chose to which service to share. (576a3fe)
* Merge changes from trunk (97370d7)
2013-08-21 Automatic PS uploader
* Releasing 0.1+13.10.20130821-0ubuntu1 (revision 48 from
lp:ubuntu-ui-extras). (d9349bb)
* Releasing 0.1+13.10.20130821-0ubuntu1, based on r48 (7945dd5)
2013-08-21 Łukasz 'sil2100' Zemczak
* Rename the source package name to ubuntu-ui-extras, change the
binary package name to the new standard:
qtdeclarative5-ubuntu-ui-extras0.1 (version number
attached). (43e7127)
* Tweak the description a bit (a92e722)
* Remove libnotify4 dep as we use shlibs anyway (7b6c917)
* As requested by seb, change the name of the binary package to have
the version in the name (760c9c7)
* Add additional info to copyright (c02abaa)
* Eeek, changelog (946f810)
* Wrong source package name (44f58ba)
2013-08-20 Ugo Riboni
* Remove the autopilot test and package, since they do nothing for
now. (8aa62bf)
2013-08-20 Łukasz 'sil2100' Zemczak
* Packaging review, bootstrapping for daily-release. (ad658f0)
* We don't need the install files anymore (30c5f9e)
2013-08-20 Ugo Riboni
* Remove the autopilot tests package as well (7a0725d)
* Remove autopilot tests which at the moment do nothing (52b280b)
2013-08-20 Łukasz 'sil2100' Zemczak
* Packaging review (8f28d4c)
2013-08-20 Ugo Riboni
* Add a SharePopover component that applications can use to let the
user choose to which service to share (901439e)
* Add a qmlproject file, for convenience (f9ae4dd)
2013-08-19 Ugo Riboni
* Move most of the share-app code into a component as part of
Ubuntu.Components.Extras. (470e7d9)
* Add new unit tests for the share component, fix and enable the
existing ones (54cca25)
* Adjust the xgettext command line while building the .pot file
(469f312)
* Use the correct domain when loading translated strings (8a516fb)
* Add initial translation to italian (acd2068)
* Add comma at end of dependency list for consistency (f6a6406)
* Forgot to update 2 copyright headers (2a67e1b)
* Simplify the code (2c62e3e)
* Remove unneeded dependency that should've gone away with the
previous dead code removal (7535565)
* Update copyright as part of the code is from 2012 (159aa48)
2013-08-13 Ugo Riboni
* Remove dead code (ca0e22f)
* Add initial i18n support (71f4608)
* Add missing runtime dependency (1c712ad)
* Remove unneeded use of wildcards (db94cf8)
* Adjust some minor inconsistencies in the anchoring and size of the
thumbnail (285a581)
* Remove unused class that only made sense inside share-app (61c331f)
* Update the copyright date (20ce03c)
* Update copyright (1cff87f)
* Internally rename the component and provide it with a standard
background color (54da6c7)
* Add more missing dependencies (88aa391)
* Add missing dependency on pkg-config (2ff830b)
2013-08-12 Ugo Riboni
* Add back assets (96d7736)
* Add back a dependency that was mistakenly removed (467e6c7)
* Add missing dependency on Ubuntu.Accounts QML plugin (68242a1)
* Componentize more properly, including passing parameters through
properties and sending events instead of quitting
(66f541c)
* Adding the share app as a component as part of this library. Builds
but otherwise untested and unfinished. (da6ffd7)
2013-08-07 Ugo Riboni
* Initial commit. (1c464e4)
2013-07-02 Ugo Riboni
* Remove all browser work and leave only an example component and
skeleton build system (8e877d6)
2013-07-01 Ugo Riboni
* Backport revision 189 from webbrowser-app (4862241)
* Backport revision 187 from webbrowser-app (2483918)
* Backport revision 181 from webbrowser-app (68d59cc)
* Backport revision 180 from webbrowser-app (2a97980)
* Backport revision 176 from webbroser-app (8d81dd1)
2013-06-26 Ugo Riboni
* Backport revision 174 from the app (01f2dbb)
* Backport revision 173 from the app (a7ace10)
* Fix a test failing because it clicks outside of the application
(4716694)
* Fix a previous mistake preventing correct detection of when to run
locally or installed (f556ea7)
* Backport revision 170 from the app (6fa2280)
* Backport revision 170 from the app (88c30a8)
* Backport revision 169 from the app (df107b6)
* Backport rev 168 from app (f421774)
* Backport rev 167 from the app (20a0772)
* Refactor test cases (rev 164 from webbrowser-app) (0271833)
* Merge changes from branch (7fce4ac)
* Fix tests so that they run when installed (5d0e93a)
* Fix the runner so that it creates an initial tab just like the
webbrowser-app would at startup (f18ef9c)
* Revert parts of new files that were mistakenly taken from later
commits (ecb18ee)
2013-06-25 Ugo Riboni
* Add and ajust autopilot tests for tabs support (ef5cc63)
* Merge changes to Browser.qml related to tabs support, except
autopilot tests. (4eefad2)
2013-06-25 Omer Akram
* fix runner.qml location in autopilot tests (a1cc2c5)
* fix license header (44227a3)
2013-06-24 Ugo Riboni
* Fix the autopilot tests so that they can run uninstalled (d9881e1)
* Move the qml binary plugin into a separate directory to match SDK
standards (b8ff353)
* Rename src directory to modules to match sdk conventions for
plugins (3f07c05)
2013-06-19 Ugo Riboni
* Properly install all needed files (dae781a)
2013-06-18 Ugo Riboni
* Remove spurious install command that was causing the package build
to fail (d63d578)
* Fix the installation of the autopilot tests (4027f08)
* Use the correct location for finding tests uninstalled (7dd3d00)
* Remove tests that are specific to webbrowser-app and not to the
component (000cc86)
* Remove commented out code that isn't useful anymore (80a1bab)
* Move browser autopilot tests one level down the tree and install
them correctly (ef74cff)
* Merge autopilot tests fixes (1037ed2)
2013-06-17 Omer Akram
* fix autopilot tests for the browser component (35acfc9)
2013-06-17 Ugo Riboni
* Properly copy builld products to the unit tests dir so that the
unit tests can run successfully (bd40b6a)
2013-06-11 Ugo Riboni
* Try to fix the unit tests (d0587fb)
2013-06-10 Ugo Riboni
* Fix unit tests (b7c930a)
* Remove some debug code in autopilot tests (645cc3a)
* Fix the imports in autopilot tests (79b262a)
* Fix the runner and name for autopilot tests (be1def0)
* Fix packaging and add translations (e1abafb)
* Fix unit tests (0ce6c71)
* Initial commit of autopilot tests (1c77679)
2013-06-05 Ugo Riboni
* Add unit tests (5388c33)
* Initial commit, only plugin, no tests, no translations (1f7de31)
lomiri-ui-extras-0.6.3/README 0000664 0000000 0000000 00000002103 14555431165 0015617 0 ustar 00root root 0000000 0000000 Lomiri exta components are a collection of components that does not have the necessary
level of quality for inclusion in the toolkit (https://gitlab.com/ubports/core/lomiri-ui-toolkit):
- lack of documentation
- lack of automated tests
= Dependencies =
$ apt-get install qtcore5-dev
qtbase5-dev
qtdeclarative5-dev
libexiv2-dev
libcups2-dev
install the cmake-extras from the ubports github
= Building =
The build system uses cmake.
To compile, simply invoke cmake and then make:
$ cmake .
$ make
= Unit tests =
To run the unit tests, you can use the commands below:
$ make test
- or -
$ ctest
= Automated UI tests =
We use autopilot (https://launchpad.net/autopilot) to test the UI.
To run the tests, you will need to install python-autopilot and libautopilot-qt.
Then do the following:
$ cd tests/autopilot/
$ autopilot run lomiri_ui_extras
You can get a list of all available tests with the following command:
$ autopilot list lomiri_ui_extras
lomiri-ui-extras-0.6.3/debian/ 0000775 0000000 0000000 00000000000 14555431165 0016165 5 ustar 00root root 0000000 0000000 lomiri-ui-extras-0.6.3/debian/Jenkinsfile 0000664 0000000 0000000 00000000101 14555431165 0020341 0 ustar 00root root 0000000 0000000 @Library('ubports-build-tools') _
buildAndProvideDebianPackage()
lomiri-ui-extras-0.6.3/debian/changelog 0000664 0000000 0000000 00000033137 14555431165 0020046 0 ustar 00root root 0000000 0000000 lomiri-ui-extras (0.6.3) unstable; urgency=medium
* Upstream-provided Debian package for lomiri-ui-extras. See upstream
ChangeLog for recent changes.
-- UBports developers Sun, 28 Jan 2024 11:54:45 +0100
lomiri-ui-extras (0.6.2) unstable; urgency=medium
* Upstream-provided Debian package for lomiri-ui-extras. See upstream
ChangeLog for recent changes.
-- UBports developers Sun, 15 Oct 2023 13:36:12 +0200
lomiri-ui-extras (0.6.1) unstable; urgency=medium
* Upstream-provided Debian package for lomiri-ui-extras. See upstream
ChangeLog for recent changes.
-- UBports developers Sun, 15 Oct 2023 09:17:17 +0200
lomiri-ui-extras (0.6.0) unstable; urgency=medium
[ Guido Berhoerster ]
* Import qml-module-pamauthentication0.1 subpackage from
terminal-app/filemanager-app
[ UBports developers ]
* Upstream-provided Debian package for lomiri-ui-extras. See upstream
ChangeLog for recent changes.
-- UBports developers Wed, 11 Jan 2023 00:00:18 +0100
lomiri-ui-extras (0.5) unstable; urgency=medium
* Upstream-provided Debian package for lomiri-ui-extras. See upstream
ChangeLog for recent changes.
-- UBports developers Fri, 04 Mar 2022 19:34:53 +0100
ubuntu-ui-extras (0.4+ubports) xenial; urgency=medium
* Imported to UBports
-- UBports auto importer Sun, 07 Jan 2018 23:38:30 +0100
ubuntu-ui-extras (0.3+17.04.20170323-0ubuntu1) zesty; urgency=medium
[ Andrew Hayzen, Jonas G. Drange ]
* Adds devices as an model on Printers, and re-instates remote printer model on Printers.
* makes sure the backend is refreshed on enable/disable
* If printerAdded is called ensure there is always a proxy printer
corrects thread affinity for printerloaded printers, as well as any qobject children it might have
* Remove PrinterQueue.qml example and add missing job methods to Printers.qml example, so we have only one example
* improves the deviceName by dropping the CMD (note that the full string remains accessible from device.id)
* Connect job-impressions-completed from cups to PrinterJob::impressionsCompleted()
* In the job model listen to printerStateChanged as changes t job-impressions-completed causes that signal
* Improve the PrinterSignalHandler to limit the maximum wait time of unprocessed signals to four times the timeout
* Add unit test for SignalRateLimiter to check it does perform a flush
* Rename PrinterSignalHandler to SignalRateLimiter
* Add a JobLoader for loading a specific jobId for a printer and loading the extended attributes
* Move the loading of creationTime, completedTime, processingTime, size and user to extended attributes as signals don't give us those
* Add method for PrinterBackend for getting a specific job
* Split up JobModel::update so there is jobCreated, jobState and jobCompleted which then call addJob, removeJob and updateJob
* Improve Printer::updateFrom to not call loadAttributes as this results in a possible UI block
* Add missing comparisions for PrinterJob deepCompare and updateFrom
* Change PrinterJob::setPrinter to not call loadDefaults and instead explicitly call it
* Change Printers to trigger requestJobExtendedAttributes which triggers a background thread rather than doing in foreground
* exposes copies attribute on the printer
* includes cups/adminutils.h into which the cups device callback was moved in >= libcups2-dev 2.2.2
* allows browsing on local and remote printers
* Add filters for active, paused and queued
* Add sorting by creationTime and then falling back to id
* Change time related roles in JobModel to return QDateTime, not QString, so sorting doesn't break
* Update tests
* Change printerGetJobAttributes to use printer-uri and job-id (the same as holdJob and releaseJob
* Give printerGetJobAttributes printerName so we can ensure we get the correct job
* adds read/write of the shared property
* adds extended attribute fetching (IppClient::printerGetAttributes)
* refactors attribute retrieval from cups
* implements deviceUri and lastMessage on Printer
* adds Printers.printTestPage
* Add tests for JobModel roles
* Add tests for make and location in Printer
* Fix JobModel color and quality roles to use fallback if no text
* Add tests for all roles in PrinterModel
* Remove PdfRole it is not used (IsPdfRole instead)
* Add holdJob and releaseJob methods to Printers
* Add HeldRole to JobModel
* Add tests for hold and releasing a job
* Update example to show how hold and release work
* Update StateRole to return just the state, not text
* Remove PrinterJob friends and make setters public as they aren't exposed to QML anyway
* adds make and location to printermodel and printer
* Pull of trunk
* Remove use of bitewise or as it fails in CI
* guards against excessive loading of printers and drivers
* adds loadPrinter method on Printers
* drops a lot of code that was not used, and some TODOS/FIXMES that aren't necessary
* Fix/add commented or empty tests
* Implement tests that had QSKIP
* removes empty brackets
* adds cmake extras, required by printer stuff
* Remove remaining fixme's
* Rename UbuntuSettingsComponentsPrintersPlugin to UbuntuComponentsExtrasPrintersPlugin
* Remove import Ubuntu.Settings.Components 0.1 from example qml imports
* Rename definition UBUNTUSETTINGSPRINTERS_LIBRARY to UBUNTUCOMPONENTSEXTRASPRINTERS_LIBRARY
* Rename UbuntuSettingsPrintersQml to UbuntuComponentsExtrasPrintersQml
* Rename translation domain to ubuntu-ui-extras
* Fix for printsupport being build-depends rather than depends
-- Andrew Hayzen Thu, 23 Mar 2017 12:54:43 +0000
ubuntu-ui-extras (0.2+17.04.20170301.2-0ubuntu1) zesty; urgency=medium
[ Andrew Hayzen, Jonas G. Drange ]
* Add printer-components from ubuntu-settings-components to ubuntu-ui-
extras (original branch https://code.launchpad.net/~phablet-
team/ubuntu-settings-components/printer-components)
-- Andrew Hayzen Wed, 01 Mar 2017 22:24:08 +0000
ubuntu-ui-extras (0.2+17.04.20170222-0ubuntu1) zesty; urgency=medium
[ Andrew Hayzen ]
* Add qml-module-qtqml-models2 as a depends, as it was missing
* When the tab is being destroyed unset the source of the TabIcon
Loader
* Add qtdeclarative5-dev-tools, qml-module-ubuntu-test and xvfb as
build-deps (LP: #1666556)
-- Olivier Tilloy Wed, 22 Feb 2017 10:52:03 +0000
ubuntu-ui-extras (0.2+17.04.20170116-0ubuntu1) zesty; urgency=medium
[ Florian Boucault ]
* New component: TabsBar
-- Kaleo Mon, 16 Jan 2017 16:02:24 +0000
ubuntu-ui-extras (0.2+16.10.20160824.1-0ubuntu1) yakkety; urgency=medium
[ Florian Boucault ]
* Fix image orientation in photo image provider for Qt>=5.5
[ Timo Jyrinki ]
* Stop depending on transitional packages. (LP: #1583079) (LP:
#1583079)
-- Kaleo Wed, 24 Aug 2016 15:47:28 +0000
ubuntu-ui-extras (0.2+16.10.20160714-0ubuntu1) yakkety; urgency=medium
[ Florian Boucault ]
* Fixes for crossbuilding.
-- Kaleo Thu, 14 Jul 2016 12:45:37 +0000
ubuntu-ui-extras (0.2+16.10.20160609.1-0ubuntu1) yakkety; urgency=medium
[ Arthur Mello ]
* Specify the domain "ubuntu-ui-extras" for i18n messages (LP:
#1521222)
-- Arthur Renato Mello Thu, 09 Jun 2016 18:09:38 +0000
ubuntu-ui-extras (0.2+16.04.20160503-0ubuntu1) xenial; urgency=medium
* Qt now takes into account the EXIF orientation data when loading
pictures; the rotation workaround is no longer necessary.
-- Florian Boucault Tue, 03 May 2016 13:31:24 +0000
ubuntu-ui-extras (0.2+16.04.20160323.1-0ubuntu1) xenial; urgency=medium
[ Arthur Mello ]
* Do not remove files during photo editor's copy process (LP:
#1549991)
[ CI Train Bot ]
* Resync trunk.
-- Arthur Mello Wed, 23 Mar 2016 18:03:21 +0000
ubuntu-ui-extras (0.2+16.04.20160225-0ubuntu1) xenial; urgency=medium
[ Arthur Mello ]
* Update pot files
[ Florian Boucault ]
* When rotating pictures during edit, write the EXIF orientation tag
with the right type (unsigned short) instead of signed long.
PhotoImageProvider: change its behaviour to only rectify the EXIF
orientation tag type when necessary (removes all other behaviours:
caching, etc.) (LP: #1541210)
-- Florian Boucault Thu, 25 Feb 2016 15:11:48 +0000
ubuntu-ui-extras (0.2+16.04.20160105-0ubuntu1) xenial; urgency=medium
[ Arthur Mello ]
* Fix po/CMakeLists.txt command to update pot files (LP: #1521222)
-- Bill Filler Tue, 05 Jan 2016 21:37:21 +0000
ubuntu-ui-extras (0.2+16.04.20151221-0ubuntu1) xenial; urgency=medium
[ Arthur Mello ]
* After editing a photo modify the original file instead of
removing/moving it (LP: #1524973)
-- Bill Filler Mon, 21 Dec 2015 14:24:50 +0000
ubuntu-ui-extras (0.2+15.04.20150311-0ubuntu4) wily; urgency=medium
* No-change rebuild against libexiv2-14.
-- Martin Pitt Thu, 06 Aug 2015 08:05:25 +0200
ubuntu-ui-extras (0.2+15.04.20150311-0ubuntu3) wily; urgency=medium
* Drop hard-coded dependency on libexiv2-13.
-- Steve Langasek Sun, 02 Aug 2015 19:49:44 +0000
ubuntu-ui-extras (0.2+15.04.20150311-0ubuntu2) wily; urgency=medium
* No-change rebuild against libexiv2-13v5
-- Steve Langasek Sun, 02 Aug 2015 09:22:10 +0000
ubuntu-ui-extras (0.2+15.04.20150311-0ubuntu2~gcc5.1) wily; urgency=medium
* No-change test rebuild for g++5 ABI transition
-- Steve Langasek Wed, 15 Jul 2015 16:22:37 +0000
ubuntu-ui-extras (0.2+15.04.20150311-0ubuntu1) vivid; urgency=medium
[ Arthur Mello ]
* Add QML tests to PhotoEditor's components
* Changes made on Gallery version of the editor to fix build and AP
tests
[ CI Train Bot ]
* New rebuild forced.
-- CI Train Bot Wed, 11 Mar 2015 18:38:04 +0000
ubuntu-ui-extras (0.2+15.04.20150212.3-0ubuntu1) vivid; urgency=medium
[ Bill Filler ]
* remove slow actions, bump the version of the component (LP:
#1368787)
[ Ubuntu daily release ]
* New rebuild forced
[ Ugo Riboni ]
* remove slow actions, bump the version of the component (LP:
#1368787)
-- Ubuntu daily release Thu, 12 Feb 2015 17:40:46 +0000
ubuntu-ui-extras (0.1+15.04.20150204-0ubuntu1) vivid; urgency=medium
[ Ubuntu daily release ]
* New rebuild forced
[ Ugo Riboni ]
* Add a photo editor component, partially based on the Gallery photo
editor (LP: #1368787)
-- Ubuntu daily release Wed, 04 Feb 2015 20:33:53 +0000
ubuntu-ui-extras (0.1+15.04.20141110-0ubuntu1) vivid; urgency=low
[ Sebastien Bacher ]
* Update the translations template during the build, to use for
langpacks (LP: #1391200)
[ Ubuntu daily release ]
* New rebuild forced
-- Ubuntu daily release Mon, 10 Nov 2014 16:07:47 +0000
ubuntu-ui-extras (0.1+14.04.20140331-0ubuntu2) trusty; urgency=medium
* No-change rebuild for shlib changes in qtbase and qtdeclarative.
-- Ricardo Salveti de Araujo Mon, 14 Apr 2014 15:39:59 -0300
ubuntu-ui-extras (0.1+14.04.20140331-0ubuntu1) trusty; urgency=low
[ Ken VanDine ]
* Fixed deprecations, refactored a bit for simplicity. Use an Item
instead of a Rectangle to be more consistent with the toolkit.
Filter accounts by provider, limiting the model to just Facebook.
This lets us remove all the conditionals for facebook.
-- Ubuntu daily release Mon, 31 Mar 2014 17:49:59 +0000
ubuntu-ui-extras (0.1+14.04.20140306-0ubuntu1) trusty; urgency=low
* New rebuild forced
-- Ubuntu daily release Thu, 06 Mar 2014 10:33:55 +0000
ubuntu-ui-extras (0.1+14.04.20140227-0ubuntu1) trusty; urgency=low
[ Arthur Mello ]
* fix facebook icon not appearing.
[ Ugo Riboni ]
* Allow checking if the Facebook account has been configured or
removed. (LP: #1240145)
[ Guenter Schwann ]
* Use lazy loading for facebook id and name. (LP: #1221266)
[ CI bot ]
* release trunk
-- Ubuntu daily release Thu, 27 Feb 2014 02:23:40 +0000
ubuntu-ui-extras (0.1+13.10.20130829-0ubuntu1) saucy; urgency=low
[ Ken VanDine ]
* Updated for qtdeclarative5-friends0.2 .
[ Ubuntu daily release ]
* Automatic snapshot from revision 52
-- Ubuntu daily release Thu, 29 Aug 2013 15:21:34 +0000
ubuntu-ui-extras (0.1+13.10.20130821.1-0ubuntu1) saucy; urgency=low
[ Ugo Riboni ]
* Add a SharePopover component that apps can use to let the user chose
to which service to share.
[ Ubuntu daily release ]
* Automatic snapshot from revision 50
-- Ubuntu daily release Wed, 21 Aug 2013 16:18:58 +0000
ubuntu-ui-extras (0.1+13.10.20130821-0ubuntu1) saucy; urgency=low
[ Ugo Riboni ]
* Initial Release
[ Łukasz 'sil2100' Zemczak ]
* Automatic snapshot from revision 45 (bootstrap)
[ Ugo Riboni ]
* Remove the autopilot test and package, since they do nothing for
now.
[ Łukasz 'sil2100' Zemczak ]
* Remove the autopilot test and package, since they do nothing for
now.
[ Ubuntu daily release ]
* Automatic snapshot from revision 48
-- Ubuntu daily release Wed, 21 Aug 2013 09:04:11 +0000
lomiri-ui-extras-0.6.3/debian/compat 0000664 0000000 0000000 00000000002 14555431165 0017363 0 ustar 00root root 0000000 0000000 9
lomiri-ui-extras-0.6.3/debian/control 0000664 0000000 0000000 00000002464 14555431165 0017576 0 ustar 00root root 0000000 0000000 Source: lomiri-ui-extras
Section: x11
Priority: optional
Maintainer: UBports Developers
Build-Depends: cmake (>= 2.8.9),
cmake-extras (>= 0.10),
debhelper (>= 9),
gettext,
libcups2-dev,
libexiv2-dev,
libpam0g-dev,
pkg-config,
python:any,
qt5-default,
qtbase5-dev,
qtdeclarative5-dev,
qtdeclarative5-dev-tools,
qml-module-qtquick2,
qml-module-qttest,
qml-module-lomiri-components,
qml-module-lomiri-test,
xvfb,
Standards-Version: 3.9.4
Homepage: https://gitlab.com/ubports/core/lomiri-ui-extras
X-Ubuntu-Use-Langpack: yes
Package: qml-module-lomiri-components-extras
Architecture: any
Depends: ${misc:Depends},
${shlibs:Depends},
libqt5printsupport5,
qml-module-qtqml-models2,
qml-module-qtquick2,
qml-module-lomiri-components,
qml-module-qtquick-window2,
Description: Lomiri UI Extra Components
A collection of UI components that for various reasons can't be included in
the main Lomiri UI toolkit - mostly because of the level of quality, lack of
documentation and/or lack of automated tests.
lomiri-ui-extras-0.6.3/debian/copyright 0000664 0000000 0000000 00000001673 14555431165 0020127 0 ustar 00root root 0000000 0000000 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: lomiri-ui-extras
Source: https://gitlab.com/ubports/core/lomiri-ui-extras
Files: *
Copyright: 2013 Canonical Ltd.
License: GPL-3
License: GPL-3
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, version 3 of the License.
.
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 .
.
On Debian systems, the full text of the GNU General Public License
version 3 can be found in the file /usr/share/common-licenses/GPL-3.
lomiri-ui-extras-0.6.3/debian/rules 0000775 0000000 0000000 00000000725 14555431165 0017251 0 ustar 00root root 0000000 0000000 #!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export QT_SELECT := qt5
export DPKG_GENSYMBOLS_CHECK_LEVEL=4
ifneq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
CONFIGURE_OPTS += -DENABLE_TESTS=OFF
endif
%:
dh $@ --parallel --fail-missing
override_dh_auto_configure:
dh_auto_configure -- \
$(CONFIGURE_OPTS)
override_dh_auto_build:
dh_auto_build
$(MAKE) -C obj-$(DEB_HOST_GNU_TYPE) lomiri-ui-extras.pot
lomiri-ui-extras-0.6.3/lomiri-ui-extras.qmlproject 0000664 0000000 0000000 00000000432 14555431165 0022256 0 ustar 00root root 0000000 0000000 import QmlProject 1.1
Project {
QmlFiles {
directory: "modules"
}
JavaScriptFiles {
directory: "modules"
}
Files {
filter: ["modules/Lomiri/Components/Extras/qmldir", "modules/Lomiri/Components/Extras/PamAuthentication/qmldir"]
}
}
lomiri-ui-extras-0.6.3/modules/ 0000775 0000000 0000000 00000000000 14555431165 0016413 5 ustar 00root root 0000000 0000000 lomiri-ui-extras-0.6.3/modules/CMakeLists.txt 0000664 0000000 0000000 00000000031 14555431165 0021145 0 ustar 00root root 0000000 0000000 add_subdirectory(Lomiri)
lomiri-ui-extras-0.6.3/modules/Lomiri/ 0000775 0000000 0000000 00000000000 14555431165 0017646 5 ustar 00root root 0000000 0000000 lomiri-ui-extras-0.6.3/modules/Lomiri/CMakeLists.txt 0000664 0000000 0000000 00000000035 14555431165 0022404 0 ustar 00root root 0000000 0000000 add_subdirectory(Components)
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/ 0000775 0000000 0000000 00000000000 14555431165 0021773 5 ustar 00root root 0000000 0000000 lomiri-ui-extras-0.6.3/modules/Lomiri/Components/CMakeLists.txt 0000664 0000000 0000000 00000000031 14555431165 0024525 0 ustar 00root root 0000000 0000000 add_subdirectory(Extras)
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/ 0000775 0000000 0000000 00000000000 14555431165 0023241 5 ustar 00root root 0000000 0000000 lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/CMakeLists.txt 0000664 0000000 0000000 00000001225 14555431165 0026001 0 ustar 00root root 0000000 0000000 file(GLOB QML_FILES *.qml qmldir)
set(QT_IMPORTS_DIR "${CMAKE_INSTALL_LIBDIR}/qt5/qml")
set(PLUGIN_DIR ${QT_IMPORTS_DIR}/Lomiri/Components/Extras)
install(FILES ${QML_FILES} DESTINATION ${PLUGIN_DIR})
# copy qml files over to build dir to be able to import them in tests
foreach(qmlFile ${QML_FILES} Example.qml PhotoEditor.qml TabsBar.qml Example PhotoEditor TabsBar)
file(COPY ${qmlFile} DESTINATION ${CMAKE_BINARY_DIR}/tests/unittests/Lomiri/Components/Extras/)
endforeach(qmlFile)
add_subdirectory(plugin)
add_subdirectory(Example)
add_subdirectory(PamAuthentication)
add_subdirectory(PhotoEditor)
add_subdirectory(Printers)
add_subdirectory(TabsBar)
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/Example.qml 0000664 0000000 0000000 00000001567 14555431165 0025360 0 ustar 00root root 0000000 0000000 /*
* Copyright 2013 Canonical Ltd.
*
* This file is part of lomiri-ui-extras.
*
* ubuntu-ui-extras 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; version 3.
*
* ubuntu-ui-extras 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 .
*/
import QtQuick 2.3
import Lomiri.Components 1.1
import Lomiri.Components.Extras 0.2
import "Example"
ListView {
model: ExampleModel {
}
delegate: ExampleDelegate {
text: model.text
}
}
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/Example/ 0000775 0000000 0000000 00000000000 14555431165 0024634 5 ustar 00root root 0000000 0000000 lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/Example/CMakeLists.txt 0000664 0000000 0000000 00000000131 14555431165 0027367 0 ustar 00root root 0000000 0000000 file(GLOB QML_FILES *.qml)
install(FILES ${QML_FILES} DESTINATION ${PLUGIN_DIR}/Example)
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/Example/ExampleDelegate.qml 0000664 0000000 0000000 00000001342 14555431165 0030375 0 ustar 00root root 0000000 0000000 /*
* Copyright 2013 Canonical Ltd.
*
* This file is part of ubuntu-ui-extras
*
* ubuntu-ui-extras 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; version 3.
*
* ubuntu-ui-extras 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 .
*/
import QtQuick 2.3
import Lomiri.Components 1.1
Label {
}
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/Example/Printers.qml 0000664 0000000 0000000 00000070606 14555431165 0027166 0 ustar 00root root 0000000 0000000 /*
* Copyright 2017 Canonical Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; version 3.
*
* 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see .
*
* Authored by Jonas G. Drange
*/
import QtQuick 2.4
import QtQuick.Layouts 1.1
import Lomiri.Components 1.3
import Lomiri.Components.Popups 1.3
import Lomiri.Components.ListItems 1.3 as ListItems
import Lomiri.Components.Extras.Printers 0.1
MainView {
width: units.gu(50)
height: units.gu(90)
Component {
id: printerPage
Page {
visible: false
property var printer
header: PageHeader {
id: printerPageHeader
title: printer.name
flickable: printerFlickable
}
Component {
id: printerPageNotYetLoaded
Item {
anchors.fill: parent
ActivityIndicator {
anchors.centerIn: parent
running: true
}
}
}
Flickable {
id: printerFlickable
anchors.fill: parent
contentHeight: contentItem.childrenRect.height
Loader {
id: printerPageBitsLoader
anchors {
left: parent.left
right: parent.right
}
sourceComponent: printer.isLoaded ? printerPageLoaded : printerPageNotYetLoaded
}
}
Component {
id: printerPageLoaded
Column {
height: childrenRect.height + anchors.topMargin
anchors {
top: parent.top
topMargin: units.gu(2)
left: parent.left
right: parent.right
}
ListItems.Standard {
anchors {
left: parent.left
right: parent.right
}
text: "Enabled"
control: Switch {
checked: printer.printerEnabled
onCheckedChanged: printer.printerEnabled = checked
}
}
ListItems.SingleValue {
anchors {
left: parent.left
right: parent.right
}
text: "Status"
value: {
var state;
if (printer.state == PrinterEnum.IdleState) {
state = i18n.tr("Idle");
} else if (printer.state == PrinterEnum.AbortedState) {
state = i18n.tr("Aborted");
} else if (printer.state == PrinterEnum.ActiveState) {
state = i18n.tr("Active");
} else if (printer.state == PrinterEnum.ErrorState) {
state = i18n.tr("Stopped");
}
return "%1 — %2"
.arg(state)
.arg(printer.lastMessage ?
printer.lastMessage : i18n.tr("No messages"));
}
}
ListItems.Standard {
anchors {
left: parent.left
right: parent.right
}
text: "Accepting jobs"
control: Switch {
checked: printer.acceptJobs
onCheckedChanged: printer.acceptJobs = checked
}
}
ListItems.Standard {
anchors {
left: parent.left
right: parent.right
}
text: "Shared"
control: Switch {
checked: printer.shared
onCheckedChanged: printer.shared = checked
}
}
ListItems.Standard {
anchors {
left: parent.left
right: parent.right
}
text: "Jobs"
progression: true
onClicked: pageStack.push(jobPage, { printer: printer })
}
ListItems.Standard {
anchors {
left: parent.left
right: parent.right
}
text: "Description"
control: TextField {
anchors {
margins: units.gu(1)
left: parent.left
right: parent.right
}
text: printer.description
onTextChanged: printer.description = text
}
}
ListItems.Standard {
anchors {
left: parent.left
right: parent.right
}
text: "Copies"
control: TextField {
id: copiesField
inputMethodHints: Qt.ImhDigitsOnly
text: printer.copies
validator: IntValidator {
bottom: 1
top: 999
}
width: units.gu(10)
onTextChanged: printer.copies = text
}
}
ListItems.ValueSelector {
anchors {
left: parent.left
right: parent.right
}
enabled: values.length > 1
text: "Duplex"
values: printer.supportedDuplexModes
onSelectedIndexChanged: printer.duplexMode = selectedIndex
Component.onCompleted: {
if (enabled) {
selectedIndex = printer.duplexMode
}
}
}
ListItems.ValueSelector {
anchors {
left: parent.left
right: parent.right
}
text: "Page size"
values: printer.supportedPageSizes
onSelectedIndexChanged: printer.pageSize = selectedIndex
Component.onCompleted: selectedIndex = printer.supportedPageSizes.indexOf(printer.pageSize)
}
ListItems.ValueSelector {
anchors {
left: parent.left
right: parent.right
}
visible: printer.supportedColorModels.length
text: "Color model"
values: printer.supportedColorModels
enabled: values.length > 1
onSelectedIndexChanged: printer.colorModel = selectedIndex
Component.onCompleted: {
if (enabled)
selectedIndex = printer.colorModel
}
}
ListItems.ValueSelector {
anchors {
left: parent.left
right: parent.right
}
visible: printer.supportedPrintQualities.length
text: "Quality"
values: printer.supportedPrintQualities
enabled: values.length > 1
onSelectedIndexChanged: printer.printQuality = selectedIndex
Component.onCompleted: {
if (enabled)
selectedIndex = printer.printQuality
}
}
ListItems.SingleControl {
anchors {
left: parent.left
right: parent.right
}
control: Button {
text: "Print test page"
onClicked: Printers.printTestPage(printer.name)
}
}
ListItems.SingleValue {
anchors {
left: parent.left
right: parent.right
}
text: "Device URI"
value: printer.deviceUri
}
}
}
}
}
Component {
id: jobDelegate
ListItem {
height: modelLayout.height + (divider.visible ? divider.height : 0)
trailingActions: ListItemActions {
actions: [
Action {
iconName: model.held ? "media-playback-start" : "media-playback-pause"
text: model.held ? "Release" : "Hold"
onTriggered: {
if (model.held) {
Printers.releaseJob(model.printerName, model.id);
} else {
Printers.holdJob(model.printerName, model.id);
}
}
},
Action {
iconName: "cancel"
text: "Cancel"
onTriggered: Printers.cancelJob(model.printerName, model.id);
}
]
}
ListItemLayout {
id: modelLayout
title.text: displayName
subtitle.text: "Printing " + model.impressionsCompleted + " pages" + "\n" + model.printerName
subtitle.wrapMode: Text.WrapAtWordBoundaryOrAnywhere
subtitle.maximumLineCount: 3
}
}
}
Component {
id: jobPage
Page {
property var printer
header: PageHeader {
id: jobPageHeader
title: "%1 (%2 jobs)".arg(printer.name).arg(jobList.count)
flickable: jobList
}
ListView {
id: jobList
anchors.fill: parent
model: printer.jobs
delegate: jobDelegate
}
}
}
Component {
id: allJobsPage
Page {
header: PageHeader {
id: allJobsHeader
title: "Printer jobs"
flickable: jobsList
}
ListView {
id: jobsList
anchors.fill: parent
model: Printers.printJobs
delegate: jobDelegate
}
}
}
PageStack {
id: pageStack
Component.onCompleted: push(printersPage)
Page {
id: printersPage
header: PageHeader {
title: "Printers"
flickable: printerList
trailingActionBar {
actions: [
Action {
iconName: "add"
text: "Add printer"
onTriggered: pageStack.push(addPrinterPageComponent)
},
Action {
iconName: "document-print"
text: "Printer jobs"
onTriggered: pageStack.push(allJobsPage)
}
]
}
}
visible: false
ListView {
id: printerList
anchors { fill: parent }
model: Printers.allPrintersWithPdf
delegate: ListItem {
height: modelLayout.height + (divider.visible ? divider.height : 0)
trailingActions: ListItemActions {
actions: [
Action {
iconName: "delete"
onTriggered: {
if (!Printers.removePrinter(model.name)) {
console.error('failed to remove printer', Printers.lastMessage);
}
}
},
Action {
iconName: model.default ? "starred" : "non-starred"
enabled: !model.default
onTriggered: Printers.defaultPrinterName = model.name
}
]
}
ListItemLayout {
id: modelLayout
title.text: displayName
title.font.bold: model.default
Icon {
id: icon
width: height
height: units.gu(2.5)
name: "printer-symbolic"
SlotsLayout.position: SlotsLayout.First
}
ProgressionSlot {}
}
onClicked: {
Printers.loadPrinter(model.name);
pageStack.push(printerPage, { printer: model });
}
}
}
Label {
anchors.centerIn: parent
visible: printerList.count === 0
text: "No printers found"
}
}
}
Component {
id: addPrinterPageComponent
Page {
id: addPrinterPage
states: [
State {
name: "success"
PropertyChanges {
target: okAction
enabled: false
}
PropertyChanges {
target: closeAction
enabled: false
}
PropertyChanges {
target: addPrinterCol
enabled: false
}
StateChangeScript {
script: okTimer.start()
}
},
State {
name: "failure"
PropertyChanges {
target: errorMessageContainer
visible: true
}
}
]
header: PageHeader {
title: "Add printer"
flickable: addPrinterFlickable
leadingActionBar.actions: [
Action {
id: closeAction
iconName: "close"
text: "Abort"
onTriggered: pageStack.pop()
}
]
trailingActionBar {
actions: [
Action {
id: okAction
iconName: "ok"
text: "Complete"
onTriggered: {
var ret;
if (driverSelector.selectedIndex == 0) {
ret = Printers.addPrinter(
printerName.text,
driversView.selectedDriver,
printerUri.text,
printerDescription.text,
printerLocation.text
);
} else {
ret = Printers.addPrinterWithPpdFile(
printerName.text,
printerPpd.text,
printerUri.text,
printerDescription.text,
printerLocation.text
);
}
if (ret) {
addPrinterPage.state = "success"
} else {
errorMessage.text = Printers.lastMessage;
addPrinterPage.state = "failure"
}
}
}
]
}
}
Component.onCompleted: Printers.prepareToAddPrinter()
Timer {
id: okTimer
interval: 2000
onTriggered: pageStack.pop();
}
Flickable {
id: addPrinterFlickable
anchors.fill: parent
contentHeight: contentItem.childrenRect.height
Column {
id: addPrinterCol
property bool enabled: true
anchors { left: parent.left; right: parent.right }
Item {
id: errorMessageContainer
visible: false
anchors {
left: parent.left
right: parent.right
margins: units.gu(2)
}
height: units.gu(6)
Label {
id: errorMessage
anchors {
top: parent.top
topMargin: units.gu(2)
horizontalCenter: parent.horizontalCenter
}
}
}
ListItems.Standard {
text: "Device URI"
control: TextField {
id: printerUri
placeholderText: "ipp://server.local/my-queue"
}
enabled: parent.enabled
}
ListItems.ValueSelector {
id: driverSelector
anchors { left: parent.left; right: parent.right }
text: "Choose driver"
values: [
"Select printer from database",
"Provide PPD file"
]
enabled: parent.enabled
}
ListItems.Standard {
anchors { left: parent.left; right: parent.right }
text: "Filter drivers"
control: TextField {
id: driverFilter
onTextChanged: Printers.driverFilter = text
}
visible: driverSelector.selectedIndex == 0
enabled: parent.enabled
}
ListView {
id: driversView
property string selectedDriver
property bool loading: true
visible: driverSelector.selectedIndex == 0
model: Printers.drivers
anchors { left: parent.left; right: parent.right }
height: units.gu(30)
clip: true
enabled: parent.enabled
highlightFollowsCurrentItem: false
highlight: Rectangle {
z: 0
y: driversView.currentItem.y
width: driversView.currentItem.width
height: driversView.currentItem.height
color: theme.palette.selected.background
}
delegate: ListItem {
height: driverLayout.height + (divider.visible ? divider.height : 0)
ListItemLayout {
id: driverLayout
title.text: displayName
subtitle.text: name
summary.text: deviceId
}
onClicked: {
driversView.selectedDriver = name
driversView.currentIndex = index
}
}
ActivityIndicator {
anchors.centerIn: parent
running: parent.loading
}
Connections {
target: driversView
onCountChanged: {
target = null;
driversView.loading = false;
}
}
}
ListItems.Standard {
text: "PPD File"
visible: driverSelector.selectedIndex == 1
control: TextField {
id: printerPpd
placeholderText: "/usr/share/cups/foo.ppd"
}
enabled: parent.enabled
}
ListItems.Standard {
anchors { left: parent.left; right: parent.right }
text: "Printer name"
control: TextField {
id: printerName
placeholderText: "laserjet"
}
enabled: parent.enabled
}
ListItems.Standard {
anchors { left: parent.left; right: parent.right }
text: "Description (optional)"
control: TextField {
id: printerDescription
placeholderText: "HP Laserjet with Duplexer"
}
enabled: parent.enabled
}
ListItems.Standard {
anchors { left: parent.left; right: parent.right }
text: "Location (optional)"
control: TextField {
id: printerLocation
placeholderText: "Lab 1"
}
enabled: parent.enabled
}
}
Label {
id: remotePrintersLabel
anchors {
left: parent.left
right: parent.right
margins: units.gu(2)
top: addPrinterCol.bottom
}
text: "Other printers"
ActivityIndicator {
id: remotePrintersSearchIndicator
anchors {
right: parent.right
verticalCenter: parent.verticalCenter
}
property var target
Component.onCompleted: target = Printers.devices
running: target.searching
}
}
ListView {
id: remotePrintersList
anchors {
left: parent.left
right: parent.right
top: remotePrintersLabel.bottom
topMargin: units.gu(2)
}
height: contentItem.childrenRect.height
model: Printers.devices
delegate: ListItem {
height: modelLayout.height + (divider.visible ? divider.height : 0)
ListItemLayout {
id: modelLayout
title.text: displayName
subtitle.text: {
if (type == PrinterEnum.LPDType) return "LPD";
if (type == PrinterEnum.IppSType) return "IppS";
if (type == PrinterEnum.Ipp14Type) return "Ipp14";
if (type == PrinterEnum.HttpType) return "Http";
if (type == PrinterEnum.BehType) return "Beh";
if (type == PrinterEnum.SocketType) return "Socket";
if (type == PrinterEnum.HttpsType) return "Https";
if (type == PrinterEnum.IppType) return "Ipp";
if (type == PrinterEnum.HPType) return "HP";
if (type == PrinterEnum.USBType) return "USB";
if (type == PrinterEnum.HPFaxType) return "HPFax";
if (type == PrinterEnum.DNSSDType) return "DNSSD";
else return "Unknown protocol";
}
Icon {
id: icon
width: height
height: units.gu(2.5)
name: "network-printer-symbolic"
SlotsLayout.position: SlotsLayout.First
}
Button {
text: "Select printer"
onClicked: {
var suggestedPrinterName = (" " + displayName).slice(1);
suggestedPrinterName = suggestedPrinterName.replace(/\ /g, "\-");
printerUri.text = uri;
printerName.text = suggestedPrinterName;
printerDescription.text = info;
printerLocation.text = location;
}
}
}
}
}
Label {
anchors {
left: parent.left
right: parent.right
top: remotePrintersLabel.bottom
topMargin: units.gu(2)
}
text: "No other printers found"
visible: !remotePrintersSearchIndicator.running && remotePrintersList.count == 0
}
}
}
}
}
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PamAuthentication/ 0000775 0000000 0000000 00000000000 14555431165 0026656 5 ustar 00root root 0000000 0000000 lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PamAuthentication/CMakeLists.txt 0000664 0000000 0000000 00000003043 14555431165 0031416 0 ustar 00root root 0000000 0000000 include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
)
set(QT_IMPORTS_DIR "${CMAKE_INSTALL_LIBDIR}/qt5/qml")
set(BARE_PLUGIN_DIR Lomiri/Components/Extras/PamAuthentication)
set(PLUGIN_DIR ${QT_IMPORTS_DIR}/${BARE_PLUGIN_DIR})
set(pamauthentication_SRCS
pamauthentication.cpp
pamauthentication.h
pamauthentication_plugin.cpp
pamauthentication_plugin.h
)
add_library(PamAuthentication MODULE
${pamauthentication_SRCS}
)
target_link_libraries(PamAuthentication
pam
Qt5::Gui
Qt5::Qml
Qt5::Quick
Qt5::Widgets
Qt5::DBus
)
# Copy the plugin, the qmldir file and other assets to the build dir for running in QtCreator
if(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
add_custom_command(TARGET PamAuthentication POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/../${BARE_PLUGIN_DIR}
COMMENT "Creating plugin directory layout in the build directory"
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/qmldir ${CMAKE_CURRENT_BINARY_DIR}/../${BARE_PLUGIN_DIR}
COMMENT "Copying the qmldir file to the build directory"
COMMAND ${CMAKE_COMMAND} -E copy $ ${CMAKE_CURRENT_BINARY_DIR}/../${BARE_PLUGIN_DIR}
COMMENT "Copying the plugin binary to the build directory"
)
endif(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
# Install plugin file
install(TARGETS PamAuthentication DESTINATION ${PLUGIN_DIR})
install(FILES qmldir DESTINATION ${PLUGIN_DIR})
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PamAuthentication/pamauthentication.cpp 0000664 0000000 0000000 00000012301 14555431165 0033074 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2014 Canonical Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* 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 .
*
* Author : Arto Jalkanen
*/
#include "pamauthentication.h"
#include
#include
#include
#define UNITYGREETER_SERVICE "com.lomiri.LomiriGreeter"
#define UNITYGREETER_PATH "/com/lomiri/LomiriGreeter/list"
#define UNITYGREETER_INTERFACE "com.lomiri.LomiriGreeter.List"
#define UNITYGREETER_PROPERTY_ENTRY_IS_LOCKED "EntryIsLocked"
PamAuthentication::PamAuthentication(QObject *parent) :
QObject(parent)
{
m_userLogin = qgetenv("USER");
}
PamAuthentication::~PamAuthentication()
{
}
void PamAuthentication::setServiceName(const QString &serviceName)
{
if (serviceName != m_serviceName) {
m_serviceName = serviceName;
Q_EMIT serviceNameChanged();
}
}
bool PamAuthentication::requireAuthentication()
{
QDBusInterface dbus_iface(UNITYGREETER_SERVICE, UNITYGREETER_PATH, UNITYGREETER_INTERFACE);
qDebug() << Q_FUNC_INFO << "Querying if authentication required";
if (!dbus_iface.isValid()) {
qDebug() << Q_FUNC_INFO << "Not a valid dbus interface";
qDebug() << Q_FUNC_INFO << "Last error: " + dbus_iface.lastError().message();
// By default be cautious and require authentication
return true;
}
QVariant isLockedVariant = dbus_iface.property(UNITYGREETER_PROPERTY_ENTRY_IS_LOCKED);
if (isLockedVariant.isValid()) {
bool replyValue = isLockedVariant.toBool();
qDebug() << Q_FUNC_INFO << "Return value" << replyValue;
return replyValue;
} else {
qDebug() << Q_FUNC_INFO << "Failed getting value for EntryIsLocked property";
}
// By default be cautious and require authentication
return true;
}
bool PamAuthentication::validatePasswordToken(const QString &token)
{
pam_handle *pamHandle = 0;
if (!initPam(&pamHandle)) {
qDebug() << Q_FUNC_INFO << "Pam init failed";
return false;
}
m_passwordToken = token;
int status = pam_authenticate(pamHandle, 0);
qDebug() << Q_FUNC_INFO << "Pam authenticate status" << status << pam_strerror(pamHandle, status);
if (status == PAM_SUCCESS) {
status = validateAccount(pamHandle);
}
pam_end(pamHandle, status);
m_passwordToken.clear();
return status == PAM_SUCCESS;
}
int PamAuthentication::validateAccount(pam_handle *pamHandle)
{
// This makes sure account and password are still valid
int status = pam_acct_mgmt(pamHandle, 0);
qDebug() << Q_FUNC_INFO << "pam_acct_mgmt: " << status << pam_strerror(pamHandle, status);
// Placeholders for some common errors
// IMPROVE: it'd be good to let user know reason for failure
switch (status) {
case PAM_SUCCESS:
break;
case PAM_USER_UNKNOWN:
break;
case PAM_ACCT_EXPIRED:
break;
case PAM_NEW_AUTHTOK_REQD:
break;
}
return status;
}
bool PamAuthentication::initPam(pam_handle **pamHandle)
{
pam_conv conversation;
conversation.conv = ConversationFunction;
conversation.appdata_ptr = static_cast(this);
return pam_start(m_serviceName.toLocal8Bit().data(), m_userLogin.toLocal8Bit().data(),
&conversation, pamHandle) == PAM_SUCCESS;
}
int PamAuthentication::ConversationFunction(int num_msg, const pam_message **msg,
pam_response **resp, void *appdata_ptr)
{
if (num_msg <= 0) {
return PAM_CONV_ERR;
}
*resp = static_cast(calloc(num_msg, sizeof(pam_response)));
PamAuthentication *self = static_cast(appdata_ptr);
for (int count = 0; count < num_msg; ++count) {
switch (msg[count]->msg_style) {
case PAM_PROMPT_ECHO_ON: {
qDebug() << Q_FUNC_INFO << "PAM_PROMPT_ECHO_ON received";
resp[count]->resp = strdup(self->m_passwordToken.toLocal8Bit().data());
resp[count]->resp_retcode = 0;
break;
}
case PAM_PROMPT_ECHO_OFF: {
qDebug() << Q_FUNC_INFO << "PAM_PROMPT_ECHO_OFF received";
resp[count]->resp = strdup(self->m_passwordToken.toLocal8Bit().data());
resp[count]->resp_retcode = 0;
break;
}
case PAM_TEXT_INFO: {
QString message(msg[count]->msg);
qDebug() << Q_FUNC_INFO << "PAM_TEXT_INFO received" << message;
break;
}
case PAM_AUTHTOK: {
qDebug() << Q_FUNC_INFO << "PAM_AUTHTOK received";
break;
}
default: {
qDebug() << Q_FUNC_INFO << "Other PAM msg received: " << msg[count]->msg_style;
}
}
}
return PAM_SUCCESS;
}
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PamAuthentication/pamauthentication.h 0000664 0000000 0000000 00000010501 14555431165 0032541 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2014 Canonical Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* 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 .
*
* Author : Arto Jalkanen
*/
#ifndef PAMAUTHENTICATION_H
#define PAMAUTHENTICATION_H
#include
#include
#include
#include
// Forward declarations
struct pam_handle;
struct pam_message;
struct pam_response;
/**
* QML plugin to query if authentication is required and do authentication.
*
* At the moment the plugin is expected to be used as follows:
*
* - Ask if authentication is required (requireAuthentication() function). This will
* return true if Ubuntu Touch user has selected some unlocking security (PIN code or password).
* - If so, the application should provide a dialog to ask for the PIN code/password and
* call validatePasswordToken(provided password) function.
* - If validatePasswordToken() function returns true for given token, then user was authenticated,
* otherwise failed to authenticate.
*
* Caveats:
*
* - If user failed to authenticate, it doesn't necessarily mean password was invalid. Failure
* can also be because of account being locked or password being expired or because of some other
* reason in the underlying pam library. The exact reason is not currently available to QML, as practically
* for normal users the only reason is password mismatch. If the user has done advanced modifications
* the exact reason for failure can be seen in application's logs.
* - Currently the application using this module will have to provide the dialogs asking for
* for PIN/password and an error dialog. This will most likely change in future, but there's no
* concrete plans yet. Discussion at https://code.launchpad.net/~ubuntu-filemanager-dev/ubuntu-filemanager-app/require-screenlock-password/+merge/230058
* can be seen for some background information.
*
* Simplified skeleton QML code example that asks for authentication if required at start-up of application (specific dialogs omitted):
*
* import Lomiri.Components.Extras.PamAuthentication 0.1
*
* MainView {
* PamAuthentication {
* id: pamAuthentication
* serviceName: "applicationName"
* }
*
* Component.onCompleted: {
* if (pamAuthentication.requireAuthentication()) {
* var passwordToken = queryPasswordInputDialog()
* if (!pamAuthentication.validatePasswordToken(passwordToken) {
* // Successs...
* } else {
* showAuthenticationFailedDialog()
* }
* }
* }
* }
*
*/
class PamAuthentication : public QObject
{
Q_OBJECT
public:
explicit PamAuthentication(QObject *parent = 0);
~PamAuthentication();
/**
* \brief returns true if current user has password or PIN code set for unlocking lockscreen
*/
Q_INVOKABLE bool requireAuthentication();
/**
* \brief returns true if current user can be authenticated with given password token (be it PIN code or password)
*/
Q_INVOKABLE bool validatePasswordToken(const QString &token);
/**
* \brief Should be set to the application's name in lowercase. For example, for FileManager it would be "filemanager".
*/
Q_PROPERTY(QString serviceName READ serviceName WRITE setServiceName NOTIFY serviceNameChanged)
inline const QString &serviceName() const
{
return m_serviceName;
}
void setServiceName(const QString &serviceName);
Q_SIGNALS:
void serviceNameChanged();
public Q_SLOTS:
private:
static int ConversationFunction(int num_msg, const pam_message **msg,
pam_response **resp, void *appdata_ptr);
bool initPam(pam_handle **pamHandle);
int validateAccount(pam_handle *pamHandle);
QString m_passwordToken;
QString m_serviceName;
QString m_userLogin;
};
#endif // PAMAUTHENTICATION_H
pamauthentication_plugin.cpp 0000664 0000000 0000000 00000002163 14555431165 0034400 0 ustar 00root root 0000000 0000000 lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PamAuthentication /*
* Copyright (C) 2014 Canonical Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* 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 .
*
* Author : Arto Jalkanen
*/
#include
#include
#include "pamauthentication_plugin.h"
#include "pamauthentication.h"
void BackendPlugin::registerTypes(const char *uri)
{
Q_ASSERT(uri == QLatin1String("Lomiri.Components.Extras.PamAuthentication"));
qmlRegisterType(uri, 0, 1, "PamAuthentication");
}
void BackendPlugin::initializeEngine(QQmlEngine *engine, const char *uri)
{
QQmlExtensionPlugin::initializeEngine(engine, uri);
}
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PamAuthentication/pamauthentication_plugin.h0000664 0000000 0000000 00000002124 14555431165 0034121 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2014 Canonical Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* 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 .
*
* Author : Arto Jalkanen
*/
#ifndef PAMAUTHENTICATION_PLUGIN_H
#define PAMAUTHENTICATION_PLUGIN_H
#include
#include
class BackendPlugin : public QQmlExtensionPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
void registerTypes(const char *uri);
void initializeEngine(QQmlEngine *engine, const char *uri);
};
#endif // PAMAUTHENTICATION_PLUGIN_H
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PamAuthentication/qmldir 0000664 0000000 0000000 00000000113 14555431165 0030064 0 ustar 00root root 0000000 0000000 module Lomiri.Components.Extras.PamAuthentication
plugin PamAuthentication
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PhotoEditor.qml 0000664 0000000 0000000 00000016461 14555431165 0026224 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2014 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* 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 .
*/
import QtQuick 2.9
import Lomiri.Components 1.3
import Lomiri.Components.Popups 1.3
import Lomiri.Components.Extras 0.2
import "PhotoEditor"
Item {
id: editor
property string photo
property bool modified: stack.modified
signal closed(bool photoWasModified)
property list actions
actions: [stack.undoAction, stack.redoAction]
EditStack {
id: stack
data: photoData
actionsEnabled: !exposureSelector.visible && !cropper.visible && !photoData.busy
onRevertRequested: PopupUtils.open(revertPromptComponent)
}
property list toolActions: [
Action {
objectName: "cropButton"
text: i18n.dtr("lomiri-ui-extras", "Crop")
iconSource: Qt.resolvedUrl("PhotoEditor/assets/edit_crop.png")
onTriggered: {
photoData.isLongOperation = false;
cropper.start("image://photo/" + photoData.path);
}
},
Action {
objectName: "rotateButton"
text: i18n.dtr("lomiri-ui-extras", "Rotate")
iconSource: Qt.resolvedUrl("PhotoEditor/assets/edit_rotate_right.png")
onTriggered: {
photoData.isLongOperation = false;
photoData.rotateRight()
}
},
Action {
objectName: "exposureButton"
text: i18n.tr("Exposure")
iconSource: Qt.resolvedUrl("PhotoEditor/assets/edit_exposure.png")
onTriggered: {
photoData.isLongOperation = false;
exposureSelector.start("image://photo/" + photoData.path);
}
}
]
function close(saveIfModified) {
stack.endEditingSession(saveIfModified);
editor.closed(editor.modified);
}
function open(photo) {
editor.photo = photo;
stack.startEditingSession(photo);
photoData.path = stack.currentFile;
image.source = "image://photo/" + photoData.path;
}
Rectangle {
color: "black"
anchors.fill: parent
}
Image {
id: image
anchors.fill: parent
asynchronous: true
cache: false
source: photoData.path ? "image://photo/" + photoData.path : ""
fillMode: Image.PreserveAspectFit
sourceSize {
width: image.width
height: image.height
}
function reload() {
image.asynchronous = false;
image.source = "";
image.asynchronous = true;
image.source = "image://photo/" + photoData.path;
}
}
PhotoData {
id: photoData
onDataChanged: image.reload()
property bool isLongOperation: false
onEditFinished: {
console.log("Edit finished")
// If we are editing exposure we don't need to checkpoint at every
// edit, and the exposure UI will checkpoint when the user confirms.
if (exposureSelector.opacity > 0) exposureSelector.reload()
else stack.checkpoint()
}
}
Loader {
id: cropper
anchors.fill: parent
opacity: 0.0
visible: opacity > 0
Behavior on opacity { LomiriNumberAnimation { } }
Connections {
target: cropper.item
ignoreUnknownSignals: true
onCropped: {
var qtRect = Qt.rect(rect.x, rect.y, rect.width, rect.height);
photoData.crop(qtRect);
cropper.opacity = 0.0;
cropper.source = ""
}
onCanceled: {
cropper.opacity = 0.0;
cropper.source = ""
}
}
function start(target) {
source = "PhotoEditor/CropInteractor.qml";
item.targetPhoto = target;
}
onLoaded: opacity = 1.0
}
ExposureAdjuster {
id: exposureSelector
anchors.fill: parent
opacity: 0.0
enabled: !photoData.busy
onExposureChanged: {
// Restore the starting version of the image, otherwise we will
// accumulate compensations over the previous ones.
stack.restoreSnapshot(stack.level)
photoData.exposureCompensation(exposure)
}
onConfirm: {
stack.checkpoint();
exposureSelector.opacity = 0.0
}
onCancel: {
stack.restoreSnapshot(stack.level)
exposureSelector.opacity = 0.0
}
visible: opacity > 0
}
ActionsBar {
id: actionsBar
objectName: "editorActionsBar"
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.right: parent.right
visible: opacity > 0.0
opacity: (exposureSelector.opacity == 0 && cropper.opacity == 0) ? 1.0 : 0.0
enabled: !photoData.busy
toolActions: {
// This is necessary because QML does not let us declare a list with
// mixed component declarations and identifiers, like this:
// property list foo: { Action{}, someOtherAction }
var list = [];
for (var i = 0; i < editor.toolActions.length; i++)
list.push(editor.toolActions[i]);
list.push(stack.revertAction);
return list;
}
Behavior on opacity { LomiriNumberAnimation {} }
}
Component {
id: revertPromptComponent
Dialog {
id: revertPrompt
objectName: "revertPromptDialog"
title: i18n.dtr("lomiri-ui-extras", "Revert to original")
text: i18n.dtr("lomiri-ui-extras", "This will undo all edits, including those from previous sessions.")
Row {
id: row
width: parent.width
spacing: units.gu(1)
Button {
objectName: "cancelRevertButton"
width: parent.width/2
text: i18n.dtr("lomiri-ui-extras", "Cancel")
onClicked: PopupUtils.close(revertPrompt)
}
Button {
objectName: "confirmRevertButton"
width: parent.width/2
text: i18n.dtr("lomiri-ui-extras", "Revert Photo")
color: theme.palette.normal.negative
onClicked: {
PopupUtils.close(revertPrompt)
stack.revertToPristine()
}
}
}
}
}
BusyIndicator {
id: busyIndicator
anchors.centerIn: parent
text: i18n.dtr("lomiri-ui-extras", "Enhancing photo...")
running: photoData.busy
longOperation: photoData.isLongOperation
}
}
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PhotoEditor/ 0000775 0000000 0000000 00000000000 14555431165 0025501 5 ustar 00root root 0000000 0000000 lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PhotoEditor/ActionsBar.qml 0000664 0000000 0000000 00000004762 14555431165 0030252 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2014 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* 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 .
*/
import QtQuick 2.9
import Lomiri.Components 1.3
import Lomiri.Components.ListItems 1.3 as ListItem
Column {
id: bar
property list toolActions
property list filterActions
property bool enabled
height: (filtersBar.visible) ? units.gu(20) : units.gu(6)
Item {
anchors.left: parent.left
anchors.right: parent.right
height: units.gu(6)
Rectangle {
anchors.fill: parent
color: "black"
opacity: 0.6
}
ListView {
id: toolsBar
anchors.fill: parent
orientation: ListView.Horizontal
model: toolActions
delegate: AbstractButton {
width: units.gu(8)
anchors.top: parent.top
anchors.bottom: parent.bottom
action: modelData
enabled: bar.enabled
Icon {
anchors.centerIn: parent
name: modelData.iconName
source: modelData.iconSource
width: units.gu(3)
height: units.gu(3)
opacity: modelData.enabled && parent.enabled ? 1.0 : 0.5
}
}
}
}
Rectangle {
anchors.left: parent.left
anchors.right: parent.right
height: units.gu(14)
color: "black"
ListView {
id: filtersBar
objectName: "filtersBar"
visible: filterActions.length > 0
orientation: ListView.Horizontal
model: filterActions
delegate: ListItem.Standard {
width: parent.height
anchors.top: parent.top
anchors.bottom: parent.bottom
action: modelData
iconFrame: false
enabled: bar.enabled
}
}
}
}
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PhotoEditor/BusyIndicator.qml 0000664 0000000 0000000 00000003156 14555431165 0031000 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2015 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* 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 .
*/
import QtQuick 2.9
import Lomiri.Components 1.3
Item {
id: busy
property alias text: label.text
property alias running: spinner.running
property bool longOperation: false
visible: running
LomiriShape {
id: busyLomiriShape
objectName: "busyLomiriShape"
backgroundColor: theme.palette.normal.background
anchors.centerIn: parent
width: parent.width + units.gu(4)
height: parent.height + units.gu(4)
opacity: longOperation ? 0.75 : 0
}
Column {
id: busyColumn
objectName: "busyColumn"
anchors.centerIn: parent
spacing: units.gu(2)
ActivityIndicator {
id: spinner
anchors.horizontalCenter: parent.horizontalCenter
}
Label {
id: label
objectName: "busyLabel"
anchors.horizontalCenter: parent.horizontalCenter
horizontalAlignment: Text.AlignHCenter
visible: longOperation
}
}
}
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PhotoEditor/CMakeLists.txt 0000664 0000000 0000000 00000000242 14555431165 0030237 0 ustar 00root root 0000000 0000000 file(GLOB QML_FILES *.qml *.js)
install(FILES ${QML_FILES} DESTINATION ${PLUGIN_DIR}/PhotoEditor)
install(DIRECTORY assets DESTINATION ${PLUGIN_DIR}/PhotoEditor)
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PhotoEditor/CropCorner.qml 0000664 0000000 0000000 00000003071 14555431165 0030271 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2012 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* 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 .
*
* Authors:
* Charles Lindsay
*/
import QtQuick 2.9
import Lomiri.Components 1.3
// A corner of a CropFrame.
Item {
id: cropCorner
/*!
*/
signal dragged(real dx, real dy)
/*!
*/
signal dragStarted()
/*!
*/
signal dragCompleted()
/*!
*/
property bool isLeft: true
/*!
*/
property bool isTop: true
x: isLeft ? -(width/2) : parent.width - (width/2)
y: isTop ? -(width/2) : parent.height - (width/2)
width: handle.width
height: handle.height
Image {
id: handle
anchors.centerIn: parent
source: Qt.resolvedUrl("assets/crop-handle.png")
}
CropDragArea {
anchors.centerIn: parent
width: handle.width + units.gu(2)
height: handle.height + units.gu(2)
onDragged: cropCorner.dragged(dx, dy)
onDragStarted: cropCorner.dragStarted()
onDragCompleted: cropCorner.dragCompleted()
}
}
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PhotoEditor/CropDragArea.qml 0000664 0000000 0000000 00000002560 14555431165 0030511 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2012 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* 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 .
*
* Authors:
* Charles Lindsay
*/
import QtQuick 2.9
// A MouseArea meant to drag a corner/edge of a crop area.
MouseArea {
id: cropDragArea
/*!
*/
signal dragged(real dx, real dy)
/*!
*/
signal dragStarted()
/*!
*/
signal dragCompleted()
// Since we're usually moving this area with the mouse in response to
// dragging, we don't need to capture the last x/y, just where it was
// grabbed.
property real grabX: -1
/*!
*/
property real grabY: -1
onPressed: {
dragStarted();
grabX = mouse.x;
grabY = mouse.y;
}
onReleased: {
dragCompleted();
}
onPositionChanged: cropDragArea.dragged(mouse.x - grabX, mouse.y - grabY)
}
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PhotoEditor/CropInteractor.qml 0000664 0000000 0000000 00000007663 14555431165 0031166 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2012 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* 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 .
*
* Authors:
* Charles Lindsay
* Lucas Beeler
*/
import QtQuick 2.9
import Lomiri.Components 1.3
import "GraphicsRoutines.js" as GraphicsRoutines
/*!
*/
Rectangle {
id: cropInteractor
objectName: "cropInteractor"
color: "black"
property alias targetPhoto: original.source
property string matteColor: "black"
property real matteOpacity: 0.6
// Note: each element of the cropped rect will be in the range [0,1], since
// in the UI we aren't using direct photo pixel values.
signal cropped(variant rect)
signal canceled()
function computeRectSet() {
var actualImage = Qt.rect(
(original.width - original.paintedWidth) / 2.0,
(original.height - original.paintedHeight) / 2.0,
original.paintedWidth,
original.paintedHeight
);
var photoPreview = GraphicsRoutines.fitRect(viewport, actualImage);
var unfitCrop = Qt.rect(0, 0, photoPreview.width, photoPreview.height);
var cropFrame = GraphicsRoutines.fitRect(viewport, unfitCrop);
var photoExtent = Qt.rect(cropFrame.x, cropFrame.y,
cropFrame.scaleFactor * photoPreview.width,
cropFrame.scaleFactor * photoPreview.height);
return {
photoPreview: photoPreview,
cropFrame: cropFrame,
photoExtent: photoExtent,
photoExtentScale: cropFrame.scaleFactor
};
}
Item {
id: viewport
anchors.fill: parent
anchors.margins: units.gu(6)
z: 1
}
CropOverlay {
id: overlay
objectName: "cropOverlay"
property real minSize: units.gu(4)
anchors.fill: parent;
visible: false;
photo: original
viewport: viewport
matteColor: cropInteractor.matteColor
matteOpacity: cropInteractor.matteOpacity
z: 16
onMatteRegionPressed: {
cropInteractor.canceled();
}
onCropButtonPressed: {
original.visible = false;
overlay.visible = false;
original.scale = 1.0;
var r = overlay.getRelativeFrameRect()
cropInteractor.cropped(overlay.getRelativeFrameRect());
}
}
Image {
id: original
x: viewport.x
y: viewport.y
width: viewport.width
height: viewport.height
transformOrigin: Item.TopLeft
fillMode: Image.PreserveAspectFit
cache: false
sourceSize {
width: original.width
height: original.height
}
onStatusChanged: {
if (status == Image.Ready) {
var rects = computeRectSet();
overlay.initialFrameX = rects.cropFrame.x;
overlay.initialFrameY = rects.cropFrame.y;
overlay.initialFrameWidth = rects.cropFrame.width;
overlay.initialFrameHeight = rects.cropFrame.height;
overlay.resetFor(rects);
overlay.visible = true;
x = rects.photoExtent.x;
y = rects.photoExtent.y;
width = rects.photoPreview.width;
height = rects.photoPreview.height;
scale = rects.photoExtentScale;
}
}
}
}
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PhotoEditor/CropOverlay.qml 0000664 0000000 0000000 00000042310 14555431165 0030461 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2012 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* 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 .
*
* Authors:
* Charles Lindsay
* Lucas Beeler
*/
import QtQuick 2.9
import Lomiri.Components 1.3
import "GraphicsRoutines.js" as GraphicsRoutines
/* A CropOverlay is a semi-transparent surface that floats over the photo. It
* serves two purposes. First, it provides visual cueing as to what region of
* the photo's surface will be preserved when the crop operation is applied.
* The preserved region is the region that falls inside of the CropOverlay's
* frame. Second, the CropOverlay allows the user to manipulate the
* geometry of the crop frame, to chage its location, width, and height. The
* geometry of the crop frame is reinforced by a key visual cue: the region of
* the photo outside of the crop frame is drawn with a semi-transparent, smoked
* matte on top of it. This matte surrounds the crop frame.
*/
Item {
id: cropOverlay
// public properties
/*!
*/
property Item viewport
/*!
*/
property Item photo
/*!
*/
property string matteColor: "red"
/*!
*/
property real matteOpacity: 0.85
/*!
*/
property int initialFrameX: -1
/*!
*/
property int initialFrameY: -1
/*!
*/
property int initialFrameWidth: -1
/*!
*/
property int initialFrameHeight: -1
// private properties -- Frame Fit Animation parameters
property real interpolationFactor: 1.0
/*!
*/
property variant startFrame
/*!
*/
property variant endFrame
/*!
*/
property variant startPhoto
/*!
*/
property real referencePhotoWidth: -1
/*!
*/
property real referencePhotoHeight: -1
/*!
*/
property real endPhotoX
/*!
*/
property real endPhotoY
/*!
*/
property real endPhotoWidth
/*!
*/
property real endPhotoHeight
/*!
*/
signal userAlteredFrame()
/*!
*/
signal runFrameFitAnimation()
/*!
*/
signal matteRegionPressed()
/*!
*/
signal cropButtonPressed()
/*!
*/
function resetFor(rectSet) {
if (initialFrameX != -1 && initialFrameY != -1 && initialFrameWidth != -1 &&
initialFrameHeight != -1) {
frame.x = rectSet.cropFrame.x;
frame.y = rectSet.cropFrame.y;
frame.width = rectSet.cropFrame.width;
frame.height = rectSet.cropFrame.height;
photoExtent.x = rectSet.photoExtent.x;
photoExtent.y = rectSet.photoExtent.y;
photoExtent.width = rectSet.photoExtent.width;
photoExtent.height = rectSet.photoExtent.height;
referencePhotoWidth = rectSet.photoPreview.width;
referencePhotoHeight = rectSet.photoPreview.height;
}
}
/* Return the (x, y) position and the width and height of the viewport
*/
function getViewportExtentRect() {
return GraphicsRoutines.cloneRect(viewport);
}
/* Return the (x, y) position and the width and height of the photoExtent.
* The photoExtent is the on-screen region that holds the original photo
* preview.
*/
function getPhotoExtentRect() {
return GraphicsRoutines.cloneRect(photoExtent);
}
/*!
*/
function getRelativeFrameRect() {
return GraphicsRoutines.getRelativeRect(frame.getExtentRect(),
getPhotoExtentRect());
}
anchors.fill: parent
Item {
id: photoExtent
property real panStartX
property real panStartY
function startPan() {
panStartX = x;
panStartY = y;
}
// 'deltaX' and 'deltaY' are offsets relative to the pan start point
function updatePan(deltaX, deltaY) {
var newX = panStartX + deltaX;
var newY = panStartY + deltaY;
x = GraphicsRoutines.clamp(newX, frame.x + frame.width -
photoExtent.width, frame.x);
y = GraphicsRoutines.clamp(newY, frame.y + frame.height -
photoExtent.height, frame.y);
}
function stopPan() {
}
x: initialFrameX
y: initialFrameY
width: initialFrameWidth
height: initialFrameHeight
z: 1
onXChanged: {
if (photo)
photo.x = x;
}
onYChanged: {
if (photo)
photo.y = y;
}
onWidthChanged: {
if (photo && referencePhotoWidth > 0)
photo.scale = width / referencePhotoWidth;
}
onHeightChanged: {
if (photo && referencePhotoHeight > 0)
photo.scale = height / referencePhotoHeight;
}
}
//
// The following four Rectangles are used to "matte out" the area of the photo
// preview that falls outside the frame. This "matting out" visual cue is
// accomplished by darkening the matted-out area with a translucent, smoked
// overlay.
//
Rectangle {
id: leftMatte
color: cropOverlay.matteColor
opacity: cropOverlay.matteOpacity
anchors.top: topMatte.bottom
anchors.bottom: frame.bottom
anchors.left: parent.left
anchors.right: frame.left
MouseArea {
anchors.fill: parent;
onPressed: cropOverlay.matteRegionPressed();
}
}
Rectangle {
id: topMatte
color: cropOverlay.matteColor
opacity: cropOverlay.matteOpacity
anchors.top: parent.top
anchors.bottom: frame.top
anchors.left: parent.left
anchors.right: parent.right
MouseArea {
anchors.fill: parent;
onPressed: cropOverlay.matteRegionPressed();
}
}
Rectangle {
id: rightMatte
color: cropOverlay.matteColor
opacity: cropOverlay.matteOpacity
anchors.top: topMatte.bottom
anchors.bottom: bottomMatte.top
anchors.left: frame.right
anchors.right: parent.right
MouseArea {
anchors.fill: parent;
onPressed: cropOverlay.matteRegionPressed();
}
}
Rectangle {
id: bottomMatte
color: cropOverlay.matteColor
opacity: cropOverlay.matteOpacity
anchors.top: frame.bottom
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.right: parent.right
MouseArea {
anchors.fill: parent;
onPressed: cropOverlay.matteRegionPressed();
}
}
//
// The frame is a grey rectangle with associated drag corners that
// frames the region of the photo that will remain when the crop operation is
// applied.
//
// NB: the frame can be in two states, although the QML state mechanism
// isn't sufficiently expressive to describe them. The frame can be
// in the FIT state, in which case it is optimally fit inside the
// frame constraint region (see getFrameConstraintRect( ) above for
// a description of the frame constraint region). Or, the frame can
// be in the USER state. In the user state, the user has the mouse button
// held down and is actively performing a drag operation to change the
// geometry of the frame.
//
Rectangle {
id: frame
signal resizedX(bool left, real dx)
signal resizedY(bool top, real dy)
property variant dragStartRect
function getExtentRect() {
var result = { };
result.x = x;
result.y = y;
result.width = width;
result.height = height;
return result;
}
x: cropOverlay.initialFrameX
y: cropOverlay.initialFrameY
width: cropOverlay.initialFrameWidth
height: cropOverlay.initialFrameHeight
color: "transparent"
border.width: units.gu(0.2)
border.color: "#19B6EE"
MouseArea {
id: panArea
property int dragStartX;
property int dragStartY;
anchors.fill: parent
anchors.margins: 2
onPressed: {
dragStartX = mouse.x;
dragStartY = mouse.y;
photoExtent.startPan();
}
onReleased: {
photoExtent.stopPan();
}
onPositionChanged: {
photoExtent.updatePan(mouse.x - dragStartX, mouse.y - dragStartY);
}
}
Button {
objectName: "centerCropIcon"
anchors.centerIn: parent
text: i18n.dtr("lomiri-ui-extras", "Crop")
color: frame.border.color
opacity: 0.9
onClicked: cropOverlay.cropButtonPressed()
}
// Left drag bar.
CropDragArea {
x: -units.gu(2)
width: units.gu(3)
anchors.verticalCenter: parent.center
height: parent.height - units.gu(2)
onDragged: {
frame.resizedX(true, dx);
frame.updateOnAltered(false);
}
onDragStarted: frame.dragStartRect = frame.getExtentRect();
onDragCompleted: frame.updateOnAltered(true);
}
// Top drag bar.
CropDragArea {
y: -units.gu(2)
height: units.gu(3)
anchors.horizontalCenter: parent.center
width: parent.width - units.gu(2)
onDragged: {
frame.resizedY(true, dy);
frame.updateOnAltered(false);
}
onDragStarted: frame.dragStartRect = frame.getExtentRect();
onDragCompleted: frame.updateOnAltered(true);
}
// Right drag bar.
CropDragArea {
x: parent.width - units.gu(1)
width: units.gu(3)
anchors.verticalCenter: parent.center
height: parent.height - units.gu(2)
onDragged: {
frame.resizedX(false, dx);
frame.updateOnAltered(false);
}
onDragStarted: frame.dragStartRect = frame.getExtentRect();
onDragCompleted: frame.updateOnAltered(true);
}
// Bottom drag bar.
CropDragArea {
y: parent.height - units.gu(1)
height: units.gu(3)
anchors.horizontalCenter: parent.center
width: parent.width - units.gu(2)
onDragged: {
frame.resizedY(false, dy);
frame.updateOnAltered(false);
}
onDragStarted: frame.dragStartRect = frame.getExtentRect();
onDragCompleted: frame.updateOnAltered(true);
}
// Top-left corner.
CropCorner {
objectName: "topLeftCropCorner"
isLeft: true
isTop: true
onDragged: {
frame.resizedX(isLeft, dx);
frame.resizedY(isTop, dy);
frame.updateOnAltered(false);
}
onDragStarted: frame.dragStartRect = frame.getExtentRect();
onDragCompleted: frame.updateOnAltered(true);
}
// Top-right corner.
CropCorner {
objectName: "topRightCropCorner"
isLeft: false
isTop: true
onDragged: {
frame.resizedX(isLeft, dx);
frame.resizedY(isTop, dy);
frame.updateOnAltered(false);
}
onDragStarted: frame.dragStartRect = frame.getExtentRect();
onDragCompleted: frame.updateOnAltered(true);
}
// Bottom-left corner.
CropCorner {
objectName: "bottonLeftCropCorner"
isLeft: true
isTop: false
onDragged: {
frame.resizedX(isLeft, dx);
frame.resizedY(isTop, dy);
frame.updateOnAltered(false);
}
onDragStarted: frame.dragStartRect = frame.getExtentRect();
onDragCompleted: frame.updateOnAltered(true);
}
// Bottom-right corner.
CropCorner {
id: bottomRightCrop
objectName: "bottomRightCropCorner"
isLeft: false
isTop: false
onDragged: {
frame.resizedX(isLeft, dx);
frame.resizedY(isTop, dy);
frame.updateOnAltered(false);
}
onDragStarted: frame.dragStartRect = frame.getExtentRect();
onDragCompleted: frame.updateOnAltered(true);
}
// This handles resizing in both dimensions. first is whether we're
// resizing the "first" edge, e.g. left or top (in which case we
// adjust both position and span) vs. right or bottom (where we just
// adjust the span). position should be either "x" or "y", and span
// is either "width" or "height". This is a little complicated, and
// coule probably be optimized with a little more thought.
function resizeFrame(first, delta, position, span) {
var constraintRegion = cropOverlay.getPhotoExtentRect();
if (first) {
// Left/top side.
if (frame[position] + delta < constraintRegion[position])
delta = constraintRegion[position] - frame[position]
if (frame[span] - delta < minSize)
delta = frame[span] - minSize;
frame[position] += delta;
frame[span] -= delta;
} else {
// Right/bottom side.
if (frame[span] + delta < minSize)
delta = minSize - frame[span];
if ((frame[position] + frame[span] + delta) >
(constraintRegion[position] + constraintRegion[span]))
delta = constraintRegion[position] + constraintRegion[span] -
frame[position] - frame[span];
frame[span] += delta;
}
}
onResizedX: resizeFrame(left, dx, "x", "width")
onResizedY: resizeFrame(top, dy, "y", "height")
function updateOnAltered(finalUpdate) {
var start = frame.dragStartRect;
var end = frame.getExtentRect();
if (!GraphicsRoutines.areEqual(end, start)) {
if (finalUpdate ||
(end.width * end.height >= start.width * start.height)) {
cropOverlay.userAlteredFrame();
cropOverlay.runFrameFitAnimation();
}
}
}
}
/* Invoked when the user has changed the geometry of the frame by dragging
* one of its corners or edges. Expressed in terms of the states of the
* frame described above, the userAlteredFrame signal is fired
* when the user stops dragging. This triggers a change of the frame
* from the USER state to the FIT state
*/
onUserAlteredFrame: {
// since the geometry of the frame in the FIT state depends on both
// how the user resized the frame when it was in the USER state as well
// as the size of the frame constraint region, we have to recompute the
// geometry of of the frame for the FIT state every time.
startFrame = GraphicsRoutines.cloneRect(frame);
endFrame = GraphicsRoutines.fitRect(getViewportExtentRect(),
frame.getExtentRect());
startPhoto = GraphicsRoutines.cloneRect(photoExtent);
var frameRelativeToPhoto = getRelativeFrameRect();
var scaleFactor = endFrame.width / frame.width;
endPhotoWidth = photoExtent.width * scaleFactor;
endPhotoHeight = photoExtent.height * scaleFactor;
endPhotoX = endFrame.x - (frameRelativeToPhoto.x * endPhotoWidth);
endPhotoY = endFrame.y - (frameRelativeToPhoto.y * endPhotoHeight)
photo.transformOrigin = Item.TopLeft;
}
onRunFrameFitAnimation: NumberAnimation { target: cropOverlay;
property: "interpolationFactor"; from: 0.0; to: 1.0 }
onInterpolationFactorChanged: {
var endPhotoRect = { };
endPhotoRect.x = endPhotoX;
endPhotoRect.y = endPhotoY;
endPhotoRect.width = endPhotoWidth;
endPhotoRect.height = endPhotoHeight;
var interpolatedRect = GraphicsRoutines.interpolateRect(startFrame,
endFrame, interpolationFactor);
GraphicsRoutines.sizeToRect(interpolatedRect, frame);
interpolatedRect = GraphicsRoutines.interpolateRect(startPhoto,
endPhotoRect, interpolationFactor);
GraphicsRoutines.sizeToRect(interpolatedRect, photoExtent);
}
}
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PhotoEditor/EditStack.qml 0000664 0000000 0000000 00000011104 14555431165 0030064 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2014 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* 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 .
*/
import QtQuick 2.9
import Lomiri.Components 1.3
import Lomiri.Components.Extras 0.2
Item {
property PhotoData data
property bool actionsEnabled: true
property var items: []
property int level: 0
property string editingSessionPath
property string currentFile
property string originalFile
property string pristineFile
property bool modified: level > 0 || _revertedInThisSession
property bool _revertedInThisSession
property bool _pristineFileExists
signal revertRequested
function startEditingSession(original) {
var originalFileName = FileUtils.nameFromPath(original);
var baseName = FileUtils.parentDirectory(original) +
"/.photo_editing." + originalFileName + ".";
editingSessionPath = FileUtils.createTemporaryDirectory(baseName);
if (editingSessionPath == "") return false;
originalFile = original;
currentFile = editingSessionPath + "/current";
pristineFile = FileUtils.parentDirectory(original) +
"/.original/" + originalFileName
_revertedInThisSession = false;
_pristineFileExists = FileUtils.exists(pristineFile)
FileUtils.copy(originalFile, currentFile)
items = [createSnapshot(0)];
level = 0;
return true;
}
function endEditingSession(saveIfModified) {
if (saveIfModified && modified) { // file modified
// if we don't have a copy of the very first original, create one
if (!_pristineFileExists) {
FileUtils.createDirectory(FileUtils.parentDirectory(pristineFile));
FileUtils.copy(originalFile, pristineFile);
} else {
// if we reverted to original (and made no other changes)
// we don't need to keep the pristine copy around
if (_revertedInThisSession && level <= 0) {
FileUtils.remove(pristineFile);
}
}
FileUtils.copy(currentFile, originalFile); // actually save
}
FileUtils.removeDirectory(editingSessionPath, true); // clear editing cache
editingSessionPath = originalFile = pristineFile = currentFile = "";
}
function createSnapshot(name) {
var snapshotFile = editingSessionPath + "/edit." + name;
FileUtils.copy(currentFile, snapshotFile);
return snapshotFile;
}
function restoreSnapshot(name) {
var snapshotFile = editingSessionPath + "/edit." + name;
FileUtils.copy(snapshotFile, currentFile);
data.refreshFromDisk();
}
function checkpoint() {
level++;
items = items.slice(0, level);
items.push(createSnapshot(items.length));
}
function revertToPristine() {
if (!FileUtils.exists(pristineFile)) {
restoreSnapshot(0);
items = items.slice(0, 1);
level = 0;
} else {
FileUtils.copy(pristineFile, currentFile);
data.refreshFromDisk();
items = [];
checkpoint();
level = 0;
_revertedInThisSession = true;
}
}
property Action undoAction: Action {
text: i18n.dtr("lomiri-ui-extras", "Undo")
iconName: "undo"
enabled: items.length > 0 && level > 0 && actionsEnabled
onTriggered: restoreSnapshot(--level);
}
property Action redoAction: Action {
text: i18n.dtr("lomiri-ui-extras", "Redo")
iconName: "redo"
enabled: level < items.length - 1 && actionsEnabled
onTriggered: restoreSnapshot(++level);
}
property Action revertAction: Action {
text: i18n.dtr("lomiri-ui-extras", "Revert to original")
iconSource: Qt.resolvedUrl("assets/edit_revert.png")
enabled: actionsEnabled &&
(level > 0 || (!_revertedInThisSession && _pristineFileExists))
onTriggered: revertRequested()
}
}
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PhotoEditor/ExposureAdjuster.qml 0000664 0000000 0000000 00000005623 14555431165 0031536 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2014 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* 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 .
*/
import QtQuick 2.9
import Lomiri.Components 1.3
import Lomiri.Components.Extras 0.2
// When the photo editor uses a proper PageStack this will switch back to being
// an Item as it will not need to cover what is below it.
Rectangle {
id: adjuster
color:"black"
property alias exposure: exposureSelector.value
property bool enabled
signal confirm()
signal cancel()
Image {
id: targetImage
anchors.fill: parent
fillMode: Image.PreserveAspectFit
asynchronous: true
cache: false
sourceSize {
width: targetImage.width
height: targetImage.height
}
}
Column {
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.margins: units.gu(2)
spacing: units.gu(2)
Slider {
id: exposureSelector
live: false
minimumValue: -1.0
maximumValue: +1.0
value: 0.0
enabled: adjuster.enabled
anchors.left: parent.left
anchors.right: parent.right
height: units.gu(2)
function formatValue(value) {
return (Math.round(value * 100) / 100).toString()
}
}
Row {
anchors.horizontalCenter: parent.horizontalCenter
spacing: units.gu(2)
Button {
text: i18n.dtr("lomiri-ui-extras", "Cancel")
enabled: adjuster.enabled
onTriggered: {
targetImage.source = "";
cancel();
}
}
Button {
text: i18n.dtr("lomiri-ui-extras", "Done")
color: theme.palette.normal.positive
enabled: adjuster.enabled
onTriggered: {
targetImage.source = "";
confirm();
}
}
}
}
function start(target) {
targetImage.source = target;
exposure = 0.0;
opacity = 1.0;
}
function reload() {
var path = targetImage.source;
targetImage.asynchronous = false;
targetImage.source = "";
targetImage.asynchronous = true;
targetImage.source = path;
}
}
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PhotoEditor/GraphicsRoutines.js 0000664 0000000 0000000 00000006400 14555431165 0031330 0 ustar 00root root 0000000 0000000 /*
* Copyright (C) 2012 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* 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 .
*
* Authors:
* Lucas Beeler
*/
/* Given 'input', constrain the value of 'input' to range between
* 'lowConstraint' and 'highConstraint', inclusive. Return the constrained
* value without modifying 'input'.
*/
function clamp(input, lowConstraint, highConstraint) {
if (input < lowConstraint)
return lowConstraint;
else if (input > highConstraint)
return highConstraint;
else
return input;
}
function cloneRect(source) {
var ret = { };
ret.x = source.x;
ret.y = source.y;
ret.width = source.width;
ret.height = source.height;
return ret;
}
function interpolateRect(start, end, factor) {
var result = { };
result.x = start.x + factor * (end.x - start.x);
result.y = start.y + factor * (end.y - start.y);
result.width = start.width + factor * (end.width - start.width);
result.height = start.height + factor * (end.height - start.height);
return result;
}
/* Forces Geometry object 'item' to fit centered inside Geometry object
* 'viewport', preserving the aspect of ratio of 'item' but potentially scaling
* and translating it so that it snugly fits centered inside of 'viewport'.
* Return the new scaled-up and translated Geometry for 'item'.
*/
function fitRect(viewport, item) {
if (item.width == 0 || item.height == 0) {
return viewport;
}
var itemAspectRatio = item.width / item.height;
var viewportAspectRatio = viewport.width / viewport.height;
var result = { };
if (itemAspectRatio > viewportAspectRatio) {
var scaleFactor = viewport.width / item.width;
result.width = viewport.width;
result.height = item.height * scaleFactor
} else {
scaleFactor = viewport.height / item.height;
result.width = item.width * scaleFactor
result.height = viewport.height;
}
result.width = clamp(result.width, 0, viewport.width);
result.height = clamp(result.height, 0, viewport.height);
result.x = viewport.x + (viewport.width - result.width) / 2;
result.y = viewport.y + (viewport.height - result.height) / 2;
result.scaleFactor = scaleFactor;
return result;
}
function getRelativeRect(geom, relativeTo) {
var result = { };
result.x = (geom.x - relativeTo.x) / relativeTo.width;
result.y = (geom.y - relativeTo.y) / relativeTo.height;
result.width = geom.width / relativeTo.width;
result.height = geom.height / relativeTo.height;
return result;
}
function sizeToRect(rect, qmlItem) {
qmlItem.x = rect.x;
qmlItem.y = rect.y;
qmlItem.width = rect.width;
qmlItem.height = rect.height;
}
function areEqual(geom1, geom2) {
return (geom1.x === geom2.x && geom1.y === geom2.y && geom1.width ===
geom2.width && geom1.height === geom2.height);
}
lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PhotoEditor/assets/ 0000775 0000000 0000000 00000000000 14555431165 0027003 5 ustar 00root root 0000000 0000000 lomiri-ui-extras-0.6.3/modules/Lomiri/Components/Extras/PhotoEditor/assets/crop-handle@20.png 0000664 0000000 0000000 00000006101 14555431165 0032145 0 ustar 00root root 0000000 0000000 PNG
IHDR <