pax_global_header 0000666 0000000 0000000 00000000064 14401322236 0014507 g ustar 00root root 0000000 0000000 52 comment=02914797f47d26c4098f4a3a945716b13998a8cc
fraqtive-0.4.8.1/ 0000775 0000000 0000000 00000000000 14401322236 0013500 5 ustar 00root root 0000000 0000000 fraqtive-0.4.8.1/.gitignore 0000664 0000000 0000000 00000000276 14401322236 0015475 0 ustar 00root root 0000000 0000000 debug
release
src/fraqtive_pch.h.cpp
src/fraqtive.vcxproj
src/fraqtive.vcxproj.filters
src/fraqtive.vcxproj.user
tmp
.qmake.stash
config.pri
configure-msvc.bat
fraqtive.sln
fraqtive.v12.suo
fraqtive-0.4.8.1/COPYING 0000664 0000000 0000000 00000104513 14401322236 0014537 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
.
fraqtive-0.4.8.1/ChangeLog 0000664 0000000 0000000 00000003316 14401322236 0015255 0 ustar 00root root 0000000 0000000 0.4.8 (2015-01-29)
* added multi-sampling option when generating images
* fixed location of data files on Windows with Qt5
0.4.7 (2015-01-20)
* fixed compatibility with Qt5
* increased the maximum size of generated images
0.4.6 (2012-12-04)
* generating series of images
* fixed navigation at high zoom levels
* increased the maximum number of iterations
* added the tool strip and other UI improvements
0.4.5 (2009-12-18)
* added: generating images of arbitrary size
* added: handling 4th and 5th mouse buttons
* fixed: compatibility with Qt 4.6
* fixed: color mapping in 3D mode
* fixed: updating Julia preview when navigating
0.4.4 (2008-07-28)
* updated version of the Windows Modern Style
* various UI improvements
0.4.3 (2008-05-12)
* added: color and mesh animation
* fixed: compatibility with Qt 4.4
* fixed: inverted mouse wheel operations
* fixed: losing position on multi-core processors
* fixed: install image format plugins on Windows
0.4.2 (2008-04-29)
* added: mesh view
* added: mesh advanced settings
* added: copy and save mesh image
0.4.1 (2008-04-14)
* added: bookmarks and color presets
* added: copy and save image
* added: full screen mode
* fixed: crash on multi-core processors
* fixed: compilation using GCC 3.4 and MinGW
* fixed: compilation on MIPS and ARM platforms
0.4.0 (2008-03-25)
* created new fractal generator engine
* redesigned and rewritten user interface using Qt4
0.3.1 (2005-09-07)
* minor improvements and bug fixes
0.3.0 (2005-07-04)
* ported to KDE3
0.2.1 (2005-02-11)
* minor improvements and bug fixes
0.2.0 (2005-01-24)
* initial Qt3 version
fraqtive-0.4.8.1/INSTALL 0000664 0000000 0000000 00000004113 14401322236 0014530 0 ustar 00root root 0000000 0000000 Requirements
============
Requirements:
* Qt 4.6 or newer (http://qt-project.org/)
The program can be built using the standard 'qmake' tool from Qt. Simple configure
scripts are available for both Linux and Windows which create a configuration file
and run qmake with appropriate parameters. See detailed instructions below.
Linux
=====
To compile the program you will need a C++ compiler (preferably gcc) and headers
for the Qt library (if you use binary packages, make sure you have the appropriate
'devel' package installed).
The typical procedure of building and installing the program is:
$ ./configure
$ make
# make install
Additional options that can be passed to the configure script:
-prefix DIR
Location where the package will be installed (default is '/usr/local').
-qmake PATH
Full path to the 'qmake' tool (required if it cannot be found
automatically).
-debug
Build with debugging symbols.
-no-sse2
Compile without using SSE2 instructions (by default SSE2 is enabled).
Windows
=======
You must have the open source edition of Qt installed. The program can be compiled
using either the MinGW compiler or Microsoft Visual C++.
If you are using MinGW, open the Qt Command Prompt. Go to the directory where
you have unpacked Fraqtive and run:
> configure.bat
> mingw32-make
If you are using Microsoft Visual C++, open the Visual Studio Command Prompt.
Make sure that QTDIR is set to the path where Qt was installed. Go to the directory
where you have unpacked Fraqtive and run:
> set QTDIR=C:\path\to\qt
> configure.bat
> nmake
Additional options that can be passed to the configure script:
-prefix DIR
The location where the package will be installed (default is
'C:\Program Files\Fraqtive').
-debug
Build with debugging symbols.
-no-sse2
Compile without using SSE2 instructions (by default SSE2 is enabled
except on MinGW where it's buggy).
-msvc
Generate a solution for Microsoft Visual Studio instead of Makefiles.
fraqtive-0.4.8.1/README 0000664 0000000 0000000 00000002527 14401322236 0014366 0 ustar 00root root 0000000 0000000 Fraqtive
Version 0.4.8 (2015-01-29)
Mandelbrot family fractal generator.
Fraqtive is an open source, multi-platform generator of the Mandelbrot
family fractals. It uses very fast algorithms supporting SSE2
and multi-core processors. It generates high quality anti-aliased
images and renders 3D scenes using OpenGL. It allows real-time
navigation and dynamic generation of the Julia fractal preview.
Copyrights
==========
Copyright (C) 2004-2015 Michał Męciński
Icons based on the KDE Crystal theme copyright (C) 2002 and following
years KDE Artists
License
=======
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 .
Resources
=========
Website
http://fraqtive.mimec.org/
Forum
http://fraqtive.mimec.org/forum/general
Bugs & Requests
http://fraqtive.mimec.org/forum/tracker
fraqtive-0.4.8.1/configure 0000775 0000000 0000000 00000004571 14401322236 0015416 0 ustar 00root root 0000000 0000000 #! /bin/sh
prefix=/usr/local
config=release
sse2=sse2
QMAKE=
usage="Usage: configure [-prefix DIR] [-qmake PATH] [-debug]
Options:
-prefix DIR Set the instalation directory to DIR (default: /usr/local)
-qmake PATH Full path to the 'qmake' program (default: autodetect)
-debug Build with debugging symbols
-no-sse2 Do not compile with use of SSE2 instructions
"
while test $# -gt 0; do
case $1 in
-prefix )
prefix=$2
shift ; shift
;;
-qmake )
QMAKE=$2
shift; shift
;;
-debug )
config=debug
shift
;;
-no-sse2 )
sse2=no-sse2
shift
;;
-help | --help )
echo "$usage"
exit
;;
* )
echo "*** ERROR: Unrecognized option '$1'" >&2
echo "$usage"
exit 1
;;
esac
done
echo "Testing for qmake..."
paths=
if test -n "$QMAKE"; then
if test -x "$QMAKE"; then
paths=$QMAKE
else
echo "*** ERROR: '$QMAKE' is not an executable program." >&2
exit 1
fi
else
for i in qmake qmake-qt4; do
if which $i >/dev/null 2>/dev/null; then
paths="$paths `which $i`"
fi
if test -n "$QTDIR"; then
if test -x "$QTDIR/bin/$i"; then
paths="$paths $QTDIR/bin/$i"
fi
fi
done
fi
if test -z "$paths"; then
echo "*** ERROR: Cannot find 'qmake' in your PATH." >&2
exit 1
fi
QMAKE=
for i in $paths; do
version=`$i -query QT_VERSION`
if test "$version" != "**Unknown**"; then
major=`echo $version | sed -e "s/\([0-9][0-9]*\).*/\1/"`
minor=`echo $version | sed -e "s/[0-9][0-9]*\.\([0-9][0-9]*\).*/\1/"`
if test $major -eq 5; then
QMAKE=$i
break
fi
fi
done
if test -z "$QMAKE"; then
echo "*** ERROR: Cannot find 'qmake' from Qt 5." >&2
exit 1
fi
echo "Using $QMAKE (Qt $version)"
if test -f fraqtive.pro; then
PROJECT=fraqtive.pro
elif test -f ../fraqtive.pro; then
PROJECT=../fraqtive.pro
else
echo "*** ERROR: Cannot find 'fraqtive.pro' in current or parent directory." >&2
exit 1
fi
echo "Writing configuration file..."
echo "# this file was generated by configure" >config.pri
echo "CONFIG += $config $sse2" >>config.pri
echo "PREFIX = $prefix" >>config.pri
echo "Generating Makefiles..."
if $QMAKE -recursive $PROJECT; then
echo
echo "Configure finished. Run 'make' now."
echo
else
echo "*** ERROR: Running 'qmake' failed." >&2
exit 1
fi
fraqtive-0.4.8.1/configure.bat 0000664 0000000 0000000 00000004071 14401322236 0016153 0 ustar 00root root 0000000 0000000 @echo off
set prefix="C:\Program Files\Fraqtive"
set config=release
set sse2=sse2
set msvc=no
if exist .\fraqtive.pro goto arg_loop
echo *** ERROR: cannot find project file in current directory.
goto end
:arg_loop
if "%1" == "" goto arg_done
if "%1" == "-prefix" goto arg_prefix
if "%1" == "-debug" goto arg_debug
if "%1" == "-no-sse2" goto arg_nosse2
if "%1" == "-msvc" goto arg_msvc
if "%1" == "-help" goto show_usage
if "%1" == "--help" goto show_usage
if "%1" == "/?" goto show_usage
echo *** ERROR: Unrecognized option '%1'
goto show_usage
:arg_prefix
set prefix=%2
shift
goto arg_next
:arg_debug
set config=debug
goto arg_next
:arg_nosse2
set sse2=no-sse2
goto arg_next
:arg_msvc
set msvc=yes
goto arg_next
:arg_next
shift
goto arg_loop
:show_usage
echo Usage: configure [-prefix DIR] [-debug] [-msvc]
echo.
echo Options:
echo.
echo -prefix DIR Set the instalation directory to DIR
echo (default: C:\Program Files\Fraqtive)
echo -debug Build with debugging symbols
echo -no-sse2 Do not compile with use of SSE2 instructions
echo -msvc Generate Visual Studio solution
goto end
:arg_done
echo Testing for qmake...
set QMAKE=
qmake -v >nul 2>nul
if errorlevel 1 goto test_qtdir
set QMAKE=qmake
goto qmake_found
:test_qtdir
if "%QTDIR%" == "" goto no_qmake
"%QTDIR%\bin\qmake" -v >nul 2>nul
if errorlevel 1 goto no_qmake
set QMAKE=%QTDIR%\bin\qmake
goto qmake_found
:no_qmake
echo *** ERROR: Cannot find 'qmake' in your PATH.
goto end
:qmake_found
echo Writing configuration file...
echo # this file was generated by configure.bat >config.pri
echo CONFIG += %config% %sse2% >>config.pri
echo PREFIX = %prefix:\=\\% >>config.pri
if "%msvc%" == "yes" goto gen_msvc
echo Generating Makefiles...
"%QMAKE%" -recursive
if errorlevel 1 goto qmake_failed
echo.
echo Configure finished. Run 'make' or 'nmake' now.
goto end
:gen_msvc
echo Generating Visual Studio solution...
"%QMAKE%" -tp vc -recursive
if errorlevel 1 goto qmake_failed
echo.
echo Configure finished.
goto end
:qmake_failed
echo *** ERROR: Running 'qmake' failed.
:end
fraqtive-0.4.8.1/fraqtive.pro 0000664 0000000 0000000 00000000070 14401322236 0016040 0 ustar 00root root 0000000 0000000 include( config.pri )
TEMPLATE = subdirs
SUBDIRS = src
fraqtive-0.4.8.1/installer/ 0000775 0000000 0000000 00000000000 14401322236 0015475 5 ustar 00root root 0000000 0000000 fraqtive-0.4.8.1/installer/build.bat 0000664 0000000 0000000 00000003476 14401322236 0017276 0 ustar 00root root 0000000 0000000 @echo off
if "%1" == "" goto usage
set VERSION=0.4.8
set BUILDVERSION=0.4.8.5508
set NSISDIR=C:\Program Files (x86)\NSIS\Unicode
if not %1 == x86 goto elsex64
set BUILDDIR=D:\Release\fraqtive-x86
set QTDIR=D:\Qt5\x86
set VCRTDIR=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\redist\x86\Microsoft.VC100.CRT
set ARCHITECTURE=win_x86
set SUFFIX=
goto endopt
:elsex64
if not %1 == x64 goto usage
set BUILDDIR=D:\Release\fraqtive-x64
set QTDIR=D:\Qt5\x64
set VCRTDIR=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\redist\x64\Microsoft.VC100.CRT
set ARCHITECTURE=win_x64
set SUFFIX= (64-bit)
goto endopt
:usage
echo usage: build.bat x86^|x64
goto :eof
:endopt
call "%QTDIR%\bin\qtvars.bat" vsvars
if not exist "%BUILDDIR%" mkdir "%BUILDDIR%"
echo.
echo Exporting...
echo.
svn export --quiet --force .. "%BUILDDIR%"
pushd "%BUILDDIR%"
call configure.bat
nmake release
if errorlevel 1 goto cleanup
call ..\sign.bat release\fraqtive.exe
echo.
echo Creating uninstaller...
echo.
"%NSISDIR%\makensis.exe" /DINNER "/DQTDIR=%QTDIR%" "/DVCRTDIR=%VCRTDIR%" "/DVERSION=%VERSION%" "/DBUILDVERSION=%BUILDVERSION%" "/DARCHITECTURE=%ARCHITECTURE%" "/DSUFFIX=%SUFFIX%" /V2 installer\fraqtive.nsi
if errorlevel 1 goto cleanup
"%TEMP%\innerinst.exe"
call ..\sign.bat "%TEMP%\uninstall.exe"
echo.
echo Creating installer...
echo.
"%NSISDIR%\makensis.exe" "/DQTDIR=%QTDIR%" "/DVCRTDIR=%VCRTDIR%" "/DVERSION=%VERSION%" "/DBUILDVERSION=%BUILDVERSION%" "/DARCHITECTURE=%ARCHITECTURE%" "/DSUFFIX=%SUFFIX%" /V2 installer\fraqtive.nsi
if errorlevel 1 goto cleanup
call ..\sign.bat "installer\fraqtive-%VERSION%-%ARCHITECTURE%.exe"
if not %1 == x86 goto cleanup
:cleanup
del /q /f "%TEMP%\innerinst.exe"
del /q /f "%TEMP%\uninstall.exe"
popd
fraqtive-0.4.8.1/installer/fraqtive.nsi 0000664 0000000 0000000 00000014027 14401322236 0020035 0 ustar 00root root 0000000 0000000 /**************************************************************************
* This file is part of the Fraqtive program
* Copyright (C) 2004-2012 Michał Męciński
*
* 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 .
**************************************************************************/
!define SRCDIR ".."
!define BUILDDIR "..\release"
!define UNINST_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Fraqtive"
!include "MUI2.nsh"
!include "languages\fraqtive_en.nsh"
!ifdef INNER
SetCompress off
OutFile "$%TEMP%\innerinst.exe"
!else
!verbose 4
SetCompressor /SOLID lzma
SetCompressorDictSize 32
OutFile "fraqtive-${VERSION}-${ARCHITECTURE}.exe"
!endif
!define MULTIUSER_EXECUTIONLEVEL "Highest"
!define MULTIUSER_MUI
!define MULTIUSER_INSTALLMODE_COMMANDLINE
!define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_KEY "${UNINST_KEY}"
!define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME "UninstallString"
!define MULTIUSER_INSTALLMODE_INSTDIR "Fraqtive"
!define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_KEY "${UNINST_KEY}"
!define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME "InstallLocation"
!if ${ARCHITECTURE} == "win_x64"
!define MULTIUSER_USE_PROGRAMFILES64
!endif
!ifndef INNER
!define MULTIUSER_NOUNINSTALL
!endif
!include "include\multiuser64.nsh"
Name "$(NAME)"
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install-blue.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall-blue.ico"
!define MUI_WELCOMEFINISHPAGE_BITMAP "images\wizard.bmp"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "images\wizard.bmp"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "images\header.bmp"
!define MUI_HEADERIMAGE_RIGHT
!define MUI_WELCOMEPAGE_TITLE "$(TITLE)"
!define MUI_WELCOMEPAGE_TEXT "$(WELCOME_TEXT)"
!insertmacro MUI_PAGE_WELCOME
!define MUI_LICENSEPAGE_CHECKBOX
!insertmacro MUI_PAGE_LICENSE "${SRCDIR}\COPYING"
!insertmacro MULTIUSER_PAGE_INSTALLMODE
!insertmacro MUI_PAGE_DIRECTORY
ShowInstDetails nevershow
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_TITLE "$(TITLE)"
!insertmacro MUI_PAGE_FINISH
!ifdef INNER
!define MUI_WELCOMEPAGE_TITLE "$(TITLE)"
!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
ShowUninstDetails nevershow
!insertmacro MUI_UNPAGE_INSTFILES
!define MUI_FINISHPAGE_TITLE "$(TITLE)"
!insertmacro MUI_UNPAGE_FINISH
!endif
!insertmacro MUI_LANGUAGE "English"
VIProductVersion "${BUILDVERSION}"
VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "Michał Męciński"
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "Fraqtive Setup"
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${VERSION}"
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "Copyright (C) 2004-2015 Michał Męciński"
VIAddVersionKey /LANG=${LANG_ENGLISH} "OriginalFilename" "fraqtive-${VERSION}-${ARCHITECTURE}.exe"
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "Fraqtive"
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductVersion" "${VERSION}"
Function .onInit
!if ${ARCHITECTURE} == "win_x64"
SetRegView 64
!endif
!ifdef INNER
WriteUninstaller "$%TEMP%\uninstall.exe"
Quit
!endif
!insertmacro MULTIUSER_INIT
FunctionEnd
Section
SetOutPath "$INSTDIR"
File "${SRCDIR}\ChangeLog"
File "${SRCDIR}\COPYING"
File "${SRCDIR}\README"
SetOutPath "$INSTDIR\bin"
Delete "$INSTDIR\bin\*.*"
File "${BUILDDIR}\fraqtive.exe"
File "${VCRTDIR}\msvcp100.dll"
File "${VCRTDIR}\msvcr100.dll"
File "qt.conf"
File "${QTDIR}\bin\Qt5Core.dll"
File "${QTDIR}\bin\Qt5Gui.dll"
File "${QTDIR}\bin\Qt5OpenGL.dll"
File "${QTDIR}\bin\Qt5Widgets.dll"
File "${QTDIR}\bin\Qt5Xml.dll"
SetOutPath "$INSTDIR\plugins\imageformats"
File "${QTDIR}\plugins\imageformats\qjpeg.dll"
File "${QTDIR}\plugins\imageformats\qtiff.dll"
SetOutPath "$INSTDIR\plugins\platforms"
File "${QTDIR}\plugins\platforms\qwindows.dll"
SetOutPath "$INSTDIR\bin"
CreateShortCut "$SMPROGRAMS\Fraqtive.lnk" "$INSTDIR\bin\fraqtive.exe"
CreateShortCut "$DESKTOP\Fraqtive.lnk" "$INSTDIR\bin\fraqtive.exe"
WriteRegStr SHCTX "${UNINST_KEY}" "DisplayIcon" '"$INSTDIR\bin\fraqtive.exe"'
WriteRegStr SHCTX "${UNINST_KEY}" "DisplayName" "Fraqtive ${VERSION}${SUFFIX}"
WriteRegStr SHCTX "${UNINST_KEY}" "DisplayVersion" "${VERSION}"
WriteRegStr SHCTX "${UNINST_KEY}" "UninstallString" '"$INSTDIR\uninstall.exe" /$MultiUser.InstallMode'
WriteRegStr SHCTX "${UNINST_KEY}" "InstallLocation" "$INSTDIR"
WriteRegStr SHCTX "${UNINST_KEY}" "Publisher" "Michał Męciński"
WriteRegStr SHCTX "${UNINST_KEY}" "HelpLink" "http://fraqtive.mimec.org"
WriteRegStr SHCTX "${UNINST_KEY}" "URLInfoAbout" "http://fraqtive.mimec.org"
WriteRegStr SHCTX "${UNINST_KEY}" "URLUpdateInfo" "http://fraqtive.mimec.org/downloads"
WriteRegDWORD SHCTX "${UNINST_KEY}" "NoModify" 1
WriteRegDWORD SHCTX "${UNINST_KEY}" "NoRepair" 1
!ifndef INNER
SetOutPath "$INSTDIR"
File "$%TEMP%\uninstall.exe"
!endif
SectionEnd
!ifdef INNER
Function un.onInit
!if ${ARCHITECTURE} == "win_x64"
SetRegView 64
!endif
!insertmacro MULTIUSER_UNINIT
FunctionEnd
Section "Uninstall"
DeleteRegKey SHCTX "${UNINST_KEY}"
Delete "$SMPROGRAMS\Fraqtive.lnk"
Delete "$DESKTOP\Fraqtive.lnk"
Delete "$INSTDIR\ChangeLog"
Delete "$INSTDIR\COPYING"
Delete "$INSTDIR\README"
RMDir /r "$INSTDIR\bin"
RMDir /r "$INSTDIR\plugins"
Delete "$INSTDIR\uninstall.exe"
RMDir "$INSTDIR"
SectionEnd
!endif
fraqtive-0.4.8.1/installer/images/ 0000775 0000000 0000000 00000000000 14401322236 0016742 5 ustar 00root root 0000000 0000000 fraqtive-0.4.8.1/installer/images/header.bmp 0000664 0000000 0000000 00000062332 14401322236 0020700 0 ustar 00root root 0000000 0000000 BMd 6 ( 9 d ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ƴ ¿¿ aaabbcceefbbddeefghijkklmnnpppmqqqqmmponmkjhgfedפ¿ aabcccefffddeefghijkkmmnopqmqtnqqrvpnqqponlkihfe٤¿ abcceefbbddefghijkkmnnoppqqnprtvxyxusvnmqpnmkihfڤ¿ bcceeffddeeghhjkkmnnoppqqnpqsvy}{yurpnmpnmkjhܤ¿ cceefhddefghikklmnoppqqtprrtvz}{vtvnqqomkjߤ¿ ceffbdeeghijklmnoppmqtpvrtvxz}{xtqtmpomkड¿ effbdefghikkmnnpqmmttqrtuxy{{xtrpqpom⤡¿ fbbdefhhjklnnpqqqttqrstvyz}{xurpqqn䤡¿ bbdefhijkmnopqqntpqrtvxz{ԑo{yvrpmp椡¿ bdefhiklmnpqqqnpqrtuxy{}žgcYLIKܤ}zvrtq夡¿ defhiklnopqqttqrtuvyz{v?@??@?IEGҥzuqt褡¿ efhikmnoqqntvrtuvyz{}?@??@?^ZPytp뤡¿ fhikmnppqtprtvxyz{}ƱTPKEC?|qȱ{vrꤡ¿ hikmnpqqtvsuxz{}^VOyykADA?@??@??@??@??@??@?@AGWVOyt줡¿ ikmnpqqnqtvy{TPKIEG?@??@??@??@??@??@??@??@??@??@?IEGtpe?@?zu¿ klnqmnprtvz}ԌvEC??@??@??@??@??@??@??@??@??@??@??@??@??@?s{v嵐¿ lnpmnprtvz}`\VADA?@??@??@??@??@??@??@??@??@??@??@??@??@??@?IGA}x¿ npmtqruxz}寭MKG?@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@?ttly¿ pqtqsvy{}iha?@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@?EC?z¿ qtrtvz{ҺhbTa`YrȸEC??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@?ADA̾z¿ nqux{IGA?@??@??@??@?nk`ۙ?@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@?ADAz¿ quz}͵EC??@??@??@??@??@??@?t}l?@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@?NMIՕz¿ t{͵?@??@??@??@??@??@??@?EC?bZS?@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@?|z¿ yܴnk`ADASNH?@??@??@??@??@??@??@??@?ADA?@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@?s}zz¿ xۀ|qIGA^VO?@??@??@??@??@??@??@??@?ADA?@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@?\b_z¿ tzџ?@??@??@??@??@??@??@?MKGhbT?@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@?ttlz¿ pty}ҺQPM?@??@??@??@??@??@?u?@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@?IGAЕz¿ qqtxz}ͱEC??@??@??@?EC?p壥?@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@?ADAz¿ pnqsvy{}wgtpeɼEC??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@?EC?Ϩz¿ oqnpruxz}tpe?@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@?IGAz¿ npqnprtvz{ıTSP?@??@??@??@??@??@??@??@??@??@??@??@??@??@??@??@?zy¿ lnpqtprtvy{nk`IGA?@??@??@??@??@??@??@??@??@??@??@??@??@??@?MKGϾ}x¿ jlnpqqtqtvy{奡MKG?@??@??@??@??@??@??@??@??@??@??@??@??@?yyk٤{v嵐¿ hklnpqqtvsux{}ıIGATPK?@??@??@??@??@??@??@??@??@??@?QPMzEC?zu¿ giklnppqnqrtvy{{}˶xqdҺNMIADA?@??@??@??@??@?MKG`\VϾxs뤡¿ fhiklnoqqtpqsuvyz{}ʬPPG?@?v{vq줡¿ efhiklnopmqnqrtuvxz{}?@??@?TPKݰytp뤡¿ defhiklnnpqqtnvrtuvxz{}v?@??@?LIKХzurn褡¿ bdefhikkmnoqmqtpvrtuvyz}Ҷ}lNMIܤ}zurnm椡¿ fbdefhhjkmnnppqqntvrtuxy{}٥{yurtqp椡¿ ffbdefghjklmnopqqnnpqrtvxz{{xtrnqqn䤡¿ effbdeeghikkmnnppqqntpqstvy{}zxtqtqqnm⤡¿ ceefhddefhhjklmnnpqqqntqrtuxz}zvtvnqqnmkड¿ cceeffddefghijklmnopqqqttqrtvy}zvsqtqpnmkiޭ bcceefbbdeefhhikklmnopqmqtpvrux{}zxtrpqqpnmkih¿ abccceffbddefghhikklmnopqqqtprsuvvvtrptqqonlkihf aabbcceeffbddefghhikklmnnppqqnntqqpntqqpnmkjhhfe aaabbcceeffhddeefghhijklmnnopqqmqqqqqpnnlkihgeed fraqtive-0.4.8.1/installer/images/wizard.bmp 0000664 0000000 0000000 00000455656 14401322236 0020767 0 ustar 00root root 0000000 0000000 BM[ 6 ( : x[ ĿÿÿĽĽþúºĽĽýÿĽľľľľĿľĿÿǿȾŻź``aaaabba_}aa_~abccbcddddbdecdbdcdeefffggggffghihjjijjjkkklkjlmmnmmmmnmmnnmlmmllklkkjjiiihhhhfggffffffӟ`aaaabbbb`cb_~bc`b`ddddeeeefecdegfdfggggggghiijjjkjkkkkllmlmmmnmnnmoooononnonnmmlllkkjjiiiihhgggfffffԟ`|aaabbbab`~ba_bcccddddedeeffdbcgggggghhgefhijjkkkkkkkkllmmmmnnmnpppppppppppoonnnmmlllkkjiiiihhgggffff՟_|a~aabbbb_~_^}]~_b`deddeeeacecffcfghhhhhhghhhijkkklllljllmmnnooopppqrrqqqqqrrrqpoononmmllkjijiiihhhggfff՟a`aaabbbbba^~^~a`dedeeeddaeffebfghhhhhhhiiijkkllllljmmmnnnooppqrrsstttttssssrqqqpoonnmllkkkjiiiihhgggf֟aaaaabb_ccaa`bcdeeeefebedffcccgihhfiiiijjkklllllmmmnnnoopqqrrsttuvvvvvvvttrssrqqponnnmlkkkjjiiihhgggןaaaabbbccc_cdbbbdedefeffgggfeeghhgiiijijjkllmmnmnmnnoppqqqrstuvwwxyyxwyxwvuuutsrqqponmmmlkkkjiiihhgg؟aaabbcc_cccbdddbdeeeeffghhhhfhhfggfjjjjjkkljmmnnnnoopqqqrstuuvwyzz||}|{zzxwwvutsrqqponnnmlklkjiiihhgٟabbbbcbbbcddeeedeeefeffghhhhhfhghgijjjkkllllmmnnoopppqrsstuuwxy{{~~~}{zyxwvttsrqpponnmlllkjiiihhڟabbbcc_adddeeeeeeeefedgghhhfhjijjjjjkklklmmmnnoooppqrrsttuvwyy{}}|zywvutsrqqponnmmllkjiiih۟bbabbbcccaeedeeeefeefgegehhfijjjkkkkllllmmnnnooppqrrsstuvwxyz|}}{ywwutsrqqpoonnmllkjiii۟babbbccddbdeebeffeffghheghhfgikkkkllllmmnnoooppqrrrsttuvwxyz|}}{zxwvttsrqpponnmllkjiiܟbbbbcccdddbadcffefffgghhijjjkklkllllmmnnnnoopqqrrsstuuvwxy{}~}|zxwvttsrqqpoonmllkjiݟbbbcccdddaa`defeffggghhiijjjklllklmmnnnnoopqqrrrstuvvwxyzz}~}|zywvutsrrqpoonmllkjޟbbcbcccdd``dbefffgggghijjjjhhllmmnnooooopqqqrrstuuuvxyyz{|~}|zywvutsrrqpoonmllkߟbbbbcccddaddbeffffgghhijjkkhhlmnnnoppoppqqqrsttuuvwxyy{||~}|zywwutsrrqpoonllkbbbcccdddcedeeffgghhiijjklkiimnonnppqpqqqrssttuvwxxyz{|}~}|zyxwuttrrqponmllbbcccdddeedeeffgghhiijkklmmimooolopqrrqrssttuvwwxyz{{|~}|zyxwvttrrqponmlbcccdddeeeeeffgghhhijkklmnnkopppopqqqrrstttuvwxxy{{|}Χڼ}}{zxwvutrrqoonm⟟cccdddddeeeffgghhhijjklmnnnooqppqqrrrstttuvwwxyzz|}~Էmk_wuj~}{zyxvutrrpoom㟟ccdddddeeeffggghiijjkllmnopppqqoqrrssttuvvwxyzz{|~~ױԪȢ`aYJKGUVR¦~|{yxvusrqpon㟟cdddddeeefgggghiijkkklmmoppoprqrrststuvvvwxyz{|}~ݽwveUUMIKF?@>JKF^\T~}zyxvusrqoo䟟dddddeeeffgghhiijjkklmmnppppqqrstttuvvvwxyyz{|}~Ϻ\YR?@>?@>?@>?@>HEA[TMɻ}{ywutrrpo䟟eeedeeefffghhijjjkklmnnoqrqorssstuvvvwxyyz{|}}ॉxZSL?@>?@>?@>?@>?@>WVP~~v}{xwusrqp域eeeeeeeffghhijjjkllmmnoprrrrsstuvuvwxxyz{||}~`VNEB??@>?@>?@>GEI_[\Ʊ|zxvusrp柟eedeefffghhiijjklmmmnopqqrrstuuvvwxxyz{||}~ƤnUWKCH@?@>JIE^ZZɬ~{ywutrq矟ebeefffghhiijkkllmnnoppqrstuuvwwwxyz{||}~έԱίyvǵu\CH@>@>JIEŸ߾̻|zxvusr矟eeefffghhiijklllmnoppqqrstuvwwxyyz{{|}~窛ܿßx~m]`cYVXOUZRY`TNTICH@?@=JIEUUN`aZff`qnrmĵxpkhb~~{xwutr矟fffffghhiijkkllmnoppqrsttuwwxyz{{|}}~~߽˾{m^wzp˚\`QVQIKKFJKF>@=>@=?@=>@=?@>>@>?@>?@>?@>GC@GC@ROJQNJ|`SZZNٻ|zxuts蟟ffffghhiijkllmmnoppqrssuvvxyz{|}}~~瓇zmcWSKCa`ZhtfOWLEKA>@=>@=>@=>@=>@>?@=?@>>@>?@>?@>?@>?@>?@>?@>?@>EB?EB?SWLyiz|x̝~ڰʧ}{xvus韟effghhhijkllmnooopqrstuvwyy{|}ԵjQOIKMJm`KNK>@=>@=>@=>@=>@=>@=>@=>@=?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>CH@DKAXbVf`X[NFnWKȑp~{ywut韟ffgghhijkklmnoopqrrstuvxyz|}̳]ZRBBFCBFCBF>@=>@=>@=>@=>@=>@=>@=>@>>@=?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>IKHJKHJKH?@?VJDoд|zxutffghhijjklmnoopqrrstvvxy{|~̧žTVP>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=?@>?@=?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>UQMt}{xvufgghijkklmnnopqqrstuvxy{|ѽԶѻx_WNIKF>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@=>@=>@=>@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>YZWý~{ywugghijjklmnnopqqrtuuvxy{|ݘwuiZu`YSLHD?>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@>>@=?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@??@>RWUöƬ~{ywu럟ghijjklmnnopqqsttuwxy{|~£_TNDB>EB>>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@=>@>>@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@?IKIkf]ջ~|zxu럟hhijklmnnopqrsttvwxy{|~Ϻ`YQ>@<>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@>>@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@??@?VTNַ|zxv쟟hijjlmnnoqqrstuvwxy{|~ֲ̥ȫURM>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@>>@>>@>>@>>@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@?JMJ[cTuxnҭ}{xv쟟ijjkmnnopqrttuwwxz{|~ѯ]UIIHB>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@>>@>>@>>@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@??@>?@>@A?JMJkne}{xw쟟ijklmnopqsttvwxyz{}~ɶkj\JHB>@<>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@?UVT~{xw쟟jklmnopqstuvwxz{|}~ś~uѼɭeh]de]Ƽ|vǬUSJ>?<>@<>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@>>@>>@>>@>>@>>@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@?`a]~{ywퟟjlmnoprstvwxyz{}}twhkf^hhcTVNHJDHKETTLTUL`bVik`IJE>?<>?<>?=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@??@??@?VVRɹ~{ywퟟkmmoprstvwyy{|}SRPGFGGFG=?<=?;=?<=?<=??<>?<>@=>?=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@>>@=>@>>@>>@>?@>>@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@??@??@?VWQnxu~{ywퟟlmoprsuvxy{|}ٷ[bSHJC=?;=?<=?;=?;=?<=?<=?<=?<>A?<>?<>?<>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@>>@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@??@??@??@?UQKî~{yxퟟlnorsuwy{|~w}kXZJEJ?=?;=?;=?<=?;=?<=?<=?<=?<=?<=?<>?@<>@<>?<>?<>?<>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@=>@>>@>>@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@??@>?@>?@?_]V~{yxퟟmoqsuxy{~ͶGJD=?;=?;=?;=?<=?<=?<=?;=?<=?<=?<=?<=??<>?<>?<>?<>?=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@>>@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@??@>?@??@??@?_ZRĶ}{yxퟟnprux{}hn]GJC=?;=?;=?;=?;=?;=?<=?<=?<=?<=?<=?<=?<=??<>?<>?<>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@>>@>>@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@??@>?@?GB@ca]}{yxퟟoqtx~ӪٵʤШRVJ=?;=?;=?;=?;=?<=?;=?<=?<=?<=?<=?<=?<=?<=?<=?<>?<>?<>?<>?<>?<>?<>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@>>@=>@>>@>>@>>@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>JKHYYV}{yxퟟorv}ƮkeT__S^`PRVIFJA=?;=?;=?;=?;=?<=?;=?<=?;=?<=?<=?<=?<=?<=?<=?<=?<>?<>?<>?<>?=>@<>@=>@<>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@>>@=>@>>@>>@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>HKJ[a`̾}{yxퟟpswѐyYaMHG?=?;=?;=?;=?;=?;=?;=?;=?<=?;=?;=?<=?<=?<=?<=?<=?<=?<=?<=?<=?<=?<>?<>?<>?<>@<>?=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@=>@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>RWUǷ}{yxퟟpsw~{ѐyYbMHG>=?;=?;=?;=?;=?;=?;=?;=?<=?;=?;=?<=?<=?<=?<=?<=?<=?<=?<=?<=?<=?<=?<>?<>?<>?=>@=>?<>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@=>@>>@>>@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@??@??@?RWUǷ}{yxퟟoru{퀷ǭkcQ`^P^`PRVIFJA=?;=?;=?;=?<=?;=?<=?<=?<=?<=?<=?<=?<=?<=?<=?<=?<=?<=?<=?<>?<>?<>?=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@>>@>>@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@??@??@?HKJ[a`̾}{yxퟟnqtx{ЧʞʤШRVI=?;=?;=?;=?;=?<=?<=?;=?<=?<=?<=?<=?<=?<=?<=?<=?<=?<=?<=?<>?<>?=>?=>?=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@>>@>>@>?@>?@>?@>?@>?@>?@>?@>?@>?@??@??@??@??@?JKHYYV}{yxퟟnprux{}߸gm]GJC=?;=?;=?;=?;=?<=?;=?<=?<=?<=?<=?<=?<=??<>?<>?<>?=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@=?@>?@>?@>?@>?@>?@>?@>?@>?@??@>?@??@??@??@??@?GB@ca]}{yxퟟmoqsvxy{~ͶGJC=?;=?;=?;=?;=?<=?<=?<=?<=?<=?<=?<=??<=?<=?<>?<>?=>?=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@=>@>>@>?@>?@>?@>?@>?@>?@>?@>?@>?@??@??@??@??@?@@??@??@?_ZRʿ}{yxퟟlnorsuwxz|~w}jYZJEJ@=?;=?;=?<=?<=?<=?;=?<=?<=?<=?<>?@<=?<=?<=?<>?<>?=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@>>@=?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@??@??@??@??@?@@?@@?_\VŦť~{yxퟟlmoprsuvxy{|}ܷ[bRHJC=?;=?<=?<=?<=?<=?<=?<=?<>A?<=?=>?=>?=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@??@?????>>@??@@??@??@?UPK¢ׯ~{yxퟟklmoprrtuwyy{|}SROFFFFFF=?;=?<=?<=?<=??<>?=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=?@=?@=?@>?@>?@>?@>?@>?@>?@>????@????????????@??????>?????UVQoxm~{yxퟟjllnoprrtuvxyz{}}vwfjf^hhcSVNHJDHKDTTKTUK`bVik`IJE=?<=?=>?=>?<>?=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=?@=>@>?@>?@>?@>?@>?@>?@>?@>?@>????????@??@??@??@??@?>???>?>?UUR˲ȱ~{ywퟟikllnopqrsuvwxyz|}~ś~uѻɬeh]de]Ƽ|vǬUSJ=?<=?<>?=>?=>?=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=?@=?@=>@>?@>?@>?@>?@>?@>?@>?@>>??@@?@????????@??@?@@????????`a^~{ywퟟijklmnnpqsstvvxyz{}~ȶkj\IHB>?=>?<>?=>?=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=>@=?@=>@=?@>?@>?@>?@>?@>?@>?@>?@>???????>??>?@?@@@?@@?@@????UVT~{xw쟟iijklmnnpqrstuwwxzz|}Я]UIIHB>?=>?<>?=>@=>@=>@=>@=>@=>?>>?>>?>>@>>@>?@>>@>>@>>@>>@>?@>?@>?@>?@>?@>?@>?@>?@?>>>>????????@?@@@????@A?JMJlne}{xw쟟hhijklmnopqrssuvwxyz|~ֲ̤ǫURM>?<=?=>?=>@=>@=>@=>@=>?=>?=>>>??>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@????????>??>???@??@???JMJ[cUuxnҭ}{xv쟟ghhjkklmnooprsstvwxy{|~Ϲ`YQ=?==?=>?=>@=>@=>@=>@=>?=>>>===??>?@>??>?>??@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@???????????????@??@???VTNַ|zxv쟟ghhijkllmnoopqsttuwwyz|}£_TNDB>DB>>?=>@=>@=>@=>@=>?=>?=??>??>?@>?>??????>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@????>??@@?@????????HJJkf]ջ~|zxu럟fghhijkllmnoppqrstuvwyz|~ݗwuiZt`YSLGD?>@=>@=>@=>@=>@=>@=?@>???????>?>>??@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@>?@??@??@??@?@??>???>>QVUöƭ~{ywu럟efghhijkllmnoopqrstuvwyz|~ѽԶѻx_WNIKF>@=>@=>@=>?=>?>??????>>?????????>?@>?@?>???@>?@>?@>?@>?@>?@>?@??@??@?@@??@?>>???????YYVĽ~{ywueefghiijkllmnoppqrstuvwy{|}˧žTVP>@=>@=>@=>?=>>??>?????>??>??>?>>???????????@>?@>?@>?@>?@>???????@?@@?@?????>?>>>>>?>UPMt}{xvueeffghiijkllmnopqqrsstvwxz{}̳\ZRBBFBBFCBF>?=>?=>?>>=>>=?>=?>>???@???>???@??@??@>?@>?@>???>>>?>????@@??>?IIHIIHIJI?>?VIDoд|zxutdeefgghiijklmmnnopqqrstvwxy{|}~ԴjPOIKMJm`KNK>@=>@=>?>>>?==>??>>??????>?????@??@>?@>?@>?@??>????>>????DHADJBXaWf_Y[MGnVLɑq~{ywut韟ddeefgghiijklmmmnoppqrstuvwxz{||}~~蒇zmcWSJC``YhtfOWLEKA>?=??>??>>?>??>??>>=>???@??@???@??@>?@???????E@@EA@SVMyjz}y̝ڰʨ}{xvus韟ddeeefgghijjkllmmnopqqrsttvwxxyz{|||}~˾zm^wzp˚\`QVQIKKGJKF??>>>>?>?>>??>??>?@???@??@?GC@GC@RNJQMJ|_TZYOڻ|zwuts蟟cddeeefgghijjkklmmnoopqqrttuvwxxyyz{|}}~檛ܿßx~m^`cYVXOVYTY`UNSJCGA???JIEVUO`aZfe`rnqmöwqkgc~{xwutr矟ccddefffgghijjjklmmmnopqqrstuuvwwxyyz{|}~~έԱίywǶv]DHA???JIFŹ߾̼|zxvusr矟cccddefefgghijjjklmmmnoppqqrstuuvvwxyzz{|}~~ǥoUVLDHA??@JHF_Z[ʬ}{ywutrq矟bccdddeffggghiijjkklmnnnopqqrrstuuvvwxyzz{|}~~`VOFB@????>????GDJ_[]IJ|zxvusrp柟bbccdddefffgghiijjjklmmmnoopqrrrstuuvwwxyz{{|}~᥉yZSM?@?@??@?@??????VUQ~}w}zxwusrqp域bbbccdddeffggghhijjjkllmnnnoppqrrrstuuvvwxyz{{}~λ\XS@??@??@???>?HCA[SNɼ}zyvutrrpo䟟abbbccdddeffggghhijjjkklmmnonopqqrssstuuvwwxyz{|~ܽxvgVUNJJF>>>JJG]ZU~}zyxvtsrqoo䟟abbbcccdddeefgfghhiijkkkllmnnopppqqrssttuvwxxyz{|}~ױԫʣabYJJHTTR~|{yxvusrqpon㟟bbbbcbccdddeeffggghiijjkkllmmnnopppqqrsstuuvwxxyz||}Էmk_xvj~}{zyxvutrrpoom㟟abbbbbccccddeeffggghhiijkklllmmnooppqqqrsttuuvwxyz{||~Χۻ}}{yxvvutrrqoonm⟟aabbbbccccdddeefffggghiijjkklllmmnoopqqqrrstuuvwxyyz{|}~}|zyxwvttrrqponmlaaabbbbcccddddeeffgggghhiijkklllmmnnoopqqqrrsttuvwxyyz|}}}|zyxwutsrrqponmll`aaabbbcccdccdddeeffgghghiijjkkllmmmnnoopqqqrssttvvwxyz{|}~}|zywwuusrrqpoonllk``aaabbbccccccdddeeffgghhhhiijjkklllmmnnopppqqrsttuvwxyz{{}~}|zywvutsrrqpoonmllkߟ```aaabbbcccccccddeeeffgghhhhiijjkklllmmnnoppqqrrstuuvwxyz{}~}|yywvutsrqqpoonmllkjޟ_```aaabbbbccccccdddeeffgghhiiiijjjklllmmnnnoppqqrrstuvvwxz{}~}|yxwvttsrqqpoonmllkjiݟ__```aaabbbbccccdddddeeeffgghhiiiijjkkllmmmnnoopqqrrsstuvwxyz|~}{yxvvtssrqppoonmllkjiiܟ___```aaaabbbccccdddeddeeffggghhiiijjjkkllmmnnnoopqqrrstuvvwy{|~~|{xwvutsrqpponnnmllkjiii۟____```aaaabbbbcccddddeeefeffgghhhiiiijjkkllmmnnooopqqrsstuvwxz|~~}{zxwuussrqqponnmmllkjiiih۟____`````aaabbbbcccddddeeeeffffgghhiiijjjkkkllmmnnooopqrrsstvwxz{}~~}|zyxwvutssrqpponnmlllkjiiihhڡ______````aaaabbbccccdddeeeeffffggghhiiijjkjkkllmmnnooppqrsstuvwxy{{||{yyxvvuttrrqpponnnmlllkjiiihhg٧_____`````aaaaabbbbcccddddeeeefeffggghhiiijjkkkkllmmnoopppqrsttuvwxxyxxwwvuttsrqqpponnmmllkkjiiihhggز^______```a`aaaabbbbccccddddeeefffffggghhiiijjkkklllmmnnoppqqrrstuuuuuuutssrrqqpoonmnmlllkjjiiihhggg^^_____```aa``aaaabbbbcccddddeeeeefgffgghhhhiijjkkllllmmnnoopqqrqrrsssssrrqqqpoonnmmllkkjjiiiihhgggf^^^____````a``aaaaabbbbccccddddeeeffffggghhhhhiijjkkkllmmnmnnooppqqqqqqqpppoonnnmlmlkkjjjiiihhhggfff^^^^____`````````aaaabbbbccccddddeeeffffggghhhhiiijjjkklllmmnnnonooppppooonnnnmlllkkkjjiiiihhgggffff]^^^^_____```````aabaabbbbcccccddddeeeefffggghhhhiijjjjjkklllmmmnnnnnnnnmmnmmllkkkjjjjiiiihhgggfffff]]^^^^_____`````a`aaaabbbbbbcccccddddeeeefffggghhhiiiijjjkjkkkllllllmmmmmlllkkkkjjjjiihhhhhgggffffff fraqtive-0.4.8.1/installer/include/ 0000775 0000000 0000000 00000000000 14401322236 0017120 5 ustar 00root root 0000000 0000000 fraqtive-0.4.8.1/installer/include/multiuser64.nsh 0000664 0000000 0000000 00000033326 14401322236 0022044 0 ustar 00root root 0000000 0000000 /**************************************************************************
* This file is part of the Fraqtive program
* Copyright (C) 2004-2012 Michał Męciński
*
* This file is based on MultiUser.nsh
* Copyright (C) 2008-2009 Joost Verburg
*
* 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 .
**************************************************************************/
!ifndef MULTIUSER_INCLUDED
!define MULTIUSER_INCLUDED
!verbose push
!verbose 3
;Standard NSIS header files
!ifdef MULTIUSER_MUI
!include MUI2.nsh
!endif
!include nsDialogs.nsh
!include LogicLib.nsh
!include WinVer.nsh
!include FileFunc.nsh
;Variables
Var MultiUser.Privileges
Var MultiUser.InstallMode
;Command line installation mode setting
!ifdef MULTIUSER_INSTALLMODE_COMMANDLINE
!include StrFunc.nsh
!ifndef StrStr_INCLUDED
${StrStr}
!endif
!ifndef MULTIUSER_NOUNINSTALL
!ifndef UnStrStr_INCLUDED
${UnStrStr}
!endif
!endif
Var MultiUser.Parameters
Var MultiUser.Result
!endif
;Installation folder stored in registry
!ifdef MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_KEY & MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME
Var MultiUser.InstDir
!endif
!ifdef MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_KEY & MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME
Var MultiUser.DefaultKeyValue
!endif
;Windows Vista UAC setting
!if "${MULTIUSER_EXECUTIONLEVEL}" == Admin
RequestExecutionLevel admin
!define MULTIUSER_EXECUTIONLEVEL_ALLUSERS
!else if "${MULTIUSER_EXECUTIONLEVEL}" == Power
RequestExecutionLevel admin
!define MULTIUSER_EXECUTIONLEVEL_ALLUSERS
!else if "${MULTIUSER_EXECUTIONLEVEL}" == Highest
RequestExecutionLevel highest
!define MULTIUSER_EXECUTIONLEVEL_ALLUSERS
!else
RequestExecutionLevel user
!endif
/*
Install modes
*/
!macro MULTIUSER_INSTALLMODE_ALLUSERS UNINSTALLER_PREFIX UNINSTALLER_FUNCPREFIX
;Install mode initialization - per-machine
${ifnot} ${IsNT}
${orif} $MultiUser.Privileges == "Admin"
${orif} $MultiUser.Privileges == "Power"
StrCpy $MultiUser.InstallMode AllUsers
SetShellVarContext all
!if "${UNINSTALLER_PREFIX}" != UN
;Set default installation location for installer
!ifdef MULTIUSER_INSTALLMODE_INSTDIR
!ifdef MULTIUSER_USE_PROGRAMFILES64
StrCpy $INSTDIR "$PROGRAMFILES64\${MULTIUSER_INSTALLMODE_INSTDIR}"
!else
StrCpy $INSTDIR "$PROGRAMFILES\${MULTIUSER_INSTALLMODE_INSTDIR}"
!endif
!endif
!endif
!ifdef MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_KEY & MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME
ReadRegStr $MultiUser.InstDir HKLM "${MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_KEY}" "${MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME}"
${if} $MultiUser.InstDir != ""
StrCpy $INSTDIR $MultiUser.InstDir
${endif}
!endif
!ifdef MULTIUSER_INSTALLMODE_${UNINSTALLER_PREFIX}FUNCTION
Call "${MULTIUSER_INSTALLMODE_${UNINSTALLER_PREFIX}FUNCTION}"
!endif
${endif}
!macroend
!macro MULTIUSER_INSTALLMODE_CURRENTUSER UNINSTALLER_PREFIX UNINSTALLER_FUNCPREFIX
;Install mode initialization - per-user
${if} ${IsNT}
StrCpy $MultiUser.InstallMode CurrentUser
SetShellVarContext current
!if "${UNINSTALLER_PREFIX}" != UN
;Set default installation location for installer
!ifdef MULTIUSER_INSTALLMODE_INSTDIR
${if} ${AtLeastWin2000}
StrCpy $INSTDIR "$LOCALAPPDATA\${MULTIUSER_INSTALLMODE_INSTDIR}"
${else}
!ifdef MULTIUSER_USE_PROGRAMFILES64
StrCpy $INSTDIR "$PROGRAMFILES64\${MULTIUSER_INSTALLMODE_INSTDIR}"
!else
StrCpy $INSTDIR "$PROGRAMFILES\${MULTIUSER_INSTALLMODE_INSTDIR}"
!endif
${endif}
!endif
!endif
!ifdef MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_KEY & MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME
ReadRegStr $MultiUser.InstDir HKCU "${MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_KEY}" "${MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME}"
${if} $MultiUser.InstDir != ""
StrCpy $INSTDIR $MultiUser.InstDir
${endif}
!endif
!ifdef MULTIUSER_INSTALLMODE_${UNINSTALLER_PREFIX}FUNCTION
Call "${MULTIUSER_INSTALLMODE_${UNINSTALLER_PREFIX}FUNCTION}"
!endif
${endif}
!macroend
Function MultiUser.InstallMode.AllUsers
!insertmacro MULTIUSER_INSTALLMODE_ALLUSERS "" ""
FunctionEnd
Function MultiUser.InstallMode.CurrentUser
!insertmacro MULTIUSER_INSTALLMODE_CURRENTUSER "" ""
FunctionEnd
!ifndef MULTIUSER_NOUNINSTALL
Function un.MultiUser.InstallMode.AllUsers
!insertmacro MULTIUSER_INSTALLMODE_ALLUSERS UN .un
FunctionEnd
Function un.MultiUser.InstallMode.CurrentUser
!insertmacro MULTIUSER_INSTALLMODE_CURRENTUSER UN .un
FunctionEnd
!endif
/*
Installer/uninstaller initialization
*/
!macro MULTIUSER_INIT_QUIT UNINSTALLER_FUNCPREFIX
!ifdef MULTIUSER_INIT_${UNINSTALLER_FUNCPREFIX}FUNCTIONQUIT
Call "${MULTIUSER_INIT_${UNINSTALLER_FUNCPREFIX}FUCTIONQUIT}
!else
Quit
!endif
!macroend
!macro MULTIUSER_INIT_TEXTS
!ifndef MULTIUSER_INIT_TEXT_ADMINREQUIRED
!define MULTIUSER_INIT_TEXT_ADMINREQUIRED "$(^Caption) requires administrator priviledges."
!endif
!ifndef MULTIUSER_INIT_TEXT_POWERREQUIRED
!define MULTIUSER_INIT_TEXT_POWERREQUIRED "$(^Caption) requires at least Power User priviledges."
!endif
!ifndef MULTIUSER_INIT_TEXT_ALLUSERSNOTPOSSIBLE
!define MULTIUSER_INIT_TEXT_ALLUSERSNOTPOSSIBLE "Your user account does not have sufficient privileges to install $(^Name) for all users of this compuetr."
!endif
!macroend
!macro MULTIUSER_INIT_CHECKS UNINSTALLER_PREFIX UNINSTALLER_FUNCPREFIX
;Installer initialization - check privileges and set install mode
!insertmacro MULTIUSER_INIT_TEXTS
UserInfo::GetAccountType
Pop $MultiUser.Privileges
${if} ${IsNT}
;Check privileges
!if "${MULTIUSER_EXECUTIONLEVEL}" == Admin
${if} $MultiUser.Privileges != "Admin"
MessageBox MB_OK|MB_ICONSTOP "${MULTIUSER_INIT_TEXT_ADMINREQUIRED}"
!insertmacro MULTIUSER_INIT_QUIT "${UNINSTALLER_FUNCPREFIX}"
${endif}
!else if "${MULTIUSER_EXECUTIONLEVEL}" == Power
${if} $MultiUser.Privileges != "Power"
${andif} $MultiUser.Privileges != "Admin"
${if} ${AtMostWinXP}
MessageBox MB_OK|MB_ICONSTOP "${MULTIUSER_INIT_TEXT_POWERREQUIRED}"
${else}
MessageBox MB_OK|MB_ICONSTOP "${MULTIUSER_INIT_TEXT_ADMINREQUIRED}"
${endif}
!insertmacro MULTIUSER_INIT_QUIT "${UNINSTALLER_FUNCPREFIX}"
${endif}
!endif
!ifdef MULTIUSER_EXECUTIONLEVEL_ALLUSERS
;Default to per-machine installation if possible
${if} $MultiUser.Privileges == "Admin"
${orif} $MultiUser.Privileges == "Power"
!ifndef MULTIUSER_INSTALLMODE_DEFAULT_CURRENTUSER
Call ${UNINSTALLER_FUNCPREFIX}MultiUser.InstallMode.AllUsers
!else
Call ${UNINSTALLER_FUNCPREFIX}MultiUser.InstallMode.CurrentUser
!endif
!ifdef MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_KEY & MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME
;Set installation mode to setting from a previous installation
!ifndef MULTIUSER_INSTALLMODE_DEFAULT_CURRENTUSER
ReadRegStr $MultiUser.DefaultKeyValue HKLM "${MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_KEY}" "${MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME}"
${if} $MultiUser.DefaultKeyValue == ""
ReadRegStr $MultiUser.DefaultKeyValue HKCU "${MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_KEY}" "${MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME}"
${if} $MultiUser.DefaultKeyValue != ""
Call ${UNINSTALLER_FUNCPREFIX}MultiUser.InstallMode.CurrentUser
${endif}
${endif}
!else
ReadRegStr $MultiUser.DefaultKeyValue HKCU "${MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_KEY}" "${MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME}"
${if} $MultiUser.DefaultKeyValue == ""
ReadRegStr $MultiUser.DefaultKeyValue HKLM "${MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_KEY}" "${MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME}"
${if} $MultiUser.DefaultKeyValue != ""
Call ${UNINSTALLER_FUNCPREFIX}MultiUser.InstallMode.AllUsers
${endif}
${endif}
!endif
!endif
${else}
Call ${UNINSTALLER_FUNCPREFIX}MultiUser.InstallMode.CurrentUser
${endif}
!else
Call ${UNINSTALLER_FUNCPREFIX}MultiUser.InstallMode.CurrentUser
!endif
!ifdef MULTIUSER_INSTALLMODE_COMMANDLINE
;Check for install mode setting on command line
${${UNINSTALLER_FUNCPREFIX}GetParameters} $MultiUser.Parameters
${${UNINSTALLER_PREFIX}StrStr} $MultiUser.Result $MultiUser.Parameters "/CurrentUser"
${if} $MultiUser.Result != ""
Call ${UNINSTALLER_FUNCPREFIX}MultiUser.InstallMode.CurrentUser
${endif}
${${UNINSTALLER_PREFIX}StrStr} $MultiUser.Result $MultiUser.Parameters "/AllUsers"
${if} $MultiUser.Result != ""
${if} $MultiUser.Privileges == "Admin"
${orif} $MultiUser.Privileges == "Power"
Call ${UNINSTALLER_FUNCPREFIX}MultiUser.InstallMode.AllUsers
${else}
MessageBox MB_OK|MB_ICONSTOP "${MULTIUSER_INIT_TEXT_ALLUSERSNOTPOSSIBLE}"
${endif}
${endif}
!endif
${else}
;Not running Windows NT, per-user installation not supported
Call ${UNINSTALLER_FUNCPREFIX}MultiUser.InstallMode.AllUsers
${endif}
!macroend
!macro MULTIUSER_INIT
!verbose push
!verbose 3
!insertmacro MULTIUSER_INIT_CHECKS "" ""
!verbose pop
!macroend
!ifndef MULTIUSER_NOUNINSTALL
!macro MULTIUSER_UNINIT
!verbose push
!verbose 3
!insertmacro MULTIUSER_INIT_CHECKS Un un.
!verbose pop
!macroend
!endif
/*
Modern UI 2 page
*/
!ifdef MULTIUSER_MUI
!macro MULTIUSER_INSTALLMODEPAGE_INTERFACE
!ifndef MULTIUSER_INSTALLMODEPAGE_INTERFACE
!define MULTIUSER_INSTALLMODEPAGE_INTERFACE
Var MultiUser.InstallModePage
Var MultiUser.InstallModePage.Text
Var MultiUser.InstallModePage.AllUsers
Var MultiUser.InstallModePage.CurrentUser
Var MultiUser.InstallModePage.ReturnValue
!endif
!macroend
!macro MULTIUSER_PAGEDECLARATION_INSTALLMODE
!insertmacro MUI_SET MULTIUSER_${MUI_PAGE_UNINSTALLER_PREFIX}INSTALLMODEPAGE ""
!insertmacro MULTIUSER_INSTALLMODEPAGE_INTERFACE
!insertmacro MUI_DEFAULT MULTIUSER_INSTALLMODEPAGE_TEXT_TOP "$(MULTIUSER_INNERTEXT_INSTALLMODE_TOP)"
!insertmacro MUI_DEFAULT MULTIUSER_INSTALLMODEPAGE_TEXT_ALLUSERS "$(MULTIUSER_INNERTEXT_INSTALLMODE_ALLUSERS)"
!insertmacro MUI_DEFAULT MULTIUSER_INSTALLMODEPAGE_TEXT_CURRENTUSER "$(MULTIUSER_INNERTEXT_INSTALLMODE_CURRENTUSER)"
PageEx custom
PageCallbacks MultiUser.InstallModePre_${MUI_UNIQUEID} MultiUser.InstallModeLeave_${MUI_UNIQUEID}
Caption " "
PageExEnd
!insertmacro MULTIUSER_FUNCTION_INSTALLMODEPAGE MultiUser.InstallModePre_${MUI_UNIQUEID} MultiUser.InstallModeLeave_${MUI_UNIQUEID}
!undef MULTIUSER_INSTALLMODEPAGE_TEXT_TOP
!undef MULTIUSER_INSTALLMODEPAGE_TEXT_ALLUSERS
!undef MULTIUSER_INSTALLMODEPAGE_TEXT_CURRENTUSER
!macroend
!macro MULTIUSER_PAGE_INSTALLMODE
;Modern UI page for install mode
!verbose push
!verbose 3
!ifndef MULTIUSER_EXECUTIONLEVEL_ALLUSERS
!error "A mixed-mode installation requires MULTIUSER_EXECUTIONLEVEL to be set to Admin, Power or Highest."
!endif
!insertmacro MUI_PAGE_INIT
!insertmacro MULTIUSER_PAGEDECLARATION_INSTALLMODE
!verbose pop
!macroend
!macro MULTIUSER_FUNCTION_INSTALLMODEPAGE PRE LEAVE
;Page functions of Modern UI page
Function "${PRE}"
${ifnot} ${IsNT}
Abort
${endif}
${if} $MultiUser.Privileges != "Power"
${andif} $MultiUser.Privileges != "Admin"
Abort
${endif}
!insertmacro MUI_PAGE_FUNCTION_CUSTOM PRE
!insertmacro MUI_HEADER_TEXT_PAGE $(MULTIUSER_TEXT_INSTALLMODE_TITLE) $(MULTIUSER_TEXT_INSTALLMODE_SUBTITLE)
nsDialogs::Create 1018
Pop $MultiUser.InstallModePage
${NSD_CreateLabel} 0u 0u 300u 20u "${MULTIUSER_INSTALLMODEPAGE_TEXT_TOP}"
Pop $MultiUser.InstallModePage.Text
${NSD_CreateRadioButton} 20u 50u 280u 10u "${MULTIUSER_INSTALLMODEPAGE_TEXT_ALLUSERS}"
Pop $MultiUser.InstallModePage.AllUsers
${NSD_CreateRadioButton} 20u 70u 280u 10u "${MULTIUSER_INSTALLMODEPAGE_TEXT_CURRENTUSER}"
Pop $MultiUser.InstallModePage.CurrentUser
${if} $MultiUser.InstallMode == "AllUsers"
SendMessage $MultiUser.InstallModePage.AllUsers ${BM_SETCHECK} ${BST_CHECKED} 0
${else}
SendMessage $MultiUser.InstallModePage.CurrentUser ${BM_SETCHECK} ${BST_CHECKED} 0
${endif}
!insertmacro MUI_PAGE_FUNCTION_CUSTOM SHOW
nsDialogs::Show
FunctionEnd
Function "${LEAVE}"
SendMessage $MultiUser.InstallModePage.AllUsers ${BM_GETCHECK} 0 0 $MultiUser.InstallModePage.ReturnValue
${if} $MultiUser.InstallModePage.ReturnValue = ${BST_CHECKED}
Call MultiUser.InstallMode.AllUsers
${else}
Call MultiUser.InstallMode.CurrentUser
${endif}
!insertmacro MUI_PAGE_FUNCTION_CUSTOM LEAVE
FunctionEnd
!macroend
!endif
!verbose pop
!endif
fraqtive-0.4.8.1/installer/languages/ 0000775 0000000 0000000 00000000000 14401322236 0017443 5 ustar 00root root 0000000 0000000 fraqtive-0.4.8.1/installer/languages/fraqtive_en.nsh 0000664 0000000 0000000 00000000724 14401322236 0022463 0 ustar 00root root 0000000 0000000 LangString NAME ${LANG_ENGLISH} "Fraqtive"
LangString TITLE ${LANG_ENGLISH} "$(NAME) ${VERSION}"
LangString WELCOME_TEXT ${LANG_ENGLISH} "This wizard will guide you through the installation of $(NAME).$\r$\n$\r$\nIf you are upgrading an existing installation of $(NAME), make sure it is not running.$\r$\n$\r$\nClick Next to continue."
LangString FINISH_TEXT ${LANG_ENGLISH} "$(NAME) has been installed on your computer.$\r$\n$\r$\nClick Finish to close this wizard."
fraqtive-0.4.8.1/installer/qt.conf 0000664 0000000 0000000 00000000033 14401322236 0016764 0 ustar 00root root 0000000 0000000 [Paths]
Plugins=../plugins
fraqtive-0.4.8.1/src/ 0000775 0000000 0000000 00000000000 14401322236 0014267 5 ustar 00root root 0000000 0000000 fraqtive-0.4.8.1/src/aboutbox.cpp 0000664 0000000 0000000 00000012573 14401322236 0016626 0 ustar 00root root 0000000 0000000 /**************************************************************************
* This file is part of the Fraqtive program
* Copyright (C) 2004-2012 Michał Męciński
*
* 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 .
**************************************************************************/
#include "aboutbox.h"
#include "iconloader.h"
#include "xmlui/gradientwidget.h"
#include
#include
#include
#include
#include
AboutBox::AboutBox( const QString& title, const QString& message, QWidget* parent ) : QDialog( parent )
{
setAttribute( Qt::WA_DeleteOnClose, true );
setWindowTitle( title );
QVBoxLayout* topLayout = new QVBoxLayout( this );
topLayout->setMargin( 0 );
topLayout->setSpacing( 0 );
XmlUi::GradientWidget* promptWidget = new XmlUi::GradientWidget( this );
topLayout->addWidget( promptWidget );
QHBoxLayout* promptLayout = new QHBoxLayout( promptWidget );
promptLayout->setSpacing( 10 );
QLabel* promptPixmap = new QLabel( promptWidget );
promptPixmap->setPixmap( QApplication::windowIcon().pixmap( QSize( 48, 48 ) ) );
promptLayout->addWidget( promptPixmap, 0, Qt::AlignTop | Qt::AlignLeft );
QLabel* promptLabel = new QLabel( promptWidget );
promptLabel->setWordWrap( true );
promptLabel->setText( message );
promptLabel->setMinimumWidth( 350 );
promptLayout->addWidget( promptLabel, 1, Qt::AlignTop );
QFrame* separator = new QFrame( this );
separator->setFrameStyle( QFrame::HLine | QFrame::Sunken );
topLayout->addWidget( separator );
QVBoxLayout* mainLayout = new QVBoxLayout();
mainLayout->setMargin( 9 );
mainLayout->setSpacing( 4 );
topLayout->addLayout( mainLayout );
AboutBoxScrollArea* scrollArea = new AboutBoxScrollArea( this );
mainLayout->addWidget( scrollArea );
scrollArea->setBackgroundRole( QPalette::Base );
m_sectionsWidget = new QWidget( scrollArea );
scrollArea->setWidget( m_sectionsWidget );
scrollArea->setWidgetResizable( true );
m_sectionsLayout = new QVBoxLayout( m_sectionsWidget );
m_sectionsLayout->setMargin( 6 );
m_sectionsLayout->setSpacing( 6 );
m_sectionsLayout->addStretch( 1 );
mainLayout->addSpacing( 7 );
QDialogButtonBox* buttonBox = new QDialogButtonBox( QDialogButtonBox::Ok, Qt::Horizontal, this );
mainLayout->addWidget( buttonBox );
buttonBox->button( QDialogButtonBox::Ok )->setText( tr( "&OK" ) );
connect( buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) );
}
AboutBox::~AboutBox()
{
}
AboutBoxSection* AboutBox::addSection( const QPixmap& pixmap, const QString& message )
{
AboutBoxSection* section = new AboutBoxSection( pixmap, message, m_sectionsWidget );
m_sectionsLayout->insertWidget( m_sectionsLayout->count() - 1, section );
return section;
}
AboutBoxSection::AboutBoxSection( const QPixmap& pixmap, const QString& message, QWidget* parent ) : QFrame( parent ),
m_buttonsLayout( NULL )
{
setFrameStyle( Box | Sunken );
initialize();
m_pixmapLabel->setPixmap( pixmap );
m_messageLabel->setText( message );
}
AboutBoxSection::AboutBoxSection( Qt::WindowFlags flags ) : QFrame( NULL, flags ),
m_buttonsLayout( NULL )
{
initialize();
}
void AboutBoxSection::initialize()
{
m_mainLayout = new QHBoxLayout( this );
m_mainLayout->setSpacing( 10 );
m_pixmapLabel = new QLabel( this );
m_mainLayout->addWidget( m_pixmapLabel, 0, Qt::AlignTop | Qt::AlignLeft );
m_messageLabel = new QLabel( this );
m_messageLabel->setWordWrap( true );
m_messageLabel->setOpenExternalLinks( true );
m_mainLayout->addWidget( m_messageLabel, 1, Qt::AlignTop );
}
AboutBoxSection::~AboutBoxSection()
{
}
void AboutBoxSection::setPixmap( const QPixmap& pixmap )
{
m_pixmapLabel->setPixmap( pixmap );
}
void AboutBoxSection::setMessage( const QString& message )
{
m_messageLabel->setText( message );
}
QPushButton* AboutBoxSection::addButton( const QString& text )
{
if ( !m_buttonsLayout ) {
m_buttonsLayout = new QHBoxLayout();
m_buttonsLayout->setSpacing( 6 );
m_mainLayout->addLayout( m_buttonsLayout );
}
QPushButton* button = new QPushButton( text, this );
m_buttonsLayout->addWidget( button, 0, Qt::AlignBottom );
return button;
}
void AboutBoxSection::clearButtons()
{
if ( !m_buttonsLayout )
return;
while ( m_buttonsLayout->count() > 0 )
delete m_buttonsLayout->itemAt( 0 )->widget();
delete m_buttonsLayout;
m_buttonsLayout = NULL;
}
AboutBoxScrollArea::AboutBoxScrollArea( QWidget* parent ) : QScrollArea( parent )
{
}
AboutBoxScrollArea::~AboutBoxScrollArea()
{
}
QSize AboutBoxScrollArea::sizeHint() const
{
int w = 475;
int fw = frameWidth();
return QSize( w, widget()->heightForWidth( w - 2 * fw ) + 2 * fw );
}
fraqtive-0.4.8.1/src/aboutbox.h 0000664 0000000 0000000 00000004123 14401322236 0016263 0 ustar 00root root 0000000 0000000 /**************************************************************************
* This file is part of the Fraqtive program
* Copyright (C) 2004-2012 Michał Męciński
*
* 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 .
**************************************************************************/
#ifndef ABOUTBOX_H
#define ABOUTBOX_H
#include
#include
#include
class AboutBoxSection;
class QBoxLayout;
class QLabel;
class AboutBox : public QDialog
{
Q_OBJECT
public:
AboutBox( const QString& title, const QString& message, QWidget* parent );
~AboutBox();
public:
AboutBoxSection* addSection( const QPixmap& pixmap, const QString& message );
private:
QWidget* m_sectionsWidget;
QBoxLayout* m_sectionsLayout;
};
class AboutBoxSection : public QFrame
{
Q_OBJECT
public:
AboutBoxSection( const QPixmap& pixmap, const QString& message, QWidget* parent );
~AboutBoxSection();
protected:
AboutBoxSection( Qt::WindowFlags flags );
public:
void setPixmap( const QPixmap& pixmap );
void setMessage( const QString& message );
QPushButton* addButton( const QString& text );
void clearButtons();
private:
void initialize();
private:
QBoxLayout* m_mainLayout;
QBoxLayout* m_buttonsLayout;
QLabel* m_pixmapLabel;
QLabel* m_messageLabel;
};
class AboutBoxScrollArea : public QScrollArea
{
Q_OBJECT
public:
AboutBoxScrollArea( QWidget* parent );
~AboutBoxScrollArea();
public: // overrides
QSize sizeHint() const;
};
#endif
fraqtive-0.4.8.1/src/abstractjobprovider.h 0000664 0000000 0000000 00000002162 14401322236 0020512 0 ustar 00root root 0000000 0000000 /**************************************************************************
* This file is part of the Fraqtive program
* Copyright (C) 2004-2012 Michał Męciński
*
* 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 .
**************************************************************************/
#ifndef ABSTRACTJOBPROVIDER_H
#define ABSTRACTJOBPROVIDER_H
class AbstractJobProvider
{
public:
AbstractJobProvider() { }
virtual ~AbstractJobProvider() { }
public:
virtual int priority() const = 0;
virtual void executeJob() = 0;
};
#endif
fraqtive-0.4.8.1/src/abstractview.h 0000664 0000000 0000000 00000003573 14401322236 0017146 0 ustar 00root root 0000000 0000000 /**************************************************************************
* This file is part of the Fraqtive program
* Copyright (C) 2004-2012 Michał Męciński
*
* 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 .
**************************************************************************/
#ifndef ABSTRACTVIEW_H
#define ABSTRACTVIEW_H
class QColor;
class QTransform;
class FractalData;
class Gradient;
class ColorMapping;
class ViewSettings;
class AnimationState;
class AbstractView
{
public:
AbstractView() { }
virtual ~AbstractView() { }
public:
virtual void clearView() = 0;
virtual void transformView( const QTransform& transform ) = 0;
virtual void initialUpdate( const FractalData* data ) = 0;
virtual void partialUpdate( const FractalData* data ) = 0;
virtual void fullUpdate( const FractalData* data ) = 0;
virtual void setColorSettings( const Gradient& gradient, const QColor& backgroundColor, const ColorMapping& mapping ) = 0;
virtual void setGradient( const Gradient& gradient ) = 0;
virtual void setBackgroundColor( const QColor& color ) = 0;
virtual void setColorMapping( const ColorMapping& mapping ) = 0;
virtual void setViewSettings( const ViewSettings& settings ) = 0;
virtual void setAnimationState( const AnimationState& state ) = 0;
};
#endif
fraqtive-0.4.8.1/src/advancedsettingspage.cpp 0000664 0000000 0000000 00000015650 14401322236 0021165 0 ustar 00root root 0000000 0000000 /**************************************************************************
* This file is part of the Fraqtive program
* Copyright (C) 2004-2012 Michał Męciński
*
* 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 .
**************************************************************************/
#include "advancedsettingspage.h"
#include
#include "fractalmodel.h"
AdvancedSettingsPage::AdvancedSettingsPage( QWidget* parent ) : QWidget( parent ),
m_model( NULL ),
m_loading( false )
{
m_ui.setupUi( this );
m_ui.sliderDepth->setScaledRange( 1.5, 4.0 );
m_ui.sliderDetail->setScaledRange( 3.0, 0.0 );
m_ui.sliderHeight->setScaledRange( 0.02, 0.42 );
m_ui.sliderZoom->setScaledRange( 45.0, 10.0 );
}
AdvancedSettingsPage::~AdvancedSettingsPage()
{
}
void AdvancedSettingsPage::setModel( FractalModel* model )
{
m_model = model;
connect( m_model, SIGNAL( generatorSettingsChanged() ), this, SLOT( generatorSettingsChanged() ) );
connect( m_model, SIGNAL( viewSettingsChanged() ), this, SLOT( viewSettingsChanged() ) );
connect( m_model, SIGNAL( viewModeChanged() ), this, SLOT( viewModeChanged() ) );
}
void AdvancedSettingsPage::on_sliderDepth_valueChanged()
{
saveGenerator();
}
void AdvancedSettingsPage::on_sliderDetail_valueChanged()
{
saveGenerator();
}
void AdvancedSettingsPage::on_radioAANone_clicked()
{
saveView();
}
void AdvancedSettingsPage::on_radioAALow_clicked()
{
saveView();
}
void AdvancedSettingsPage::on_radioAAMedium_clicked()
{
saveView();
}
void AdvancedSettingsPage::on_radioAAHigh_clicked()
{
saveView();
}
void AdvancedSettingsPage::on_radioResLow_clicked()
{
saveView();
}
void AdvancedSettingsPage::on_radioResMedium_clicked()
{
saveView();
}
void AdvancedSettingsPage::on_radioResHigh_clicked()
{
saveView();
}
void AdvancedSettingsPage::on_radioResVHigh_clicked()
{
saveView();
}
void AdvancedSettingsPage::on_sliderHeight_valueChanged()
{
saveView();
}
void AdvancedSettingsPage::on_sliderZoom_valueChanged()
{
saveView();
}
void AdvancedSettingsPage::on_buttonRestore_clicked()
{
m_model->loadDefaultGeneratorSettings();
m_model->loadDefaultViewSettings();
}
void AdvancedSettingsPage::on_buttonStore_clicked()
{
if ( QMessageBox::warning( this, tr( "Warning" ), tr( "Are you sure you want to store current advanced settings\nas the default settings?" ),
QMessageBox::Ok | QMessageBox::Cancel ) == QMessageBox::Ok ) {
m_model->saveDefaultGeneratorSettings();
m_model->saveDefaultViewSettings();
updateButtons();
}
}
void AdvancedSettingsPage::generatorSettingsChanged()
{
loadGenerator();
updateButtons();
}
void AdvancedSettingsPage::viewSettingsChanged()
{
loadView();
updateButtons();
}
void AdvancedSettingsPage::viewModeChanged()
{
bool isImage = ( m_model->viewMode() == ImageViewMode );
bool isMesh = ( m_model->viewMode() == MeshViewMode );
m_ui.radioAANone->setEnabled( isImage );
m_ui.radioAALow->setEnabled( isImage );
m_ui.radioAAMedium->setEnabled( isImage );
m_ui.radioAAHigh->setEnabled( isImage );
m_ui.sliderHeight->setEnabled( isMesh );
m_ui.sliderZoom->setEnabled( isMesh );
m_ui.radioResLow->setEnabled( isMesh );
m_ui.radioResMedium->setEnabled( isMesh );
m_ui.radioResHigh->setEnabled( isMesh );
m_ui.radioResVHigh->setEnabled( isMesh );
}
void AdvancedSettingsPage::loadGenerator()
{
m_loading = true;
GeneratorSettings settings = m_model->generatorSettings();
m_ui.sliderDepth->setScaledValue( settings.calculationDepth() );
m_ui.sliderDetail->setScaledValue( settings.detailThreshold() );
m_loading = false;
}
void AdvancedSettingsPage::saveGenerator()
{
if ( m_loading )
return;
GeneratorSettings settings;
settings.setCalculationDepth( m_ui.sliderDepth->scaledValue() );
settings.setDetailThreshold( m_ui.sliderDetail->scaledValue() );
m_model->setGeneratorSettings( settings );
}
void AdvancedSettingsPage::loadView()
{
m_loading = true;
ViewSettings settings = m_model->viewSettings();
switch ( settings.antiAliasing() ) {
case NoAntiAliasing:
m_ui.radioAANone->setChecked( true );
break;
case LowAntiAliasing:
m_ui.radioAALow->setChecked( true );
break;
case MediumAntiAliasing:
m_ui.radioAAMedium->setChecked( true );
break;
case HighAntiAliasing:
m_ui.radioAAHigh->setChecked( true );
break;
}
switch ( settings.meshResolution() ) {
case LowResolution:
m_ui.radioResLow->setChecked( true );
break;
case MediumResolution:
m_ui.radioResMedium->setChecked( true );
break;
case HighResolution:
m_ui.radioResHigh->setChecked( true );
break;
case VeryHighResolution:
m_ui.radioResVHigh->setChecked( true );
break;
}
m_ui.sliderHeight->setScaledValue( settings.heightScale() );
m_ui.sliderZoom->setScaledValue( settings.cameraZoom() );
m_loading = false;
}
void AdvancedSettingsPage::saveView()
{
if ( m_loading )
return;
ViewSettings settings;
if ( m_ui.radioAANone->isChecked() )
settings.setAntiAliasing( NoAntiAliasing );
if ( m_ui.radioAALow->isChecked() )
settings.setAntiAliasing( LowAntiAliasing );
if ( m_ui.radioAAMedium->isChecked() )
settings.setAntiAliasing( MediumAntiAliasing );
if ( m_ui.radioAAHigh->isChecked() )
settings.setAntiAliasing( HighAntiAliasing );
if ( m_ui.radioResLow->isChecked() )
settings.setMeshResolution( LowResolution );
if ( m_ui.radioResMedium->isChecked() )
settings.setMeshResolution( MediumResolution );
if ( m_ui.radioResHigh->isChecked() )
settings.setMeshResolution( HighResolution );
if ( m_ui.radioResVHigh->isChecked() )
settings.setMeshResolution( VeryHighResolution );
settings.setHeightScale( m_ui.sliderHeight->scaledValue() );
settings.setCameraZoom( m_ui.sliderZoom->scaledValue() );
m_model->setViewSettings( settings );
}
void AdvancedSettingsPage::updateButtons()
{
bool enabled = !m_model->hasDefaultGeneratorSettings() || !m_model->hasDefaultViewSettings();
m_ui.buttonRestore->setEnabled( enabled );
m_ui.buttonStore->setEnabled( enabled );
}
fraqtive-0.4.8.1/src/advancedsettingspage.h 0000664 0000000 0000000 00000004044 14401322236 0020625 0 ustar 00root root 0000000 0000000 /**************************************************************************
* This file is part of the Fraqtive program
* Copyright (C) 2004-2012 Michał Męciński
*
* 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 .
**************************************************************************/
#ifndef ADVANCEDSETTINGSPAGE_H
#define ADVANCEDSETTINGSPAGE_H
#include
#include "ui_advancedsettingspage.h"
class FractalModel;
class AdvancedSettingsPage : public QWidget
{
Q_OBJECT
public:
AdvancedSettingsPage( QWidget* parent );
~AdvancedSettingsPage();
public:
void setModel( FractalModel* model );
private slots:
void on_sliderDepth_valueChanged();
void on_sliderDetail_valueChanged();
void on_radioAANone_clicked();
void on_radioAALow_clicked();
void on_radioAAMedium_clicked();
void on_radioAAHigh_clicked();
void on_radioResLow_clicked();
void on_radioResMedium_clicked();
void on_radioResHigh_clicked();
void on_radioResVHigh_clicked();
void on_sliderHeight_valueChanged();
void on_sliderZoom_valueChanged();
void on_buttonRestore_clicked();
void on_buttonStore_clicked();
void generatorSettingsChanged();
void viewSettingsChanged();
void viewModeChanged();
private:
void loadGenerator();
void saveGenerator();
void loadView();
void saveView();
void updateButtons();
private:
Ui::AdvancedSettingsPage m_ui;
FractalModel* m_model;
bool m_loading;
};
#endif
fraqtive-0.4.8.1/src/advancedsettingspage.ui 0000664 0000000 0000000 00000020241 14401322236 0021010 0 ustar 00root root 0000000 0000000
AdvancedSettingsPage
0
0
300
400
Advanced Settings
-
Calculation Depth
-
100
Qt::Horizontal
QSlider::TicksBelow
10
-
Detail Level
-
100
Qt::Horizontal
QSlider::TicksBelow
10
-
Image Anti-Aliasing
-
-
Qt::Horizontal
51
20
-
QFrame::NoFrame
4
0
0
0
0
-
None
true
-
Low
-
Medium
-
High
-
Mesh Resolution
-
-
Qt::Horizontal
40
20
-
QFrame::NoFrame
4
0
0
0
0
-
Low
true
-
Medium
-
High
-
Very High
-
Mesh Height Scale
-
100
Qt::Horizontal
QSlider::TicksBelow
10
-
Camera Zoom
-
100
Qt::Horizontal
QSlider::TicksBelow
10
-
Default Settings
-
-
Qt::Horizontal
40
20
-
Restore
-
Store
-
Qt::Vertical
20
28
DoubleSlider
QSlider
sliderDepth
fraqtive-0.4.8.1/src/animationpage.cpp 0000664 0000000 0000000 00000006731 14401322236 0017616 0 ustar 00root root 0000000 0000000 /**************************************************************************
* This file is part of the Fraqtive program
* Copyright (C) 2004-2012 Michał Męciński
*
* 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 .
**************************************************************************/
#include "animationpage.h"
#include "fractalmodel.h"
AnimationPage::AnimationPage( QWidget* parent ) : QWidget( parent ),
m_model( NULL ),
m_loading( false )
{
m_ui.setupUi( this );
m_ui.sliderScrolling->setScaledRange( -0.5, 0.5 );
m_ui.sliderRotation->setScaledRange( -0.25, 0.25 );
}
AnimationPage::~AnimationPage()
{
}
void AnimationPage::setModel( FractalModel* model )
{
m_model = model;
connect( m_model, SIGNAL( animationSettingsChanged() ), this, SLOT( animationSettingsChanged() ) );
connect( m_model, SIGNAL( viewModeChanged() ), this, SLOT( viewModeChanged() ) );
}
void AnimationPage::on_sliderScrolling_valueChanged()
{
saveSettings();
updateButtons();
}
void AnimationPage::on_sliderRotation_valueChanged()
{
saveSettings();
updateButtons();
}
void AnimationPage::on_stopScrolling_clicked()
{
AnimationSettings settings = m_model->animationSettings();
settings.setScrollingEnabled( false );
settings.setScrollingSpeed( 0.0 );
m_model->setAnimationSettings( settings );
}
void AnimationPage::on_stopRotation_clicked()
{
AnimationSettings settings = m_model->animationSettings();
settings.setRotationEnabled( false );
settings.setRotationSpeed( 0.0 );
m_model->setAnimationSettings( settings );
}
void AnimationPage::animationSettingsChanged()
{
loadSettings();
}
void AnimationPage::viewModeChanged()
{
m_ui.sliderRotation->setEnabled( m_model->viewMode() == MeshViewMode );
updateButtons();
}
void AnimationPage::updateButtons()
{
AnimationSettings settings = m_model->animationSettings();
m_ui.stopScrolling->setEnabled( settings.isScrollingEnabled() );
if ( m_model->viewMode() == MeshViewMode )
m_ui.stopRotation->setEnabled( settings.isRotationEnabled() );
else
m_ui.stopRotation->setEnabled( false );
}
void AnimationPage::loadSettings()
{
m_loading = true;
AnimationSettings settings = m_model->animationSettings();
m_ui.sliderScrolling->setScaledValue( settings.scrollingSpeed() );
m_ui.sliderRotation->setScaledValue( settings.rotationSpeed() );
m_loading = false;
}
void AnimationPage::saveSettings()
{
if ( m_loading )
return;
AnimationSettings settings = m_model->animationSettings();
settings.setScrollingSpeed( m_ui.sliderScrolling->scaledValue() );
settings.setRotationSpeed( m_ui.sliderRotation->scaledValue() );
if ( settings.scrollingSpeed() != 0.0 )
settings.setScrollingEnabled( true );
if ( settings.rotationSpeed() != 0.0 )
settings.setRotationEnabled( true );
m_model->setAnimationSettings( settings );
}
fraqtive-0.4.8.1/src/animationpage.h 0000664 0000000 0000000 00000003076 14401322236 0017262 0 ustar 00root root 0000000 0000000 /**************************************************************************
* This file is part of the Fraqtive program
* Copyright (C) 2004-2012 Michał Męciński
*
* 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 .
**************************************************************************/
#ifndef ANIMATIONPAGE_H
#define ANIMATIONPAGE_H
#include
#include "ui_animationpage.h"
class FractalModel;
class AnimationPage : public QWidget
{
Q_OBJECT
public:
AnimationPage( QWidget* parent );
~AnimationPage();
public:
void setModel( FractalModel* model );
private slots:
void on_sliderScrolling_valueChanged();
void on_sliderRotation_valueChanged();
void on_stopScrolling_clicked();
void on_stopRotation_clicked();
void animationSettingsChanged();
void viewModeChanged();
private:
void loadSettings();
void saveSettings();
void updateButtons();
private:
Ui::AnimationPage m_ui;
FractalModel* m_model;
bool m_loading;
};
#endif
fraqtive-0.4.8.1/src/animationpage.ui 0000664 0000000 0000000 00000006423 14401322236 0017447 0 ustar 00root root 0000000 0000000
AnimationPage
0
0
300
400
Animation
-
Color Scrolling
-
-
1
0
-100
100
Qt::Horizontal
QSlider::TicksBelow
20
-
Stop
-
Mesh Rotation
-
-
1
0
-100
100
Qt::Horizontal
QSlider::TicksBelow
20
-
Stop
-
Qt::Vertical
20
40
DoubleSlider
QSlider
sliderScrolling
stopScrolling
sliderRotation
stopRotation
fraqtive-0.4.8.1/src/bookmarklistview.cpp 0000664 0000000 0000000 00000007647 14401322236 0020405 0 ustar 00root root 0000000 0000000 /**************************************************************************
* This file is part of the Fraqtive program
* Copyright (C) 2004-2012 Micha Mciski
*
* 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 .
**************************************************************************/
#include "bookmarklistview.h"
#include
#include
#include
#include "bookmarkmodel.h"
#include "renamedialog.h"
BookmarkListView::BookmarkListView( QWidget* parent ) : QListView( parent )
{
setViewMode( QListView::IconMode );
setFlow( QListView::LeftToRight );
setMovement( QListView::Static );
setResizeMode( QListView::Adjust );
setWrapping( true );
setIconSize( QSize( 48, 48 ) );
setSpacing( 6 );
setWordWrap( true );
setModel( new BookmarkModel( this ) );
}
BookmarkListView::~BookmarkListView()
{
}
void BookmarkListView::setMap( BookmarkMap* map )
{
( (BookmarkModel*)model() )->setMap( map );
}
void BookmarkListView::setColorSettings( const Gradient& gradient, const QColor& backgroundColor, const ColorMapping& mapping )
{
BookmarkModel* bookmarkModel = (BookmarkModel*)model();
bookmarkModel->setColorSettings( gradient, backgroundColor, mapping );
bookmarkModel->continueGeneration();
}
void BookmarkListView::contextMenuEvent( QContextMenuEvent* e )
{
QModelIndexList selection = selectionModel()->selectedIndexes();
if ( selection.count() == 1 ) {
QMenu menu( this );
menu.addAction( QIcon( ":/icons/rename-16.png" ), tr( "&Rename" ), this, SLOT( renameItem() ) );
menu.addAction( QIcon( ":/icons/delete-16.png" ), tr( "&Delete" ), this, SLOT( deleteItem() ) );
menu.exec( e->globalPos() );
}
}
void BookmarkListView::renameItem()
{
QModelIndexList selection = selectionModel()->selectedIndexes();
if ( selection.count() == 1 ) {
BookmarkModel* bookmarkModel = (BookmarkModel*)model();
BookmarkMap* map = bookmarkModel->map();
QString name = model()->data( selection[ 0 ] ).toString();
RenameDialog dialog( RenameDialog::BookmarkMode, name, this );
dialog.setExistingNames( map->keys() );
if ( dialog.exec() == QDialog::Accepted ) {
bookmarkModel->abortGeneration();
Bookmark bookmark = map->take( name );
map->insert( dialog.name(), bookmark );
bookmarkModel->invalidateBookmark( name );
bookmarkModel->invalidateBookmark( dialog.name() );
bookmarkModel->update();
bookmarkModel->continueGeneration();
}
}
}
void BookmarkListView::deleteItem()
{
QModelIndexList selection = selectionModel()->selectedIndexes();
if ( selection.count() == 1 ) {
QString name = model()->data( selection[ 0 ] ).toString();
if ( QMessageBox::warning( this, tr( "Warning" ), tr( "Are you sure you want to delete bookmark
named %1?" ).arg( name ),
QMessageBox::Ok | QMessageBox::Cancel ) == QMessageBox::Ok ) {
BookmarkModel* bookmarkModel = (BookmarkModel*)model();
bookmarkModel->abortGeneration();
BookmarkMap* map = bookmarkModel->map();
map->remove( name );
bookmarkModel->invalidateBookmark( name );
bookmarkModel->update();
bookmarkModel->continueGeneration();
}
}
}
fraqtive-0.4.8.1/src/bookmarklistview.h 0000664 0000000 0000000 00000002617 14401322236 0020042 0 ustar 00root root 0000000 0000000 /**************************************************************************
* This file is part of the Fraqtive program
* Copyright (C) 2004-2012 Micha Mciski
*
* 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 .
**************************************************************************/
#ifndef BOOKMARKLISTVIEW_H
#define BOOKMARKLISTVIEW_H
#include
#include "datastructures.h"
class BookmarkListView : public QListView
{
Q_OBJECT
public:
BookmarkListView( QWidget* parent );
~BookmarkListView();
public:
void setMap( BookmarkMap* map );
void setColorSettings( const Gradient& gradient, const QColor& backgroundColor, const ColorMapping& mapping );
protected: // overrides
void contextMenuEvent( QContextMenuEvent* e );
private slots:
void renameItem();
void deleteItem();
};
#endif
fraqtive-0.4.8.1/src/bookmarkmodel.cpp 0000664 0000000 0000000 00000020524 14401322236 0017624 0 ustar 00root root 0000000 0000000 /**************************************************************************
* This file is part of the Fraqtive program
* Copyright (C) 2004-2012 Micha Mciski
*
* 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 .
**************************************************************************/
#include "bookmarkmodel.h"
#include
#ifndef M_PI
# define M_PI 3.14159265358979323846
#endif
#include
#include
#include
#include "fraqtiveapplication.h"
#include "fractaldata.h"
#include "jobscheduler.h"
#include "datafunctions.h"
Q_DECLARE_METATYPE( QModelIndex )
BookmarkModel::BookmarkModel( QObject* parent ) : QAbstractListModel( parent ),
m_gradientCache( NULL ),
m_enabled( false ),
m_activeJobs( 0 )
{
qRegisterMetaType();
}
BookmarkModel::~BookmarkModel()
{
QMutexLocker locker( &m_mutex );
cancelJobs();
while ( m_activeJobs > 0 )
m_allJobsDone.wait( &m_mutex );
delete[] m_gradientCache;
}
void BookmarkModel::setMap( BookmarkMap* map )
{
m_map = map;
update();
m_enabled = true;
m_queue = m_keys;
}
static const int GradientSize = 16384;
void BookmarkModel::setColorSettings( const Gradient& gradient, const QColor& backgroundColor, const ColorMapping& mapping )
{
QMutexLocker locker( &m_mutex );
cancelJobs();
if ( !m_gradientCache )
m_gradientCache = new QRgb[ GradientSize ];
DataFunctions::fillGradientCache( gradient, m_gradientCache, GradientSize );
m_backgroundColor = backgroundColor;
m_colorMapping = mapping;
}
void BookmarkModel::abortGeneration()
{
QMutexLocker locker( &m_mutex );
m_enabled = false;
cancelJobs();
}
void BookmarkModel::continueGeneration()
{
QMutexLocker locker( &m_mutex );
m_enabled = true;
addJobs();
}
void BookmarkModel::invalidateBookmark( const QString& name )
{
QMutexLocker locker( &m_mutex );
m_images.remove( name );
if ( !m_queue.contains( name ) ) {
m_queue.append( name );
addJobs( 1 );
}
}
static bool localeAwareLessThan( const QString& s1, const QString& s2 )
{
return QString::localeAwareCompare( s1, s2 ) < 0;
}
void BookmarkModel::update()
{
QMutexLocker locker( &m_mutex );
cancelJobs();
beginResetModel();
m_keys = m_map->keys();
qSort( m_keys.begin(), m_keys.end(), localeAwareLessThan );
endResetModel();
}
int BookmarkModel::rowCount( const QModelIndex& parent ) const
{
if ( !parent.isValid() )
return m_keys.count();
return 0;
}
QVariant BookmarkModel::data( const QModelIndex& index, int role ) const
{
if ( role == Qt::DisplayRole )
return m_keys.at( index.row() );
if ( role == Qt::DecorationRole ) {
QMutexLocker locker( &m_mutex );
QString name = m_keys.at( index.row() );
QPixmap pixmap;
if ( m_images.contains( name ) ) {
pixmap = QPixmap::fromImage( m_images.value( name ) );
} else {
pixmap = QPixmap( 48, 48 );
pixmap.fill( QApplication::palette().color( QPalette::Disabled, QPalette::Window ) );
}
locker.unlock();
QPainter painter( &pixmap );
QPixmap pixmap2 = pixmap;
QPainter painter2( &pixmap2 );
painter.setPen( QApplication::palette().color( QPalette::Dark ) );
painter.drawRect( pixmap.rect().adjusted( 0, 0, -1, -1 ) );
painter2.setPen( QApplication::palette().color( QPalette::Highlight ) );
painter2.drawRect( pixmap.rect().adjusted( 0, 0, -1, -1 ) );
painter2.drawRect( pixmap.rect().adjusted( 1, 1, -2, -2 ) );
QIcon icon;
icon.addPixmap( pixmap, QIcon::Normal );
icon.addPixmap( pixmap2, QIcon::Selected );
return icon;
}
return QVariant();
}
int BookmarkModel::priority() const
{
return 1;
}
static int roundToCellSize( int size )
{
// round up to nearest N * CellSize + 1
return ( ( size - 1 + GeneratorCore::CellSize - 1 ) / GeneratorCore::CellSize ) * GeneratorCore::CellSize + 1;
}
void BookmarkModel::executeJob()
{
QMutexLocker locker( &m_mutex );
if ( !m_enabled || m_queue.isEmpty() ) {
finishJob();
return;
}
QString name = m_queue.takeFirst();
if ( !m_map->contains( name ) ) {
finishJob();
return;
}
Bookmark bookmark = m_map->value( name );
locker.unlock();
const int imageSize = 48;
const int bufferSize = roundToCellSize( imageSize + 2 ); // 2 pixel margin for anti-aliasing
double* buffer = new double[ bufferSize * bufferSize ];
calculate( bookmark, buffer, QSize( bufferSize, bufferSize ), QSize( imageSize, imageSize ) );
FractalData data;
data.transferBuffer( buffer, bufferSize, QSize( imageSize, imageSize ) );
QImage image( imageSize, imageSize, QImage::Format_RGB32 );
ViewSettings settings = DataFunctions::defaultViewSettings();
DataFunctions::ColorMapper mapper( m_gradientCache, GradientSize, m_backgroundColor.rgb(), m_colorMapping );
DataFunctions::drawImage( image, &data, image.rect(), mapper, settings.antiAliasing() );
locker.relock();
if ( m_queue.contains( name ) ) {
finishJob();
return;
}
m_images.insert( name, image );
int row = m_keys.indexOf( name );
if ( row >= 0 )
emit dataChanged( index( row ), index( row ) );
finishJob();
}
void BookmarkModel::calculate( const Bookmark& bookmark, double* buffer, const QSize& size, const QSize& resolution )
{
GeneratorCore::Input input;
Position position = bookmark.position();
double scale = pow( 10.0, -position.zoomFactor() ) / (double)resolution.height();
double sa = scale * sin( position.angle() * M_PI / 180.0 );
double ca = scale * cos( position.angle() * M_PI / 180.0 );
double offsetX = -(double)resolution.width() / 2.0 - 0.5;
double offsetY = -(double)resolution.height() / 2.0 - 0.5;
input.m_sa = sa;
input.m_ca = ca;
input.m_x = position.center().x() + ca * offsetX + sa * offsetY;
input.m_y = position.center().y() - sa * offsetX + ca * offsetY;
GeneratorCore::Output output;
output.m_buffer = buffer;
output.m_width = size.width();
output.m_height = size.height();
output.m_stride = size.width();
GeneratorSettings settings = DataFunctions::defaultGeneratorSettings();
int maxIterations = (int)( pow( 10.0, settings.calculationDepth() ) * qMax( 1.0, 1.45 + position.zoomFactor() ) );
double threshold = settings.detailThreshold();
#if defined( HAVE_SSE2 )
GeneratorCore::FunctorSSE2* functorSSE2 = DataFunctions::createFunctorSSE2( bookmark.fractalType() );
if ( functorSSE2 ) {
GeneratorCore::generatePreviewSSE2( input, output, functorSSE2, maxIterations );
GeneratorCore::interpolate( output );
GeneratorCore::generateDetailsSSE2( input, output, functorSSE2, maxIterations, threshold );
delete functorSSE2;
return;
}
#endif
GeneratorCore::Functor* functor = DataFunctions::createFunctor( bookmark.fractalType() );
if ( functor ) {
GeneratorCore::generatePreview( input, output, functor, maxIterations );
GeneratorCore::interpolate( output );
GeneratorCore::generateDetails( input, output, functor, maxIterations, threshold );
delete functor;
}
}
void BookmarkModel::addJobs( int count /*= -1*/ )
{
if ( count < 0 )
count = m_queue.count();
if ( count > 0 ) {
fraqtive()->jobScheduler()->addJobs( this, count );
m_activeJobs += count;
}
}
void BookmarkModel::cancelJobs()
{
int count = fraqtive()->jobScheduler()->cancelAllJobs( this );
m_activeJobs -= count;
if ( m_activeJobs == 0 )
m_allJobsDone.wakeAll();
}
void BookmarkModel::finishJob()
{
m_activeJobs--;
if ( m_activeJobs == 0 )
m_allJobsDone.wakeAll();
}
fraqtive-0.4.8.1/src/bookmarkmodel.h 0000664 0000000 0000000 00000004456 14401322236 0017277 0 ustar 00root root 0000000 0000000 /**************************************************************************
* This file is part of the Fraqtive program
* Copyright (C) 2004-2012 Micha Mciski
*
* 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 .
**************************************************************************/
#ifndef BOOKMARKMODEL_H
#define BOOKMARKMODEL_H
#include
#include
#include
#include
#include "abstractjobprovider.h"
#include "datastructures.h"
class BookmarkModel : public QAbstractListModel, public AbstractJobProvider
{
Q_OBJECT
public:
BookmarkModel( QObject* parent );
~BookmarkModel();
public:
void setMap( BookmarkMap* map );
BookmarkMap* map() const { return m_map; }
void setColorSettings( const Gradient& gradient, const QColor& backgroundColor, const ColorMapping& mapping );
void abortGeneration();
void continueGeneration();
void invalidateBookmark( const QString& name );
void update();
public: // overrides
int rowCount( const QModelIndex& parent ) const;
QVariant data( const QModelIndex& index, int role ) const;
public: // AbstractJobProvider implementation
int priority() const;
void executeJob();
private:
void calculate( const Bookmark& bookmark, double* buffer, const QSize& size, const QSize& resolution );
void addJobs( int count = -1 );
void cancelJobs();
void finishJob();
private:
BookmarkMap* m_map;
QRgb* m_gradientCache;
QColor m_backgroundColor;
ColorMapping m_colorMapping;
mutable QMutex m_mutex;
QStringList m_keys;
QMap m_images;
bool m_enabled;
QStringList m_queue;
int m_activeJobs;
QWaitCondition m_allJobsDone;
};
#endif
fraqtive-0.4.8.1/src/colorsettingspage.cpp 0000664 0000000 0000000 00000011314 14401322236 0020527 0 ustar 00root root 0000000 0000000 /**************************************************************************
* This file is part of the Fraqtive program
* Copyright (C) 2004-2012 Michał Męciński
*
* 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 .
**************************************************************************/
#include "colorsettingspage.h"
#include
#include
#include "fractalmodel.h"
#include "gradientdialog.h"
#include "loadpresetdialog.h"
#include "savepresetdialog.h"
#include "datafunctions.h"
ColorSettingsPage::ColorSettingsPage( QWidget* parent ) : QWidget( parent ),
m_model( NULL )
{
m_ui.setupUi( this );
m_ui.sliderScale->setScaledRange( 0.02, 0.2 );
m_ui.sliderOffset->setScaledRange( 0.0, 1.0 );
}
ColorSettingsPage::~ColorSettingsPage()
{
}
void ColorSettingsPage::setModel( FractalModel* model )
{
m_model = model;
connect( model, SIGNAL( gradientChanged() ), this, SLOT( gradientChanged() ) );
connect( model, SIGNAL( backgroundColorChanged() ), this, SLOT( backgroundColorChanged() ) );
connect( model, SIGNAL( colorMappingChanged() ), this, SLOT( colorMappingChanged() ) );
}
void ColorSettingsPage::on_buttonBackground_clicked()
{
QColor color = QColorDialog::getColor( m_model->backgroundColor(), this );
if ( color.isValid() )
m_model->setBackgroundColor( color );
}
void ColorSettingsPage::on_buttonGradient_clicked()
{
GradientDialog dialog( this );
dialog.setGradient( m_model->gradient() );
connect( &dialog, SIGNAL( applyGradient( const Gradient& ) ), this, SLOT( applyGradient( const Gradient& ) ) );
dialog.exec();
}
void ColorSettingsPage::applyGradient( const Gradient& gradient )
{
m_model->setGradient( gradient );
}
void ColorSettingsPage::on_sliderScale_valueChanged()
{
saveMapping();
}
void ColorSettingsPage::on_sliderOffset_valueChanged()
{
saveMapping();
}
void ColorSettingsPage::on_checkMirrored_toggled()
{
saveMapping();
}
void ColorSettingsPage::on_checkReversed_toggled()
{
saveMapping();
}
void ColorSettingsPage::on_buttonRestore_clicked()
{
m_model->loadDefaultColorSettings();
}
void ColorSettingsPage::on_buttonStore_clicked()
{
if ( QMessageBox::warning( this, tr( "Warning" ), tr( "Are you sure you want to store current color settings\nas the default settings?" ),
QMessageBox::Ok | QMessageBox::Cancel ) == QMessageBox::Ok ) {
m_model->saveDefaultColorSettings();
updateButtons();
}
}
void ColorSettingsPage::on_buttonLoad_clicked()
{
LoadPresetDialog dialog( this );
dialog.setModel( m_model );
dialog.exec();
}
void ColorSettingsPage::on_buttonSave_clicked()
{
SavePresetDialog dialog( this );
dialog.setModel( m_model );
dialog.exec();
}
void ColorSettingsPage::gradientChanged()
{
loadGradient();
updateButtons();
}
void ColorSettingsPage::backgroundColorChanged()
{
loadBackground();
updateButtons();
}
void ColorSettingsPage::colorMappingChanged()
{
loadMapping();
updateButtons();
}
void ColorSettingsPage::loadBackground()
{
m_ui.widgetBackground->setBackgroundColor( m_model->backgroundColor() );
}
void ColorSettingsPage::loadGradient()
{
QGradientStops stops = DataFunctions::calculateGradientStops( m_model->gradient() );
m_ui.widgetGradient->setGradientStops( stops );
}
void ColorSettingsPage::loadMapping()
{
ColorMapping mapping = m_model->colorMapping();
m_ui.sliderScale->setScaledValue( mapping.scale() );
m_ui.sliderOffset->setScaledValue( mapping.offset() );
m_ui.checkMirrored->setChecked( mapping.isMirrored() );
m_ui.checkReversed->setChecked( mapping.isReversed() );
}
void ColorSettingsPage::saveMapping()
{
ColorMapping mapping;
mapping.setScale( m_ui.sliderScale->scaledValue() );
mapping.setOffset( m_ui.sliderOffset->scaledValue() );
mapping.setMirrored( m_ui.checkMirrored->isChecked() );
mapping.setReversed( m_ui.checkReversed->isChecked() );
m_model->setColorMapping( mapping );
}
void ColorSettingsPage::updateButtons()
{
bool enabled = !m_model->hasDefaultColorSettings();
m_ui.buttonRestore->setEnabled( enabled );
m_ui.buttonStore->setEnabled( enabled );
}
fraqtive-0.4.8.1/src/colorsettingspage.h 0000664 0000000 0000000 00000003661 14401322236 0020202 0 ustar 00root root 0000000 0000000 /**************************************************************************
* This file is part of the Fraqtive program
* Copyright (C) 2004-2012 Michał Męciński
*
* 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 .
**************************************************************************/
#ifndef COLORSETTINGSPAGE_H
#define COLORSETTINGSPAGE_H
#include
#include "ui_colorsettingspage.h"
class FractalModel;
class Gradient;
class ColorSettingsPage : public QWidget
{
Q_OBJECT
public:
ColorSettingsPage( QWidget* parent );
~ColorSettingsPage();
public:
void setModel( FractalModel* model );
private slots:
void on_buttonBackground_clicked();
void on_buttonGradient_clicked();
void on_sliderScale_valueChanged();
void on_sliderOffset_valueChanged();
void on_checkMirrored_toggled();
void on_checkReversed_toggled();
void on_buttonRestore_clicked();
void on_buttonStore_clicked();
void on_buttonLoad_clicked();
void on_buttonSave_clicked();
void gradientChanged();
void backgroundColorChanged();
void colorMappingChanged();
void applyGradient( const Gradient& gradient );
private:
void loadBackground();
void loadGradient();
void loadMapping();
void saveMapping();
void updateButtons();
private:
Ui::ColorSettingsPage m_ui;
FractalModel* m_model;
};
#endif
fraqtive-0.4.8.1/src/colorsettingspage.ui 0000664 0000000 0000000 00000013362 14401322236 0020367 0 ustar 00root root 0000000 0000000
ColorSettingsPage
0
0
300
400
Color Settings
-
Background Color
-
-
-
...
-
Color Gradient
-
-
-
...
-
Gradient Options
-
-
Qt::Horizontal
40
20
-
Mirrored
-
Reversed
-
Mapping Scale
-
100
Qt::Horizontal
QSlider::TicksBelow
10
-
Mapping Offset
-
100
Qt::Horizontal
QSlider::TicksBelow
10
-
Default Settings
-
-
Qt::Horizontal
40
20
-
Restore
-
Store
-
Color Presets
-
-
Qt::Horizontal
84
25
-
Load...
-
Save...
-
Qt::Vertical
20
21
ColorWidget
QWidget
1
DoubleSlider
QSlider
fraqtive-0.4.8.1/src/colorwidget.cpp 0000664 0000000 0000000 00000003337 14401322236 0017323 0 ustar 00root root 0000000 0000000 /**************************************************************************
* This file is part of the Fraqtive program
* Copyright (C) 2004-2012 Michał Męciński
*
* 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 .
**************************************************************************/
#include "colorwidget.h"
#include
#include
ColorWidget::ColorWidget( QWidget* parent ) : QWidget( parent )
{
}
ColorWidget::~ColorWidget()
{
}
void ColorWidget::setBackgroundColor( const QColor& color )
{
m_color = color;
m_stops.clear();
update();
}
void ColorWidget::setGradientStops( const QGradientStops& stops )
{
m_color = QColor();
m_stops = stops;
update();
}
void ColorWidget::paintEvent( QPaintEvent* e )
{
QPainter painter( this );
QRect rect = e->rect().adjusted( 0, 2, 0, -2 );
if ( m_color.isValid() ) {
painter.setBrush( m_color );
} else if ( !m_stops.isEmpty() ) {
QLinearGradient gradient( rect.topLeft(), rect.topRight() );
gradient.setStops( m_stops );
painter.setBrush( gradient );
}
painter.setPen( Qt::NoPen );
painter.drawRect( rect );
}
fraqtive-0.4.8.1/src/colorwidget.h 0000664 0000000 0000000 00000002435 14401322236 0016766 0 ustar 00root root 0000000 0000000 /**************************************************************************
* This file is part of the Fraqtive program
* Copyright (C) 2004-2012 Michał Męciński
*
* 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 .
**************************************************************************/
#ifndef COLORWIDGET_H
#define COLORWIDGET_H
#include
class ColorWidget : public QWidget
{
Q_OBJECT
public:
ColorWidget( QWidget* parent );
~ColorWidget();
public:
void setBackgroundColor( const QColor& color );
void setGradientStops( const QGradientStops& stops );
protected: // overrides
void paintEvent( QPaintEvent* e );
private:
QColor m_color;
QGradientStops m_stops;
};
#endif
fraqtive-0.4.8.1/src/configurationdata.cpp 0000664 0000000 0000000 00000011541 14401322236 0020476 0 ustar 00root root 0000000 0000000 /**************************************************************************
* This file is part of the Fraqtive program
* Copyright (C) 2004-2012 Michał Męciński
*
* 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 .
**************************************************************************/
#include "configurationdata.h"
#if defined( Q_OS_WIN )
#ifndef _WIN32_IE
#define _WIN32_IE 0x0400
#endif
#include
#endif
#include
#include
#include
ConfigurationData::ConfigurationData()
{
QString homePath = QDir::homePath();
#if defined( Q_OS_WIN )
TCHAR appDataPath[ MAX_PATH ];
if ( SHGetSpecialFolderPath( 0, appDataPath, CSIDL_APPDATA, FALSE ) )
m_dataPath = QDir::fromNativeSeparators( QString::fromUtf16( (ushort*)appDataPath ) );
if ( m_dataPath.isEmpty() )
m_dataPath = homePath;
m_dataPath += "/Fraqtive";
#else
char* dataHome = getenv( "XDG_DATA_HOME" );
if ( dataHome ) {
if ( dataHome[ 0 ] == '/' )
m_dataPath = dataHome;
else
m_dataPath = homePath + '/' + dataHome;
} else {
m_dataPath = homePath + "/.local/share";
}
m_dataPath += "/fraqtive";
#endif
}
ConfigurationData::~ConfigurationData()
{
}
bool ConfigurationData::contains( const QString& key ) const
{
return m_data.contains( key );
}
void ConfigurationData::setValue( const QString& key, const QVariant& value )
{
m_data[ key ] = value;
}
QVariant ConfigurationData::value( const QString& key, const QVariant& defaultValue /*= QVariant()*/ ) const
{
QVariantMap::const_iterator it = m_data.find( key );
if ( it == m_data.end() )
return defaultValue;
return it.value();
}
void ConfigurationData::readConfiguration()
{
QFile file;
QDataStream stream;
if ( readFile( &file, &stream, "config.dat" ) )
stream >> m_data;
if ( readFile( &file, &stream, "bookmarks.dat" ) )
stream >> m_bookmarks;
if ( readFile( &file, &stream, "presets.dat" ) )
stream >> m_userPresets;
if ( readFile( &file, &stream, ":/data/presets.dat" ) )
stream >> m_defaultPresets;
}
bool ConfigurationData::readFile( QFile* file, QDataStream* stream, const QString& fileName )
{
QString path;
if ( QDir::isRelativePath( fileName ) )
path = locateDataFile( fileName );
else
path = fileName;
file->close();
file->setFileName( path );
if ( !file->open( QIODevice::ReadOnly ) )
return false;
stream->setDevice( file );
stream->setVersion( QDataStream::Qt_4_2 );
qint32 version;
*stream >> version;
if ( version < 1 || version > 2 )
return false;
m_dataVersion = version;
return true;
}
void ConfigurationData::writeConfiguration()
{
QFile file;
QDataStream stream;
if ( writeFile( &file, &stream, "config.dat" ) )
stream << m_data;
if ( writeFile( &file, &stream, "bookmarks.dat" ) )
stream << m_bookmarks;
if ( writeFile( &file, &stream, "presets.dat" ) )
stream << m_userPresets;
}
bool ConfigurationData::writeFile( QFile* file, QDataStream* stream, const QString& fileName )
{
QString path;
if ( QDir::isRelativePath( fileName ) )
path = locateDataFile( fileName );
else
path = fileName;
file->close();
file->setFileName( path );
if ( !file->open( QIODevice::WriteOnly ) )
return false;
stream->setDevice( file );
stream->setVersion( QDataStream::Qt_4_2 );
// increment version when adding / modifying fields
m_dataVersion = 2;
*stream << (qint32)m_dataVersion;
return true;
}
QString ConfigurationData::locateDataFile( const QString& name )
{
QString path = m_dataPath + '/' + name;
checkAccess( path );
return path;
}
bool ConfigurationData::checkAccess( const QString& path )
{
QFileInfo fileInfo( path );
if ( fileInfo.exists() )
return fileInfo.isReadable();
QDir dir = QDir::root();
QStringList pathParts = path.split( '/', QString::SkipEmptyParts );
for ( int i = 0; i < pathParts.size() - 1; i++ ) {
const QString& part = pathParts.at( i );
if ( dir.cd( part ) )
continue;
if ( dir.mkdir( part ) && dir.cd( part ) )
continue;
return false;
}
return true;
}
fraqtive-0.4.8.1/src/configurationdata.h 0000664 0000000 0000000 00000004302 14401322236 0020140 0 ustar 00root root 0000000 0000000 /**************************************************************************
* This file is part of the Fraqtive program
* Copyright (C) 2004-2012 Michał Męciński
*
* 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 .
**************************************************************************/
#ifndef CONFIGURATIONDATA_H
#define CONFIGURATIONDATA_H
#include
class QFile;
#include "datastructures.h"
class ConfigurationData
{
public:
ConfigurationData();
~ConfigurationData();
public:
bool contains( const QString& key ) const;
void setValue( const QString& key, const QVariant& value );
QVariant value( const QString& key, const QVariant& defaultValue = QVariant() ) const;
BookmarkMap* bookmarks() { return &m_bookmarks; }
const BookmarkMap* bookmarks() const { return &m_bookmarks; }
PresetMap* defaultPresets() { return &m_defaultPresets; }
const PresetMap* defaultPresets() const { return &m_defaultPresets; }
PresetMap* userPresets() { return &m_userPresets; }
const PresetMap* userPresets() const { return &m_userPresets; }
void readConfiguration();
void writeConfiguration();
int dataVersion() const { return m_dataVersion; }
private:
bool readFile( QFile* file, QDataStream* stream, const QString& path );
bool writeFile( QFile* file, QDataStream* stream, const QString& path );
QString locateDataFile( const QString& name );
bool checkAccess( const QString& path );
private:
QString m_dataPath;
QVariantMap m_data;
BookmarkMap m_bookmarks;
PresetMap m_defaultPresets;
PresetMap m_userPresets;
int m_dataVersion;
};
#endif
fraqtive-0.4.8.1/src/data.qrc 0000664 0000000 0000000 00000000124 14401322236 0015704 0 ustar 00root root 0000000 0000000
data/presets.dat
fraqtive-0.4.8.1/src/data/ 0000775 0000000 0000000 00000000000 14401322236 0015200 5 ustar 00root root 0000000 0000000 fraqtive-0.4.8.1/src/data/presets.dat 0000664 0000000 0000000 00000011543 14401322236 0017363 0 ustar 00root root 0000000 0000000 T r i c o l o r 3 ?3H>? ?UUUUUU ?? s? ?Z*U?qq? ?KT ?? s? ?Z*U ?KU? ? ? ?tj~ T r i c o l o r 2 ?P~뵿 ?]?u? ? ?^(? ?'H5x ? ?3H>? ?UUUUUU ?
? ?P~뵿 ?]?u? ? ?tj~ T r i c o l o r 1 ?3H>? ?UUUUUU ? ?KT ?? s? ?Z*U ? ?UUUUUU ?
mK? ? ?tj~ S u n s e t ?_` ? ? ? ? ?
?88? ? ? ?UUUUUU? ?
? ?hh ? ? ?l S u m m e r ?_` ??Xyt ?o[? ? ? ?; l^