mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-18 02:42:59 +00:00
Add minimal .md browser to show README/LICENSES files
Now we can see markdown files inside Aseprite. This is an initial support (text only, separators, links only on headers and to external URLs). - Added a new docs/LICENSES.md file - Removed old .txt licenses
This commit is contained in:
parent
20a9df085b
commit
c1e428544e
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -39,3 +39,6 @@
|
|||||||
[submodule "laf"]
|
[submodule "laf"]
|
||||||
path = laf
|
path = laf
|
||||||
url = https://github.com/aseprite/laf.git
|
url = https://github.com/aseprite/laf.git
|
||||||
|
[submodule "third_party/cmark"]
|
||||||
|
path = third_party/cmark
|
||||||
|
url = https://github.com/aseprite/cmark.git
|
||||||
|
18
README.md
18
README.md
@ -73,23 +73,7 @@ It tries to replicate some pixel-art algorithms:
|
|||||||
* [RotSprite](http://forums.sonicretro.org/index.php?showtopic=8848&st=15&p=159754&#entry159754) by Xenowhirl.
|
* [RotSprite](http://forums.sonicretro.org/index.php?showtopic=8848&st=15&p=159754&#entry159754) by Xenowhirl.
|
||||||
* [Pixel perfect drawing algorithm](http://deepnight.net/pixel-perfect-drawing/) by [Sébastien Bénard](https://twitter.com/deepnightfr) and [Carduus](https://twitter.com/CarduusHimself/status/420554200737935361).
|
* [Pixel perfect drawing algorithm](http://deepnight.net/pixel-perfect-drawing/) by [Sébastien Bénard](https://twitter.com/deepnightfr) and [Carduus](https://twitter.com/CarduusHimself/status/420554200737935361).
|
||||||
|
|
||||||
And it uses the following third-party libraries:
|
Aseprite uses [several third-party open source projects](docs/LICENSES.md).
|
||||||
|
|
||||||
* [Allegro 4](http://alleg.sourceforge.net/) - [allegro4 license](https://github.com/aseprite/aseprite/tree/master/docs/licenses/allegro4-LICENSE.txt)
|
|
||||||
* [FreeType](http://www.freetype.org/) - [FTL license](https://github.com/aseprite/aseprite/tree/master/docs/licenses/FTL.txt)
|
|
||||||
* [Google Test](https://github.com/google/googletest) - [BSD-like license](https://github.com/aseprite/googletest/blob/master/googletest/LICENSE)
|
|
||||||
* [curl](http://curl.haxx.se/) - [curl license](https://github.com/aseprite/aseprite/tree/master/docs/licenses/curl-LICENSE.txt)
|
|
||||||
* [duktape](http://duktape.org/) - [MIT license](https://github.com/aseprite/aseprite/tree/master/third_party/duktape/LICENSE.txt)
|
|
||||||
* [giflib](http://sourceforge.net/projects/giflib/) - [giflib license](https://github.com/aseprite/aseprite/tree/master/docs/licenses/giflib-LICENSE.txt)
|
|
||||||
* [libjpeg](http://www.ijg.org/) - [libjpeg license](https://github.com/aseprite/aseprite/tree/master/docs/licenses/libjpeg-LICENSE.txt)
|
|
||||||
* [libpng](http://www.libpng.org/pub/png/) - [libpng license](https://github.com/aseprite/aseprite/tree/master/docs/licenses/libpng-LICENSE.txt)
|
|
||||||
* [libwebp](https://developers.google.com/speed/webp/) - [libwebp license](https://chromium.googlesource.com/webm/libwebp/+/master/COPYING)
|
|
||||||
* [loadpng](http://tjaden.strangesoft.net/loadpng/) - [zlib license](https://github.com/aseprite/aseprite/tree/master/docs/licenses/ZLIB.txt)
|
|
||||||
* [pixman](http://www.pixman.org/) - [MIT license](http://cgit.freedesktop.org/pixman/plain/COPYING)
|
|
||||||
* [simpleini](https://github.com/aseprite/simpleini/) - [MIT license](https://github.com/aseprite/simpleini/blob/aseprite/LICENCE.txt)
|
|
||||||
* [stringencoders](https://github.com/client9/stringencoders) - [MIT license](https://github.com/aseprite/stringencoders/blob/master/LICENSE)
|
|
||||||
* [tinyxml](http://www.sourceforge.net/projects/tinyxml) - [zlib license](https://github.com/aseprite/aseprite/tree/master/docs/licenses/ZLIB.txt)
|
|
||||||
* [zlib](http://www.gzip.org/zlib/) - [ZLIB license](https://github.com/aseprite/aseprite/tree/master/docs/licenses/ZLIB.txt)
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
@ -794,9 +794,8 @@
|
|||||||
<item command="Refresh" text="&Refresh && Reload Skin" />
|
<item command="Refresh" text="&Refresh && Reload Skin" />
|
||||||
</menu>
|
</menu>
|
||||||
<menu text="&Help">
|
<menu text="&Help">
|
||||||
<item command="Launch" text="Readme">
|
<item command="OpenBrowser" text="Readme">
|
||||||
<param name="type" value="url" />
|
<param name="filename" value="data/docs/README.md" />
|
||||||
<param name="path" value="https://github.com/aseprite/aseprite#readme" />
|
|
||||||
</item>
|
</item>
|
||||||
<separator />
|
<separator />
|
||||||
<item command="Launch" text="Quick &Reference">
|
<item command="Launch" text="Quick &Reference">
|
||||||
|
931
docs/LICENSES.md
Normal file
931
docs/LICENSES.md
Normal file
@ -0,0 +1,931 @@
|
|||||||
|
Aseprite uses the following open source projects:
|
||||||
|
|
||||||
|
# [Allegro 4](http://alleg.sourceforge.net/)
|
||||||
|
|
||||||
|
```
|
||||||
|
Allegro is gift-ware. It was created by a number of people working in
|
||||||
|
cooperation, and is given to you freely as a gift. You may use,
|
||||||
|
modify, redistribute, and generally hack it about in any way you like,
|
||||||
|
and you do not have to give us anything in return.
|
||||||
|
|
||||||
|
However, if you like this product you are encouraged to thank us by
|
||||||
|
making a return gift to the Allegro community. This could be by
|
||||||
|
writing an add-on package, providing a useful bug report, making an
|
||||||
|
improvement to the library, or perhaps just releasing the sources of
|
||||||
|
your program so that other people can learn from them. If you
|
||||||
|
redistribute parts of this code or make a game using it, it would be
|
||||||
|
nice if you mentioned Allegro somewhere in the credits, but you are
|
||||||
|
not required to do this. We trust you not to abuse our generosity.
|
||||||
|
|
||||||
|
By Shawn Hargreaves, 18 October 1998.
|
||||||
|
|
||||||
|
DISCLAIMER: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
||||||
|
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||||
|
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
|
||||||
|
NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE
|
||||||
|
DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
|
||||||
|
OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
```
|
||||||
|
|
||||||
|
# [cmark](https://github.com/jgm/cmark)
|
||||||
|
|
||||||
|
```
|
||||||
|
Copyright (c) 2014, John MacFarlane
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
* Redistributions in binary form must reproduce the above
|
||||||
|
copyright notice, this list of conditions and the following
|
||||||
|
disclaimer in the documentation and/or other materials provided
|
||||||
|
with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
-----
|
||||||
|
|
||||||
|
houdini.h, houdini_href_e.c, houdini_html_e.c, houdini_html_u.c
|
||||||
|
|
||||||
|
derive from https://github.com/vmg/houdini (with some modifications)
|
||||||
|
|
||||||
|
Copyright (C) 2012 Vicent Martí
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
|
the Software without restriction, including without limitation the rights to
|
||||||
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||||
|
of the Software, and to permit persons to whom the Software is furnished to do
|
||||||
|
so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
|
||||||
|
-----
|
||||||
|
|
||||||
|
buffer.h, buffer.c, chunk.h
|
||||||
|
|
||||||
|
are derived from code (C) 2012 Github, Inc.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
|
the Software without restriction, including without limitation the rights to
|
||||||
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||||
|
of the Software, and to permit persons to whom the Software is furnished to do
|
||||||
|
so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
|
||||||
|
-----
|
||||||
|
|
||||||
|
utf8.c and utf8.c
|
||||||
|
|
||||||
|
are derived from utf8proc
|
||||||
|
(<http://www.public-software-group.org/utf8proc>),
|
||||||
|
(C) 2009 Public Software Group e. V., Berlin, Germany.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
copy of this software and associated documentation files (the "Software"),
|
||||||
|
to deal in the Software without restriction, including without limitation
|
||||||
|
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
-----
|
||||||
|
|
||||||
|
The normalization code in normalize.py was derived from the
|
||||||
|
markdowntest project, Copyright 2013 Karl Dubost:
|
||||||
|
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2013 Karl Dubost
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the
|
||||||
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
-----
|
||||||
|
|
||||||
|
The CommonMark spec (test/spec.txt) is
|
||||||
|
|
||||||
|
Copyright (C) 2014-15 John MacFarlane
|
||||||
|
|
||||||
|
Released under the Creative Commons CC-BY-SA 4.0 license:
|
||||||
|
<http://creativecommons.org/licenses/by-sa/4.0/>.
|
||||||
|
|
||||||
|
-----
|
||||||
|
|
||||||
|
The test software in test/ is
|
||||||
|
|
||||||
|
Copyright (c) 2014, John MacFarlane
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
* Redistributions in binary form must reproduce the above
|
||||||
|
copyright notice, this list of conditions and the following
|
||||||
|
disclaimer in the documentation and/or other materials provided
|
||||||
|
with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
```
|
||||||
|
|
||||||
|
# [curl](http://curl.haxx.se/)
|
||||||
|
|
||||||
|
```
|
||||||
|
COPYRIGHT AND PERMISSION NOTICE
|
||||||
|
|
||||||
|
Copyright (c) 1996 - 2011, Daniel Stenberg, <daniel@haxx.se>
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and distribute this software for any purpose
|
||||||
|
with or without fee is hereby granted, provided that the above copyright
|
||||||
|
notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
|
||||||
|
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||||
|
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||||
|
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
||||||
|
OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
Except as contained in this notice, the name of a copyright holder shall not
|
||||||
|
be used in advertising or otherwise to promote the sale, use or other dealings
|
||||||
|
in this Software without prior written authorization of the copyright holder.
|
||||||
|
```
|
||||||
|
|
||||||
|
# [duktape](http://duktape.org/)
|
||||||
|
|
||||||
|
```
|
||||||
|
===============
|
||||||
|
Duktape license
|
||||||
|
===============
|
||||||
|
|
||||||
|
(http://opensource.org/licenses/MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2013-2016 by Duktape authors (see AUTHORS.rst)
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
```
|
||||||
|
|
||||||
|
# [FreeType](http://www.freetype.org/)
|
||||||
|
|
||||||
|
```
|
||||||
|
The FreeType Project LICENSE
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
2000-Feb-08
|
||||||
|
|
||||||
|
Copyright 1996-2000 by
|
||||||
|
David Turner, Robert Wilhelm, and Werner Lemberg
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Introduction
|
||||||
|
============
|
||||||
|
|
||||||
|
The FreeType Project is distributed in several archive packages;
|
||||||
|
some of them may contain, in addition to the FreeType font engine,
|
||||||
|
various tools and contributions which rely on, or relate to, the
|
||||||
|
FreeType Project.
|
||||||
|
|
||||||
|
This license applies to all files found in such packages, and
|
||||||
|
which do not fall under their own explicit license. The license
|
||||||
|
affects thus the FreeType font engine, the test programs,
|
||||||
|
documentation and makefiles, at the very least.
|
||||||
|
|
||||||
|
This license was inspired by the BSD, Artistic, and IJG
|
||||||
|
(Independent JPEG Group) licenses, which all encourage inclusion
|
||||||
|
and use of free software in commercial and freeware products
|
||||||
|
alike. As a consequence, its main points are that:
|
||||||
|
|
||||||
|
o We don't promise that this software works. However, we will be
|
||||||
|
interested in any kind of bug reports. (`as is' distribution)
|
||||||
|
|
||||||
|
o You can use this software for whatever you want, in parts or
|
||||||
|
full form, without having to pay us. (`royalty-free' usage)
|
||||||
|
|
||||||
|
o You may not pretend that you wrote this software. If you use
|
||||||
|
it, or only parts of it, in a program, you must acknowledge
|
||||||
|
somewhere in your documentation that you have used the
|
||||||
|
FreeType code. (`credits')
|
||||||
|
|
||||||
|
We specifically permit and encourage the inclusion of this
|
||||||
|
software, with or without modifications, in commercial products.
|
||||||
|
We disclaim all warranties covering The FreeType Project and
|
||||||
|
assume no liability related to The FreeType Project.
|
||||||
|
|
||||||
|
|
||||||
|
Legal Terms
|
||||||
|
===========
|
||||||
|
|
||||||
|
0. Definitions
|
||||||
|
--------------
|
||||||
|
|
||||||
|
Throughout this license, the terms `package', `FreeType Project',
|
||||||
|
and `FreeType archive' refer to the set of files originally
|
||||||
|
distributed by the authors (David Turner, Robert Wilhelm, and
|
||||||
|
Werner Lemberg) as the `FreeType Project', be they named as alpha,
|
||||||
|
beta or final release.
|
||||||
|
|
||||||
|
`You' refers to the licensee, or person using the project, where
|
||||||
|
`using' is a generic term including compiling the project's source
|
||||||
|
code as well as linking it to form a `program' or `executable'.
|
||||||
|
This program is referred to as `a program using the FreeType
|
||||||
|
engine'.
|
||||||
|
|
||||||
|
This license applies to all files distributed in the original
|
||||||
|
FreeType Project, including all source code, binaries and
|
||||||
|
documentation, unless otherwise stated in the file in its
|
||||||
|
original, unmodified form as distributed in the original archive.
|
||||||
|
If you are unsure whether or not a particular file is covered by
|
||||||
|
this license, you must contact us to verify this.
|
||||||
|
|
||||||
|
The FreeType Project is copyright (C) 1996-2000 by David Turner,
|
||||||
|
Robert Wilhelm, and Werner Lemberg. All rights reserved except as
|
||||||
|
specified below.
|
||||||
|
|
||||||
|
1. No Warranty
|
||||||
|
--------------
|
||||||
|
|
||||||
|
THE FREETYPE PROJECT IS PROVIDED `AS IS' WITHOUT WARRANTY OF ANY
|
||||||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. IN NO EVENT WILL ANY OF THE AUTHORS OR COPYRIGHT HOLDERS
|
||||||
|
BE LIABLE FOR ANY DAMAGES CAUSED BY THE USE OR THE INABILITY TO
|
||||||
|
USE, OF THE FREETYPE PROJECT.
|
||||||
|
|
||||||
|
2. Redistribution
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
This license grants a worldwide, royalty-free, perpetual and
|
||||||
|
irrevocable right and license to use, execute, perform, compile,
|
||||||
|
display, copy, create derivative works of, distribute and
|
||||||
|
sublicense the FreeType Project (in both source and object code
|
||||||
|
forms) and derivative works thereof for any purpose; and to
|
||||||
|
authorize others to exercise some or all of the rights granted
|
||||||
|
herein, subject to the following conditions:
|
||||||
|
|
||||||
|
o Redistribution of source code must retain this license file
|
||||||
|
(`FTL.TXT') unaltered; any additions, deletions or changes to
|
||||||
|
the original files must be clearly indicated in accompanying
|
||||||
|
documentation. The copyright notices of the unaltered,
|
||||||
|
original files must be preserved in all copies of source
|
||||||
|
files.
|
||||||
|
|
||||||
|
o Redistribution in binary form must provide a disclaimer that
|
||||||
|
states that the software is based in part of the work of the
|
||||||
|
FreeType Team, in the distribution documentation. We also
|
||||||
|
encourage you to put an URL to the FreeType web page in your
|
||||||
|
documentation, though this isn't mandatory.
|
||||||
|
|
||||||
|
These conditions apply to any software derived from or based on
|
||||||
|
the FreeType Project, not just the unmodified files. If you use
|
||||||
|
our work, you must acknowledge us. However, no fee need be paid
|
||||||
|
to us.
|
||||||
|
|
||||||
|
3. Advertising
|
||||||
|
--------------
|
||||||
|
|
||||||
|
Neither the FreeType authors and contributors nor you shall use
|
||||||
|
the name of the other for commercial, advertising, or promotional
|
||||||
|
purposes without specific prior written permission.
|
||||||
|
|
||||||
|
We suggest, but do not require, that you use one or more of the
|
||||||
|
following phrases to refer to this software in your documentation
|
||||||
|
or advertising materials: `FreeType Project', `FreeType Engine',
|
||||||
|
`FreeType library', or `FreeType Distribution'.
|
||||||
|
|
||||||
|
As you have not signed this license, you are not required to
|
||||||
|
accept it. However, as the FreeType Project is copyrighted
|
||||||
|
material, only this license, or another one contracted with the
|
||||||
|
authors, grants you the right to use, distribute, and modify it.
|
||||||
|
Therefore, by using, distributing, or modifying the FreeType
|
||||||
|
Project, you indicate that you understand and accept all the terms
|
||||||
|
of this license.
|
||||||
|
|
||||||
|
4. Contacts
|
||||||
|
-----------
|
||||||
|
|
||||||
|
There are two mailing lists related to FreeType:
|
||||||
|
|
||||||
|
o freetype@freetype.org
|
||||||
|
|
||||||
|
Discusses general use and applications of FreeType, as well as
|
||||||
|
future and wanted additions to the library and distribution.
|
||||||
|
If you are looking for support, start in this list if you
|
||||||
|
haven't found anything to help you in the documentation.
|
||||||
|
|
||||||
|
o devel@freetype.org
|
||||||
|
|
||||||
|
Discusses bugs, as well as engine internals, design issues,
|
||||||
|
specific licenses, porting, etc.
|
||||||
|
|
||||||
|
o http://www.freetype.org
|
||||||
|
|
||||||
|
Holds the current FreeType web page, which will allow you to
|
||||||
|
download our latest development version and read online
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
You can also contact us individually at:
|
||||||
|
|
||||||
|
David Turner <david.turner@freetype.org>
|
||||||
|
Robert Wilhelm <robert.wilhelm@freetype.org>
|
||||||
|
Werner Lemberg <werner.lemberg@freetype.org>
|
||||||
|
|
||||||
|
|
||||||
|
--- end of LICENSE.TXT ---
|
||||||
|
```
|
||||||
|
|
||||||
|
# [giflib](http://sourceforge.net/projects/giflib/)
|
||||||
|
|
||||||
|
```
|
||||||
|
The GIFLIB distribution is Copyright (c) 1997 Eric S. Raymond
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
```
|
||||||
|
|
||||||
|
# [Google Test](https://github.com/google/googletest)
|
||||||
|
|
||||||
|
```
|
||||||
|
Copyright 2008, Google Inc.
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are
|
||||||
|
met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
* Redistributions in binary form must reproduce the above
|
||||||
|
copyright notice, this list of conditions and the following disclaimer
|
||||||
|
in the documentation and/or other materials provided with the
|
||||||
|
distribution.
|
||||||
|
* Neither the name of Google Inc. nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived from
|
||||||
|
this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
```
|
||||||
|
|
||||||
|
# [libjpeg](http://www.ijg.org/)
|
||||||
|
|
||||||
|
```
|
||||||
|
The authors make NO WARRANTY or representation, either express or implied,
|
||||||
|
with respect to this software, its quality, accuracy, merchantability, or
|
||||||
|
fitness for a particular purpose. This software is provided "AS IS", and you,
|
||||||
|
its user, assume the entire risk as to its quality and accuracy.
|
||||||
|
|
||||||
|
This software is copyright (C) 1991-1998, Thomas G. Lane.
|
||||||
|
All Rights Reserved except as specified below.
|
||||||
|
|
||||||
|
Permission is hereby granted to use, copy, modify, and distribute this
|
||||||
|
software (or portions thereof) for any purpose, without fee, subject to these
|
||||||
|
conditions:
|
||||||
|
(1) If any part of the source code for this software is distributed, then this
|
||||||
|
README file must be included, with this copyright and no-warranty notice
|
||||||
|
unaltered; and any additions, deletions, or changes to the original files
|
||||||
|
must be clearly indicated in accompanying documentation.
|
||||||
|
(2) If only executable code is distributed, then the accompanying
|
||||||
|
documentation must state that "this software is based in part on the work of
|
||||||
|
the Independent JPEG Group".
|
||||||
|
(3) Permission for use of this software is granted only if the user accepts
|
||||||
|
full responsibility for any undesirable consequences; the authors accept
|
||||||
|
NO LIABILITY for damages of any kind.
|
||||||
|
|
||||||
|
These conditions apply to any software derived from or based on the IJG code,
|
||||||
|
not just to the unmodified library. If you use our work, you ought to
|
||||||
|
acknowledge us.
|
||||||
|
|
||||||
|
Permission is NOT granted for the use of any IJG author's name or company name
|
||||||
|
in advertising or publicity relating to this software or products derived from
|
||||||
|
it. This software may be referred to only as "the Independent JPEG Group's
|
||||||
|
software".
|
||||||
|
|
||||||
|
We specifically permit and encourage the use of this software as the basis of
|
||||||
|
commercial products, provided that all warranty or liability claims are
|
||||||
|
assumed by the product vendor.
|
||||||
|
|
||||||
|
|
||||||
|
ansi2knr.c is included in this distribution by permission of L. Peter Deutsch,
|
||||||
|
sole proprietor of its copyright holder, Aladdin Enterprises of Menlo Park, CA.
|
||||||
|
ansi2knr.c is NOT covered by the above copyright and conditions, but instead
|
||||||
|
by the usual distribution terms of the Free Software Foundation; principally,
|
||||||
|
that you must include source code if you redistribute it. (See the file
|
||||||
|
ansi2knr.c for full details.) However, since ansi2knr.c is not needed as part
|
||||||
|
of any program generated from the IJG code, this does not limit you more than
|
||||||
|
the foregoing paragraphs do.
|
||||||
|
|
||||||
|
The Unix configuration script "configure" was produced with GNU Autoconf.
|
||||||
|
It is copyright by the Free Software Foundation but is freely distributable.
|
||||||
|
The same holds for its supporting scripts (config.guess, config.sub,
|
||||||
|
ltconfig, ltmain.sh). Another support script, install-sh, is copyright
|
||||||
|
by M.I.T. but is also freely distributable.
|
||||||
|
|
||||||
|
It appears that the arithmetic coding option of the JPEG spec is covered by
|
||||||
|
patents owned by IBM, AT&T, and Mitsubishi. Hence arithmetic coding cannot
|
||||||
|
legally be used without obtaining one or more licenses. For this reason,
|
||||||
|
support for arithmetic coding has been removed from the free JPEG software.
|
||||||
|
(Since arithmetic coding provides only a marginal gain over the unpatented
|
||||||
|
Huffman mode, it is unlikely that very many implementations will support it.)
|
||||||
|
So far as we are aware, there are no patent restrictions on the remaining
|
||||||
|
code.
|
||||||
|
|
||||||
|
The IJG distribution formerly included code to read and write GIF files.
|
||||||
|
To avoid entanglement with the Unisys LZW patent, GIF reading support has
|
||||||
|
been removed altogether, and the GIF writer has been simplified to produce
|
||||||
|
"uncompressed GIFs". This technique does not use the LZW algorithm; the
|
||||||
|
resulting GIF files are larger than usual, but are readable by all standard
|
||||||
|
GIF decoders.
|
||||||
|
|
||||||
|
We are required to state that
|
||||||
|
"The Graphics Interchange Format(c) is the Copyright property of
|
||||||
|
CompuServe Incorporated. GIF(sm) is a Service Mark property of
|
||||||
|
CompuServe Incorporated."
|
||||||
|
```
|
||||||
|
|
||||||
|
# [libpng](http://www.libpng.org/pub/png/)
|
||||||
|
|
||||||
|
```
|
||||||
|
This copy of the libpng notices is provided for your convenience. In case of
|
||||||
|
any discrepancy between this copy and the notices in the file png.h that is
|
||||||
|
included in the libpng distribution, the latter shall prevail.
|
||||||
|
|
||||||
|
COPYRIGHT NOTICE, DISCLAIMER, and LICENSE:
|
||||||
|
|
||||||
|
If you modify libpng you may insert additional notices immediately following
|
||||||
|
this sentence.
|
||||||
|
|
||||||
|
This code is released under the libpng license.
|
||||||
|
|
||||||
|
libpng versions 1.0.7, July 1, 2000 through 1.6.22beta06, April 27, 2016 are
|
||||||
|
Copyright (c) 2000-2002, 2004, 2006-2016 Glenn Randers-Pehrson, are
|
||||||
|
derived from libpng-1.0.6, and are distributed according to the same
|
||||||
|
disclaimer and license as libpng-1.0.6 with the following individuals
|
||||||
|
added to the list of Contributing Authors:
|
||||||
|
|
||||||
|
Simon-Pierre Cadieux
|
||||||
|
Eric S. Raymond
|
||||||
|
Mans Rullgard
|
||||||
|
Cosmin Truta
|
||||||
|
Gilles Vollant
|
||||||
|
James Yu
|
||||||
|
|
||||||
|
and with the following additions to the disclaimer:
|
||||||
|
|
||||||
|
There is no warranty against interference with your enjoyment of the
|
||||||
|
library or against infringement. There is no warranty that our
|
||||||
|
efforts or the library will fulfill any of your particular purposes
|
||||||
|
or needs. This library is provided with all faults, and the entire
|
||||||
|
risk of satisfactory quality, performance, accuracy, and effort is with
|
||||||
|
the user.
|
||||||
|
|
||||||
|
Some files in the "contrib" directory and some configure-generated
|
||||||
|
files that are distributed with libpng have other copyright owners and
|
||||||
|
are released under other open source licenses.
|
||||||
|
|
||||||
|
libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are
|
||||||
|
Copyright (c) 1998-2000 Glenn Randers-Pehrson, are derived from
|
||||||
|
libpng-0.96, and are distributed according to the same disclaimer and
|
||||||
|
license as libpng-0.96, with the following individuals added to the list
|
||||||
|
of Contributing Authors:
|
||||||
|
|
||||||
|
Tom Lane
|
||||||
|
Glenn Randers-Pehrson
|
||||||
|
Willem van Schaik
|
||||||
|
|
||||||
|
libpng versions 0.89, June 1996, through 0.96, May 1997, are
|
||||||
|
Copyright (c) 1996-1997 Andreas Dilger, are derived from libpng-0.88,
|
||||||
|
and are distributed according to the same disclaimer and license as
|
||||||
|
libpng-0.88, with the following individuals added to the list of
|
||||||
|
Contributing Authors:
|
||||||
|
|
||||||
|
John Bowler
|
||||||
|
Kevin Bracey
|
||||||
|
Sam Bushell
|
||||||
|
Magnus Holmgren
|
||||||
|
Greg Roelofs
|
||||||
|
Tom Tanner
|
||||||
|
|
||||||
|
Some files in the "scripts" directory have other copyright owners
|
||||||
|
but are released under this license.
|
||||||
|
|
||||||
|
libpng versions 0.5, May 1995, through 0.88, January 1996, are
|
||||||
|
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
|
||||||
|
|
||||||
|
For the purposes of this copyright and license, "Contributing Authors"
|
||||||
|
is defined as the following set of individuals:
|
||||||
|
|
||||||
|
Andreas Dilger
|
||||||
|
Dave Martindale
|
||||||
|
Guy Eric Schalnat
|
||||||
|
Paul Schmidt
|
||||||
|
Tim Wegner
|
||||||
|
|
||||||
|
The PNG Reference Library is supplied "AS IS". The Contributing Authors
|
||||||
|
and Group 42, Inc. disclaim all warranties, expressed or implied,
|
||||||
|
including, without limitation, the warranties of merchantability and of
|
||||||
|
fitness for any purpose. The Contributing Authors and Group 42, Inc.
|
||||||
|
assume no liability for direct, indirect, incidental, special, exemplary,
|
||||||
|
or consequential damages, which may result from the use of the PNG
|
||||||
|
Reference Library, even if advised of the possibility of such damage.
|
||||||
|
|
||||||
|
Permission is hereby granted to use, copy, modify, and distribute this
|
||||||
|
source code, or portions hereof, for any purpose, without fee, subject
|
||||||
|
to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this source code must not be misrepresented.
|
||||||
|
|
||||||
|
2. Altered versions must be plainly marked as such and must not
|
||||||
|
be misrepresented as being the original source.
|
||||||
|
|
||||||
|
3. This Copyright notice may not be removed or altered from any
|
||||||
|
source or altered source distribution.
|
||||||
|
|
||||||
|
The Contributing Authors and Group 42, Inc. specifically permit, without
|
||||||
|
fee, and encourage the use of this source code as a component to
|
||||||
|
supporting the PNG file format in commercial products. If you use this
|
||||||
|
source code in a product, acknowledgment is not required but would be
|
||||||
|
appreciated.
|
||||||
|
|
||||||
|
END OF COPYRIGHT NOTICE, DISCLAIMER, and LICENSE.
|
||||||
|
|
||||||
|
TRADEMARK:
|
||||||
|
|
||||||
|
The name "libpng" has not been registered by the Copyright owner
|
||||||
|
as a trademark in any jurisdiction. However, because libpng has
|
||||||
|
been distributed and maintained world-wide, continually since 1995,
|
||||||
|
the Copyright owner claims "common-law trademark protection" in any
|
||||||
|
jurisdiction where common-law trademark is recognized.
|
||||||
|
|
||||||
|
OSI CERTIFICATION:
|
||||||
|
|
||||||
|
Libpng is OSI Certified Open Source Software. OSI Certified Open Source is
|
||||||
|
a certification mark of the Open Source Initiative. OSI has not addressed
|
||||||
|
the additional disclaimers inserted at version 1.0.7.
|
||||||
|
|
||||||
|
EXPORT CONTROL:
|
||||||
|
|
||||||
|
The Copyright owner believes that the Export Control Classification
|
||||||
|
Number (ECCN) for libpng is EAR99, which means not subject to export
|
||||||
|
controls or International Traffic in Arms Regulations (ITAR) because
|
||||||
|
it is open source, publicly available software, that does not contain
|
||||||
|
any encryption software. See the EAR, paragraphs 734.3(b)(3) and
|
||||||
|
734.7(b).
|
||||||
|
|
||||||
|
Glenn Randers-Pehrson
|
||||||
|
glennrp at users.sourceforge.net
|
||||||
|
April 27, 2016
|
||||||
|
```
|
||||||
|
|
||||||
|
# [libwebp](https://developers.google.com/speed/webp/)
|
||||||
|
|
||||||
|
```
|
||||||
|
Copyright (c) 2010, Google Inc. All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are
|
||||||
|
met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
* Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in
|
||||||
|
the documentation and/or other materials provided with the
|
||||||
|
distribution.
|
||||||
|
|
||||||
|
* Neither the name of Google nor the names of its contributors may
|
||||||
|
be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
```
|
||||||
|
|
||||||
|
# [loadpng](http://tjaden.strangesoft.net/loadpng/)
|
||||||
|
|
||||||
|
```
|
||||||
|
Copyright (C) 1999-2012 Peter Wang
|
||||||
|
|
||||||
|
This software is provided 'as-is', without any express or implied
|
||||||
|
warranty. In no event will the authors be held liable for any damages
|
||||||
|
arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose,
|
||||||
|
including commercial applications, and to alter it and redistribute it
|
||||||
|
freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not
|
||||||
|
claim that you wrote the original software. If you use this software
|
||||||
|
in a product, an acknowledgment in the product documentation would be
|
||||||
|
appreciated but is not required.
|
||||||
|
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
misrepresented as being the original software.
|
||||||
|
|
||||||
|
3. This notice may not be removed or altered from any source
|
||||||
|
distribution.
|
||||||
|
```
|
||||||
|
|
||||||
|
# [pixman](http://www.pixman.org/)
|
||||||
|
|
||||||
|
```
|
||||||
|
The following is the MIT license, agreed upon by most contributors.
|
||||||
|
Copyright holders of new code should use this license statement where
|
||||||
|
possible. They may also add themselves to the list below.
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright 1987, 1988, 1989, 1998 The Open Group
|
||||||
|
* Copyright 1987, 1988, 1989 Digital Equipment Corporation
|
||||||
|
* Copyright 1999, 2004, 2008 Keith Packard
|
||||||
|
* Copyright 2000 SuSE, Inc.
|
||||||
|
* Copyright 2000 Keith Packard, member of The XFree86 Project, Inc.
|
||||||
|
* Copyright 2004, 2005, 2007, 2008, 2009, 2010 Red Hat, Inc.
|
||||||
|
* Copyright 2004 Nicholas Miell
|
||||||
|
* Copyright 2005 Lars Knoll & Zack Rusin, Trolltech
|
||||||
|
* Copyright 2005 Trolltech AS
|
||||||
|
* Copyright 2007 Luca Barbato
|
||||||
|
* Copyright 2008 Aaron Plattner, NVIDIA Corporation
|
||||||
|
* Copyright 2008 Rodrigo Kumpera
|
||||||
|
* Copyright 2008 André Tupinambá
|
||||||
|
* Copyright 2008 Mozilla Corporation
|
||||||
|
* Copyright 2008 Frederic Plourde
|
||||||
|
* Copyright 2009, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
* Copyright 2009, 2010 Nokia Corporation
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
|
* to deal in the Software without restriction, including without limitation
|
||||||
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
* and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
* Software is furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice (including the next
|
||||||
|
* paragraph) shall be included in all copies or substantial portions of the
|
||||||
|
* Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
* DEALINGS IN THE SOFTWARE.
|
||||||
|
*/
|
||||||
|
```
|
||||||
|
|
||||||
|
# [simpleini](https://github.com/aseprite/simpleini/)
|
||||||
|
|
||||||
|
```
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2006-2013 Brodie Thiesfield
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
|
the Software without restriction, including without limitation the rights to
|
||||||
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||||
|
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||||
|
subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||||
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||||
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||||
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
```
|
||||||
|
|
||||||
|
# [stringencoders](https://github.com/client9/stringencoders)
|
||||||
|
|
||||||
|
```
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2016 Nick Galbreath
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
```
|
||||||
|
|
||||||
|
# [tinyxml](http://www.grinninglizard.com/tinyxml/)
|
||||||
|
|
||||||
|
```
|
||||||
|
TinyXML is released under the zlib license:
|
||||||
|
|
||||||
|
This software is provided 'as-is', without any express or implied
|
||||||
|
warranty. In no event will the authors be held liable for any
|
||||||
|
damages arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any
|
||||||
|
purpose, including commercial applications, and to alter it and
|
||||||
|
redistribute it freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must
|
||||||
|
not claim that you wrote the original software. If you use this
|
||||||
|
software in a product, an acknowledgment in the product documentation
|
||||||
|
would be appreciated but is not required.
|
||||||
|
|
||||||
|
2. Altered source versions must be plainly marked as such, and
|
||||||
|
must not be misrepresented as being the original software.
|
||||||
|
|
||||||
|
3. This notice may not be removed or altered from any source
|
||||||
|
distribution.
|
||||||
|
|
||||||
|
--
|
||||||
|
|
||||||
|
TinyXML was originally written by Lee Thomason. Lee reviews changes
|
||||||
|
and releases new versions, with the help of Yves Berquin, Andrew
|
||||||
|
Ellerton, and the tinyXml community.
|
||||||
|
```
|
||||||
|
|
||||||
|
# [Wintab API](http://www.wacomeng.com/windows/docs/WintabBackground.htm)
|
||||||
|
|
||||||
|
```
|
||||||
|
Copyright (c) 2010, Wacom Technology Corporation
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
```
|
||||||
|
|
||||||
|
# [zlib](http://www.gzip.org/zlib/)
|
||||||
|
|
||||||
|
```
|
||||||
|
(C) 1995-2013 Jean-loup Gailly and Mark Adler
|
||||||
|
|
||||||
|
This software is provided 'as-is', without any express or implied
|
||||||
|
warranty. In no event will the authors be held liable for any damages
|
||||||
|
arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose,
|
||||||
|
including commercial applications, and to alter it and redistribute it
|
||||||
|
freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not
|
||||||
|
claim that you wrote the original software. If you use this software
|
||||||
|
in a product, an acknowledgment in the product documentation would be
|
||||||
|
appreciated but is not required.
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
misrepresented as being the original software.
|
||||||
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
|
|
||||||
|
Jean-loup Gailly Mark Adler
|
||||||
|
jloup@gzip.org madler@alumni.caltech.edu
|
||||||
|
```
|
@ -1,29 +0,0 @@
|
|||||||
Jinete - a GUI library
|
|
||||||
Copyright (c) 2003, 2004, 2005, 2007, David A. Capello
|
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions are
|
|
||||||
met:
|
|
||||||
|
|
||||||
* Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
* Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in
|
|
||||||
the documentation and/or other materials provided with the
|
|
||||||
distribution.
|
|
||||||
* Neither the name of the author nor the names of its contributors may
|
|
||||||
be used to endorse or promote products derived from this software
|
|
||||||
without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@ -1,164 +0,0 @@
|
|||||||
The FreeType Project LICENSE
|
|
||||||
----------------------------
|
|
||||||
|
|
||||||
2000-Feb-08
|
|
||||||
|
|
||||||
Copyright 1996-2000 by
|
|
||||||
David Turner, Robert Wilhelm, and Werner Lemberg
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Introduction
|
|
||||||
============
|
|
||||||
|
|
||||||
The FreeType Project is distributed in several archive packages;
|
|
||||||
some of them may contain, in addition to the FreeType font engine,
|
|
||||||
various tools and contributions which rely on, or relate to, the
|
|
||||||
FreeType Project.
|
|
||||||
|
|
||||||
This license applies to all files found in such packages, and
|
|
||||||
which do not fall under their own explicit license. The license
|
|
||||||
affects thus the FreeType font engine, the test programs,
|
|
||||||
documentation and makefiles, at the very least.
|
|
||||||
|
|
||||||
This license was inspired by the BSD, Artistic, and IJG
|
|
||||||
(Independent JPEG Group) licenses, which all encourage inclusion
|
|
||||||
and use of free software in commercial and freeware products
|
|
||||||
alike. As a consequence, its main points are that:
|
|
||||||
|
|
||||||
o We don't promise that this software works. However, we will be
|
|
||||||
interested in any kind of bug reports. (`as is' distribution)
|
|
||||||
|
|
||||||
o You can use this software for whatever you want, in parts or
|
|
||||||
full form, without having to pay us. (`royalty-free' usage)
|
|
||||||
|
|
||||||
o You may not pretend that you wrote this software. If you use
|
|
||||||
it, or only parts of it, in a program, you must acknowledge
|
|
||||||
somewhere in your documentation that you have used the
|
|
||||||
FreeType code. (`credits')
|
|
||||||
|
|
||||||
We specifically permit and encourage the inclusion of this
|
|
||||||
software, with or without modifications, in commercial products.
|
|
||||||
We disclaim all warranties covering The FreeType Project and
|
|
||||||
assume no liability related to The FreeType Project.
|
|
||||||
|
|
||||||
|
|
||||||
Legal Terms
|
|
||||||
===========
|
|
||||||
|
|
||||||
0. Definitions
|
|
||||||
--------------
|
|
||||||
|
|
||||||
Throughout this license, the terms `package', `FreeType Project',
|
|
||||||
and `FreeType archive' refer to the set of files originally
|
|
||||||
distributed by the authors (David Turner, Robert Wilhelm, and
|
|
||||||
Werner Lemberg) as the `FreeType Project', be they named as alpha,
|
|
||||||
beta or final release.
|
|
||||||
|
|
||||||
`You' refers to the licensee, or person using the project, where
|
|
||||||
`using' is a generic term including compiling the project's source
|
|
||||||
code as well as linking it to form a `program' or `executable'.
|
|
||||||
This program is referred to as `a program using the FreeType
|
|
||||||
engine'.
|
|
||||||
|
|
||||||
This license applies to all files distributed in the original
|
|
||||||
FreeType Project, including all source code, binaries and
|
|
||||||
documentation, unless otherwise stated in the file in its
|
|
||||||
original, unmodified form as distributed in the original archive.
|
|
||||||
If you are unsure whether or not a particular file is covered by
|
|
||||||
this license, you must contact us to verify this.
|
|
||||||
|
|
||||||
The FreeType Project is copyright (C) 1996-2000 by David Turner,
|
|
||||||
Robert Wilhelm, and Werner Lemberg. All rights reserved except as
|
|
||||||
specified below.
|
|
||||||
|
|
||||||
1. No Warranty
|
|
||||||
--------------
|
|
||||||
|
|
||||||
THE FREETYPE PROJECT IS PROVIDED `AS IS' WITHOUT WARRANTY OF ANY
|
|
||||||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE. IN NO EVENT WILL ANY OF THE AUTHORS OR COPYRIGHT HOLDERS
|
|
||||||
BE LIABLE FOR ANY DAMAGES CAUSED BY THE USE OR THE INABILITY TO
|
|
||||||
USE, OF THE FREETYPE PROJECT.
|
|
||||||
|
|
||||||
2. Redistribution
|
|
||||||
-----------------
|
|
||||||
|
|
||||||
This license grants a worldwide, royalty-free, perpetual and
|
|
||||||
irrevocable right and license to use, execute, perform, compile,
|
|
||||||
display, copy, create derivative works of, distribute and
|
|
||||||
sublicense the FreeType Project (in both source and object code
|
|
||||||
forms) and derivative works thereof for any purpose; and to
|
|
||||||
authorize others to exercise some or all of the rights granted
|
|
||||||
herein, subject to the following conditions:
|
|
||||||
|
|
||||||
o Redistribution of source code must retain this license file
|
|
||||||
(`FTL.TXT') unaltered; any additions, deletions or changes to
|
|
||||||
the original files must be clearly indicated in accompanying
|
|
||||||
documentation. The copyright notices of the unaltered,
|
|
||||||
original files must be preserved in all copies of source
|
|
||||||
files.
|
|
||||||
|
|
||||||
o Redistribution in binary form must provide a disclaimer that
|
|
||||||
states that the software is based in part of the work of the
|
|
||||||
FreeType Team, in the distribution documentation. We also
|
|
||||||
encourage you to put an URL to the FreeType web page in your
|
|
||||||
documentation, though this isn't mandatory.
|
|
||||||
|
|
||||||
These conditions apply to any software derived from or based on
|
|
||||||
the FreeType Project, not just the unmodified files. If you use
|
|
||||||
our work, you must acknowledge us. However, no fee need be paid
|
|
||||||
to us.
|
|
||||||
|
|
||||||
3. Advertising
|
|
||||||
--------------
|
|
||||||
|
|
||||||
Neither the FreeType authors and contributors nor you shall use
|
|
||||||
the name of the other for commercial, advertising, or promotional
|
|
||||||
purposes without specific prior written permission.
|
|
||||||
|
|
||||||
We suggest, but do not require, that you use one or more of the
|
|
||||||
following phrases to refer to this software in your documentation
|
|
||||||
or advertising materials: `FreeType Project', `FreeType Engine',
|
|
||||||
`FreeType library', or `FreeType Distribution'.
|
|
||||||
|
|
||||||
As you have not signed this license, you are not required to
|
|
||||||
accept it. However, as the FreeType Project is copyrighted
|
|
||||||
material, only this license, or another one contracted with the
|
|
||||||
authors, grants you the right to use, distribute, and modify it.
|
|
||||||
Therefore, by using, distributing, or modifying the FreeType
|
|
||||||
Project, you indicate that you understand and accept all the terms
|
|
||||||
of this license.
|
|
||||||
|
|
||||||
4. Contacts
|
|
||||||
-----------
|
|
||||||
|
|
||||||
There are two mailing lists related to FreeType:
|
|
||||||
|
|
||||||
o freetype@freetype.org
|
|
||||||
|
|
||||||
Discusses general use and applications of FreeType, as well as
|
|
||||||
future and wanted additions to the library and distribution.
|
|
||||||
If you are looking for support, start in this list if you
|
|
||||||
haven't found anything to help you in the documentation.
|
|
||||||
|
|
||||||
o devel@freetype.org
|
|
||||||
|
|
||||||
Discusses bugs, as well as engine internals, design issues,
|
|
||||||
specific licenses, porting, etc.
|
|
||||||
|
|
||||||
o http://www.freetype.org
|
|
||||||
|
|
||||||
Holds the current FreeType web page, which will allow you to
|
|
||||||
download our latest development version and read online
|
|
||||||
documentation.
|
|
||||||
|
|
||||||
You can also contact us individually at:
|
|
||||||
|
|
||||||
David Turner <david.turner@freetype.org>
|
|
||||||
Robert Wilhelm <robert.wilhelm@freetype.org>
|
|
||||||
Werner Lemberg <werner.lemberg@freetype.org>
|
|
||||||
|
|
||||||
|
|
||||||
--- end of LICENSE.TXT ---
|
|
@ -1,17 +0,0 @@
|
|||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
@ -1,18 +0,0 @@
|
|||||||
This software is provided 'as-is', without any express or implied
|
|
||||||
warranty. In no event will the authors be held liable for any damages
|
|
||||||
arising from the use of this software.
|
|
||||||
|
|
||||||
Permission is granted to anyone to use this software for any purpose,
|
|
||||||
including commercial applications, and to alter it and redistribute it
|
|
||||||
freely, subject to the following restrictions:
|
|
||||||
|
|
||||||
1. The origin of this software must not be misrepresented; you must not
|
|
||||||
claim that you wrote the original software. If you use this software
|
|
||||||
in a product, an acknowledgment in the product documentation would be
|
|
||||||
appreciated but is not required.
|
|
||||||
|
|
||||||
2. Altered source versions must be plainly marked as such, and must not be
|
|
||||||
misrepresented as being the original software.
|
|
||||||
|
|
||||||
3. This notice may not be removed or altered from any source
|
|
||||||
distribution.
|
|
@ -1,24 +0,0 @@
|
|||||||
Allegro is gift-ware. It was created by a number of people working in
|
|
||||||
cooperation, and is given to you freely as a gift. You may use,
|
|
||||||
modify, redistribute, and generally hack it about in any way you like,
|
|
||||||
and you do not have to give us anything in return.
|
|
||||||
|
|
||||||
However, if you like this product you are encouraged to thank us by
|
|
||||||
making a return gift to the Allegro community. This could be by
|
|
||||||
writing an add-on package, providing a useful bug report, making an
|
|
||||||
improvement to the library, or perhaps just releasing the sources of
|
|
||||||
your program so that other people can learn from them. If you
|
|
||||||
redistribute parts of this code or make a game using it, it would be
|
|
||||||
nice if you mentioned Allegro somewhere in the credits, but you are
|
|
||||||
not required to do this. We trust you not to abuse our generosity.
|
|
||||||
|
|
||||||
By Shawn Hargreaves, 18 October 1998.
|
|
||||||
|
|
||||||
DISCLAIMER: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
|
||||||
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
||||||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
|
|
||||||
NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE
|
|
||||||
DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
|
|
||||||
OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
@ -1,21 +0,0 @@
|
|||||||
COPYRIGHT AND PERMISSION NOTICE
|
|
||||||
|
|
||||||
Copyright (c) 1996 - 2011, Daniel Stenberg, <daniel@haxx.se>.
|
|
||||||
|
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Permission to use, copy, modify, and distribute this software for any purpose
|
|
||||||
with or without fee is hereby granted, provided that the above copyright
|
|
||||||
notice and this permission notice appear in all copies.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
|
|
||||||
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
||||||
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
||||||
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
|
||||||
OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
Except as contained in this notice, the name of a copyright holder shall not
|
|
||||||
be used in advertising or otherwise to promote the sale, use or other dealings
|
|
||||||
in this Software without prior written authorization of the copyright holder.
|
|
@ -1,19 +0,0 @@
|
|||||||
The GIFLIB distribution is Copyright (c) 1997 Eric S. Raymond
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
@ -1,28 +0,0 @@
|
|||||||
Copyright 2008, Google Inc.
|
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions are
|
|
||||||
met:
|
|
||||||
|
|
||||||
* Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
* Redistributions in binary form must reproduce the above
|
|
||||||
copyright notice, this list of conditions and the following disclaimer
|
|
||||||
in the documentation and/or other materials provided with the
|
|
||||||
distribution.
|
|
||||||
* Neither the name of Google Inc. nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived from
|
|
||||||
this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@ -1,71 +0,0 @@
|
|||||||
The authors make NO WARRANTY or representation, either express or implied,
|
|
||||||
with respect to this software, its quality, accuracy, merchantability, or
|
|
||||||
fitness for a particular purpose. This software is provided "AS IS", and you,
|
|
||||||
its user, assume the entire risk as to its quality and accuracy.
|
|
||||||
|
|
||||||
This software is copyright (C) 1991-1998, Thomas G. Lane.
|
|
||||||
All Rights Reserved except as specified below.
|
|
||||||
|
|
||||||
Permission is hereby granted to use, copy, modify, and distribute this
|
|
||||||
software (or portions thereof) for any purpose, without fee, subject to these
|
|
||||||
conditions:
|
|
||||||
(1) If any part of the source code for this software is distributed, then this
|
|
||||||
README file must be included, with this copyright and no-warranty notice
|
|
||||||
unaltered; and any additions, deletions, or changes to the original files
|
|
||||||
must be clearly indicated in accompanying documentation.
|
|
||||||
(2) If only executable code is distributed, then the accompanying
|
|
||||||
documentation must state that "this software is based in part on the work of
|
|
||||||
the Independent JPEG Group".
|
|
||||||
(3) Permission for use of this software is granted only if the user accepts
|
|
||||||
full responsibility for any undesirable consequences; the authors accept
|
|
||||||
NO LIABILITY for damages of any kind.
|
|
||||||
|
|
||||||
These conditions apply to any software derived from or based on the IJG code,
|
|
||||||
not just to the unmodified library. If you use our work, you ought to
|
|
||||||
acknowledge us.
|
|
||||||
|
|
||||||
Permission is NOT granted for the use of any IJG author's name or company name
|
|
||||||
in advertising or publicity relating to this software or products derived from
|
|
||||||
it. This software may be referred to only as "the Independent JPEG Group's
|
|
||||||
software".
|
|
||||||
|
|
||||||
We specifically permit and encourage the use of this software as the basis of
|
|
||||||
commercial products, provided that all warranty or liability claims are
|
|
||||||
assumed by the product vendor.
|
|
||||||
|
|
||||||
|
|
||||||
ansi2knr.c is included in this distribution by permission of L. Peter Deutsch,
|
|
||||||
sole proprietor of its copyright holder, Aladdin Enterprises of Menlo Park, CA.
|
|
||||||
ansi2knr.c is NOT covered by the above copyright and conditions, but instead
|
|
||||||
by the usual distribution terms of the Free Software Foundation; principally,
|
|
||||||
that you must include source code if you redistribute it. (See the file
|
|
||||||
ansi2knr.c for full details.) However, since ansi2knr.c is not needed as part
|
|
||||||
of any program generated from the IJG code, this does not limit you more than
|
|
||||||
the foregoing paragraphs do.
|
|
||||||
|
|
||||||
The Unix configuration script "configure" was produced with GNU Autoconf.
|
|
||||||
It is copyright by the Free Software Foundation but is freely distributable.
|
|
||||||
The same holds for its supporting scripts (config.guess, config.sub,
|
|
||||||
ltconfig, ltmain.sh). Another support script, install-sh, is copyright
|
|
||||||
by M.I.T. but is also freely distributable.
|
|
||||||
|
|
||||||
It appears that the arithmetic coding option of the JPEG spec is covered by
|
|
||||||
patents owned by IBM, AT&T, and Mitsubishi. Hence arithmetic coding cannot
|
|
||||||
legally be used without obtaining one or more licenses. For this reason,
|
|
||||||
support for arithmetic coding has been removed from the free JPEG software.
|
|
||||||
(Since arithmetic coding provides only a marginal gain over the unpatented
|
|
||||||
Huffman mode, it is unlikely that very many implementations will support it.)
|
|
||||||
So far as we are aware, there are no patent restrictions on the remaining
|
|
||||||
code.
|
|
||||||
|
|
||||||
The IJG distribution formerly included code to read and write GIF files.
|
|
||||||
To avoid entanglement with the Unisys LZW patent, GIF reading support has
|
|
||||||
been removed altogether, and the GIF writer has been simplified to produce
|
|
||||||
"uncompressed GIFs". This technique does not use the LZW algorithm; the
|
|
||||||
resulting GIF files are larger than usual, but are readable by all standard
|
|
||||||
GIF decoders.
|
|
||||||
|
|
||||||
We are required to state that
|
|
||||||
"The Graphics Interchange Format(c) is the Copyright property of
|
|
||||||
CompuServe Incorporated. GIF(sm) is a Service Mark property of
|
|
||||||
CompuServe Incorporated."
|
|
@ -1,111 +0,0 @@
|
|||||||
|
|
||||||
This copy of the libpng notices is provided for your convenience. In case of
|
|
||||||
any discrepancy between this copy and the notices in the file png.h that is
|
|
||||||
included in the libpng distribution, the latter shall prevail.
|
|
||||||
|
|
||||||
COPYRIGHT NOTICE, DISCLAIMER, and LICENSE:
|
|
||||||
|
|
||||||
If you modify libpng you may insert additional notices immediately following
|
|
||||||
this sentence.
|
|
||||||
|
|
||||||
This code is released under the libpng license.
|
|
||||||
|
|
||||||
libpng versions 1.2.6, August 15, 2004, through 1.5.2, March 31, 2011, are
|
|
||||||
Copyright (c) 2004, 2006-2011 Glenn Randers-Pehrson, and are
|
|
||||||
distributed according to the same disclaimer and license as libpng-1.2.5
|
|
||||||
with the following individual added to the list of Contributing Authors
|
|
||||||
|
|
||||||
Cosmin Truta
|
|
||||||
|
|
||||||
libpng versions 1.0.7, July 1, 2000, through 1.2.5 - October 3, 2002, are
|
|
||||||
Copyright (c) 2000-2002 Glenn Randers-Pehrson, and are
|
|
||||||
distributed according to the same disclaimer and license as libpng-1.0.6
|
|
||||||
with the following individuals added to the list of Contributing Authors
|
|
||||||
|
|
||||||
Simon-Pierre Cadieux
|
|
||||||
Eric S. Raymond
|
|
||||||
Gilles Vollant
|
|
||||||
|
|
||||||
and with the following additions to the disclaimer:
|
|
||||||
|
|
||||||
There is no warranty against interference with your enjoyment of the
|
|
||||||
library or against infringement. There is no warranty that our
|
|
||||||
efforts or the library will fulfill any of your particular purposes
|
|
||||||
or needs. This library is provided with all faults, and the entire
|
|
||||||
risk of satisfactory quality, performance, accuracy, and effort is with
|
|
||||||
the user.
|
|
||||||
|
|
||||||
libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are
|
|
||||||
Copyright (c) 1998, 1999 Glenn Randers-Pehrson, and are
|
|
||||||
distributed according to the same disclaimer and license as libpng-0.96,
|
|
||||||
with the following individuals added to the list of Contributing Authors:
|
|
||||||
|
|
||||||
Tom Lane
|
|
||||||
Glenn Randers-Pehrson
|
|
||||||
Willem van Schaik
|
|
||||||
|
|
||||||
libpng versions 0.89, June 1996, through 0.96, May 1997, are
|
|
||||||
Copyright (c) 1996, 1997 Andreas Dilger
|
|
||||||
Distributed according to the same disclaimer and license as libpng-0.88,
|
|
||||||
with the following individuals added to the list of Contributing Authors:
|
|
||||||
|
|
||||||
John Bowler
|
|
||||||
Kevin Bracey
|
|
||||||
Sam Bushell
|
|
||||||
Magnus Holmgren
|
|
||||||
Greg Roelofs
|
|
||||||
Tom Tanner
|
|
||||||
|
|
||||||
libpng versions 0.5, May 1995, through 0.88, January 1996, are
|
|
||||||
Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.
|
|
||||||
|
|
||||||
For the purposes of this copyright and license, "Contributing Authors"
|
|
||||||
is defined as the following set of individuals:
|
|
||||||
|
|
||||||
Andreas Dilger
|
|
||||||
Dave Martindale
|
|
||||||
Guy Eric Schalnat
|
|
||||||
Paul Schmidt
|
|
||||||
Tim Wegner
|
|
||||||
|
|
||||||
The PNG Reference Library is supplied "AS IS". The Contributing Authors
|
|
||||||
and Group 42, Inc. disclaim all warranties, expressed or implied,
|
|
||||||
including, without limitation, the warranties of merchantability and of
|
|
||||||
fitness for any purpose. The Contributing Authors and Group 42, Inc.
|
|
||||||
assume no liability for direct, indirect, incidental, special, exemplary,
|
|
||||||
or consequential damages, which may result from the use of the PNG
|
|
||||||
Reference Library, even if advised of the possibility of such damage.
|
|
||||||
|
|
||||||
Permission is hereby granted to use, copy, modify, and distribute this
|
|
||||||
source code, or portions hereof, for any purpose, without fee, subject
|
|
||||||
to the following restrictions:
|
|
||||||
|
|
||||||
1. The origin of this source code must not be misrepresented.
|
|
||||||
|
|
||||||
2. Altered versions must be plainly marked as such and must not
|
|
||||||
be misrepresented as being the original source.
|
|
||||||
|
|
||||||
3. This Copyright notice may not be removed or altered from any
|
|
||||||
source or altered source distribution.
|
|
||||||
|
|
||||||
The Contributing Authors and Group 42, Inc. specifically permit, without
|
|
||||||
fee, and encourage the use of this source code as a component to
|
|
||||||
supporting the PNG file format in commercial products. If you use this
|
|
||||||
source code in a product, acknowledgment is not required but would be
|
|
||||||
appreciated.
|
|
||||||
|
|
||||||
|
|
||||||
A "png_get_copyright" function is available, for convenient use in "about"
|
|
||||||
boxes and the like:
|
|
||||||
|
|
||||||
printf("%s",png_get_copyright(NULL));
|
|
||||||
|
|
||||||
Also, the PNG logo (in PNG format, of course) is supplied in the
|
|
||||||
files "pngbar.png" and "pngbar.jpg (88x31) and "pngnow.png" (98x31).
|
|
||||||
|
|
||||||
Libpng is OSI Certified Open Source Software. OSI Certified Open Source is a
|
|
||||||
certification mark of the Open Source Initiative.
|
|
||||||
|
|
||||||
Glenn Randers-Pehrson
|
|
||||||
glennrp at users.sourceforge.net
|
|
||||||
March 31, 2011
|
|
@ -1,78 +0,0 @@
|
|||||||
/* $XFree86: xc/programs/Xserver/mi/miregion.c,v 1.9 2003/04/23 21:51:53 tsi Exp $ */
|
|
||||||
/***********************************************************
|
|
||||||
|
|
||||||
Copyright 1987, 1988, 1989, 1998, 2007 The Open Group
|
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this software and its
|
|
||||||
documentation for any purpose is hereby granted without fee, provided that
|
|
||||||
the above copyright notice appear in all copies and that both that
|
|
||||||
copyright notice and this permission notice appear in supporting
|
|
||||||
documentation.
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
|
||||||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
||||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
Except as contained in this notice, the name of The Open Group shall not be
|
|
||||||
used in advertising or otherwise to promote the sale, use or other dealings
|
|
||||||
in this Software without prior written authorization from The Open Group.
|
|
||||||
|
|
||||||
|
|
||||||
Copyright 1987, 1988, 1989 by
|
|
||||||
Digital Equipment Corporation, Maynard, Massachusetts.
|
|
||||||
|
|
||||||
All Rights Reserved
|
|
||||||
|
|
||||||
Permission to use, copy, modify, and distribute this software and its
|
|
||||||
documentation for any purpose and without fee is hereby granted,
|
|
||||||
provided that the above copyright notice appear in all copies and that
|
|
||||||
both that copyright notice and this permission notice appear in
|
|
||||||
supporting documentation, and that the name of Digital not be
|
|
||||||
used in advertising or publicity pertaining to distribution of the
|
|
||||||
software without specific, written prior permission.
|
|
||||||
|
|
||||||
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
|
||||||
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
|
|
||||||
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
|
|
||||||
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
||||||
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
||||||
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
|
||||||
SOFTWARE.
|
|
||||||
|
|
||||||
******************************************************************/
|
|
||||||
/* $Xorg: miregion.c,v 1.4 2001/02/09 02:05:21 xorgcvs Exp $ */
|
|
||||||
|
|
||||||
/* The panoramix components contained the following notice */
|
|
||||||
/*****************************************************************
|
|
||||||
|
|
||||||
Copyright (c) 1991, 1997 Digital Equipment Corporation, Maynard, Massachusetts.
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software.
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
|
|
||||||
BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY,
|
|
||||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
||||||
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
Except as contained in this notice, the name of Digital Equipment Corporation
|
|
||||||
shall not be used in advertising or otherwise to promote the sale, use or other
|
|
||||||
dealings in this Software without prior written authorization from Digital
|
|
||||||
Equipment Corporation.
|
|
||||||
|
|
||||||
******************************************************************/
|
|
@ -132,6 +132,18 @@ foreach(fn ${src_data_files})
|
|||||||
list(APPEND out_data_files ${CMAKE_BINARY_DIR}/bin/data/${fn})
|
list(APPEND out_data_files ${CMAKE_BINARY_DIR}/bin/data/${fn})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
add_custom_command(
|
||||||
|
OUTPUT ${CMAKE_BINARY_DIR}/bin/data/docs/README.md
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/README.md ${CMAKE_BINARY_DIR}/bin/data/docs/README.md
|
||||||
|
MAIN_DEPENDENCY ${CMAKE_SOURCE_DIR}/README.md)
|
||||||
|
list(APPEND out_data_files ${CMAKE_BINARY_DIR}/bin/data/docs/README.md)
|
||||||
|
|
||||||
|
add_custom_command(
|
||||||
|
OUTPUT ${CMAKE_BINARY_DIR}/bin/data/docs/LICENSES.md
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/docs/LICENSES.md ${CMAKE_BINARY_DIR}/bin/data/docs/LICENSES.md
|
||||||
|
MAIN_DEPENDENCY ${CMAKE_SOURCE_DIR}/docs/LICENSES.md)
|
||||||
|
list(APPEND out_data_files ${CMAKE_BINARY_DIR}/bin/data/docs/LICENSES.md)
|
||||||
|
|
||||||
add_custom_target(copy_data DEPENDS ${out_data_files})
|
add_custom_target(copy_data DEPENDS ${out_data_files})
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
|
@ -60,6 +60,9 @@ if(WITH_WEBP_SUPPORT)
|
|||||||
add_definitions(-DASEPRITE_WITH_WEBP_SUPPORT)
|
add_definitions(-DASEPRITE_WITH_WEBP_SUPPORT)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# cmark include files
|
||||||
|
include_directories(${CMAKE_BINARY_DIR}/third_party/cmark)
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# app-lib target
|
# app-lib target
|
||||||
|
|
||||||
@ -246,6 +249,7 @@ add_library(app-lib
|
|||||||
commands/cmd_new_layer_set.cpp
|
commands/cmd_new_layer_set.cpp
|
||||||
commands/cmd_new_sprite_from_selection.cpp
|
commands/cmd_new_sprite_from_selection.cpp
|
||||||
commands/cmd_onionskin.cpp
|
commands/cmd_onionskin.cpp
|
||||||
|
commands/cmd_open_browser.cpp
|
||||||
commands/cmd_open_file.cpp
|
commands/cmd_open_file.cpp
|
||||||
commands/cmd_open_in_folder.cpp
|
commands/cmd_open_in_folder.cpp
|
||||||
commands/cmd_open_with_app.cpp
|
commands/cmd_open_with_app.cpp
|
||||||
@ -359,6 +363,7 @@ add_library(app-lib
|
|||||||
ui/ani_controls.cpp
|
ui/ani_controls.cpp
|
||||||
ui/app_menuitem.cpp
|
ui/app_menuitem.cpp
|
||||||
ui/backup_indicator.cpp
|
ui/backup_indicator.cpp
|
||||||
|
ui/browser_view.cpp
|
||||||
ui/brush_popup.cpp
|
ui/brush_popup.cpp
|
||||||
ui/button_set.cpp
|
ui/button_set.cpp
|
||||||
ui/color_bar.cpp
|
ui/color_bar.cpp
|
||||||
@ -470,6 +475,7 @@ target_link_libraries(app-lib
|
|||||||
she
|
she
|
||||||
ui-lib
|
ui-lib
|
||||||
undo
|
undo
|
||||||
|
libcmark_static
|
||||||
${TINYXML_LIBRARY}
|
${TINYXML_LIBRARY}
|
||||||
${JPEG_LIBRARIES}
|
${JPEG_LIBRARIES}
|
||||||
${GIF_LIBRARIES}
|
${GIF_LIBRARIES}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Aseprite
|
// Aseprite
|
||||||
// Copyright (C) 2001-2015 David Capello
|
// Copyright (C) 2001-2016 David Capello
|
||||||
//
|
//
|
||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
// the End-User License Agreement for Aseprite.
|
// the End-User License Agreement for Aseprite.
|
||||||
@ -8,8 +8,10 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "app/app.h"
|
||||||
#include "app/commands/command.h"
|
#include "app/commands/command.h"
|
||||||
#include "app/modules/gui.h"
|
#include "app/modules/gui.h"
|
||||||
|
#include "app/ui/main_window.h"
|
||||||
#include "base/bind.h"
|
#include "base/bind.h"
|
||||||
#include "ui/ui.h"
|
#include "ui/ui.h"
|
||||||
|
|
||||||
@ -36,23 +38,26 @@ AboutCommand::AboutCommand()
|
|||||||
void AboutCommand::onExecute(Context* context)
|
void AboutCommand::onExecute(Context* context)
|
||||||
{
|
{
|
||||||
base::UniquePtr<Window> window(new Window(Window::WithTitleBar, "About " PACKAGE));
|
base::UniquePtr<Window> window(new Window(Window::WithTitleBar, "About " PACKAGE));
|
||||||
Box* box1 = new Box(VERTICAL);
|
auto box1 = new Box(VERTICAL);
|
||||||
Grid* grid = new Grid(2, false);
|
auto grid = new Grid(2, false);
|
||||||
Label* title = new Label(PACKAGE " v" VERSION);
|
auto title = new Label(PACKAGE " v" VERSION);
|
||||||
Label* subtitle = new Label("Animated sprite editor & pixel art tool");
|
auto subtitle = new Label("Animated sprite editor & pixel art tool");
|
||||||
Separator* authors_separator1 = new Separator("Authors:", HORIZONTAL | TOP);
|
auto authors_separator1 = new Separator("Authors:", HORIZONTAL | TOP);
|
||||||
Separator* authors_separator2 = new Separator("", HORIZONTAL);
|
auto authors_separator2 = new Separator("", HORIZONTAL);
|
||||||
Label* author1 = new LinkLabel("http://davidcapello.com/", "David Capello");
|
auto author1 = new LinkLabel("http://davidcapello.com/", "David Capello");
|
||||||
Label* author1_desc = new Label("- Lead developer, graphics & maintainer");
|
auto author1_desc = new Label("- Lead developer, graphics & maintainer");
|
||||||
Label* author2 = new LinkLabel("http://ilkke.blogspot.com/", "Ilija Melentijevic");
|
auto author2 = new LinkLabel("http://ilkke.blogspot.com/", "Ilija Melentijevic");
|
||||||
Label* author2_desc = new Label("- Default skin & graphics introduced in v0.8");
|
auto author2_desc = new Label("- Default skin & graphics introduced in v0.8");
|
||||||
Label* author3 = new LinkLabel(WEBSITE_CONTRIBUTORS, "Contributors");
|
auto author3 = new LinkLabel(WEBSITE_CONTRIBUTORS, "Contributors");
|
||||||
Box* bottom_box1 = new Box(HORIZONTAL);
|
auto author4 = new Label("and");
|
||||||
Box* bottom_box2 = new Box(HORIZONTAL);
|
auto author5 = new LinkLabel("", "Open Source Projects");
|
||||||
Box* bottom_box3 = new Box(HORIZONTAL);
|
auto author3_line = new Box(HORIZONTAL);
|
||||||
Label* copyright = new Label(COPYRIGHT);
|
auto bottom_box1 = new Box(HORIZONTAL);
|
||||||
Label* website = new LinkLabel(WEBSITE);
|
auto bottom_box2 = new Box(HORIZONTAL);
|
||||||
Button* close_button = new Button("&Close");
|
auto bottom_box3 = new Box(HORIZONTAL);
|
||||||
|
auto copyright = new Label(COPYRIGHT);
|
||||||
|
auto website = new LinkLabel(WEBSITE);
|
||||||
|
auto close_button = new Button("&Close");
|
||||||
|
|
||||||
grid->addChildInCell(title, 2, 1, 0);
|
grid->addChildInCell(title, 2, 1, 0);
|
||||||
grid->addChildInCell(subtitle, 2, 1, 0);
|
grid->addChildInCell(subtitle, 2, 1, 0);
|
||||||
@ -61,7 +66,7 @@ void AboutCommand::onExecute(Context* context)
|
|||||||
grid->addChildInCell(author1_desc, 1, 1, 0);
|
grid->addChildInCell(author1_desc, 1, 1, 0);
|
||||||
grid->addChildInCell(author2, 1, 1, 0);
|
grid->addChildInCell(author2, 1, 1, 0);
|
||||||
grid->addChildInCell(author2_desc, 1, 1, 0);
|
grid->addChildInCell(author2_desc, 1, 1, 0);
|
||||||
grid->addChildInCell(author3, 2, 1, 0);
|
grid->addChildInCell(author3_line, 2, 1, 0);
|
||||||
grid->addChildInCell(authors_separator2, 2, 1, 0);
|
grid->addChildInCell(authors_separator2, 2, 1, 0);
|
||||||
grid->addChildInCell(copyright, 2, 1, 0);
|
grid->addChildInCell(copyright, 2, 1, 0);
|
||||||
grid->addChildInCell(website, 2, 1, 0);
|
grid->addChildInCell(website, 2, 1, 0);
|
||||||
@ -69,6 +74,10 @@ void AboutCommand::onExecute(Context* context)
|
|||||||
|
|
||||||
close_button->setFocusMagnet(true);
|
close_button->setFocusMagnet(true);
|
||||||
|
|
||||||
|
author3_line->addChild(author3);
|
||||||
|
author3_line->addChild(author4);
|
||||||
|
author3_line->addChild(author5);
|
||||||
|
|
||||||
bottom_box2->setExpansive(true);
|
bottom_box2->setExpansive(true);
|
||||||
bottom_box3->setExpansive(true);
|
bottom_box3->setExpansive(true);
|
||||||
|
|
||||||
@ -88,6 +97,12 @@ void AboutCommand::onExecute(Context* context)
|
|||||||
|
|
||||||
close_button->Click.connect(base::Bind<void>(&Window::closeWindow, window.get(), close_button));
|
close_button->Click.connect(base::Bind<void>(&Window::closeWindow, window.get(), close_button));
|
||||||
|
|
||||||
|
author5->Click.connect(
|
||||||
|
[&window]{
|
||||||
|
window->closeWindow(nullptr);
|
||||||
|
App::instance()->mainWindow()->showBrowser("data/docs/LICENSES.md");
|
||||||
|
});
|
||||||
|
|
||||||
window->openWindowInForeground();
|
window->openWindowInForeground();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
54
src/app/commands/cmd_open_browser.cpp
Normal file
54
src/app/commands/cmd_open_browser.cpp
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
// Aseprite
|
||||||
|
// Copyright (C) 2016 David Capello
|
||||||
|
//
|
||||||
|
// This program is distributed under the terms of
|
||||||
|
// the End-User License Agreement for Aseprite.
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "app/app.h"
|
||||||
|
#include "app/commands/command.h"
|
||||||
|
#include "app/commands/params.h"
|
||||||
|
#include "app/context.h"
|
||||||
|
#include "app/ui/main_window.h"
|
||||||
|
|
||||||
|
namespace app {
|
||||||
|
|
||||||
|
class OpenBrowserCommand : public Command {
|
||||||
|
public:
|
||||||
|
OpenBrowserCommand();
|
||||||
|
Command* clone() const override { return new OpenBrowserCommand(*this); }
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void onLoadParams(const Params& params) override;
|
||||||
|
void onExecute(Context* context) override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string m_filename;
|
||||||
|
};
|
||||||
|
|
||||||
|
OpenBrowserCommand::OpenBrowserCommand()
|
||||||
|
: Command("OpenBrowser",
|
||||||
|
"Open Browser",
|
||||||
|
CmdUIOnlyFlag)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void OpenBrowserCommand::onLoadParams(const Params& params)
|
||||||
|
{
|
||||||
|
m_filename = params.get("filename");
|
||||||
|
}
|
||||||
|
|
||||||
|
void OpenBrowserCommand::onExecute(Context* context)
|
||||||
|
{
|
||||||
|
App::instance()->mainWindow()->showBrowser(m_filename);
|
||||||
|
}
|
||||||
|
|
||||||
|
Command* CommandFactory::createOpenBrowserCommand()
|
||||||
|
{
|
||||||
|
return new OpenBrowserCommand;
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace app
|
@ -81,6 +81,7 @@ FOR_EACH_COMMAND(NewFrameTag)
|
|||||||
FOR_EACH_COMMAND(NewLayer)
|
FOR_EACH_COMMAND(NewLayer)
|
||||||
FOR_EACH_COMMAND(NewLayerSet)
|
FOR_EACH_COMMAND(NewLayerSet)
|
||||||
FOR_EACH_COMMAND(NewSpriteFromSelection)
|
FOR_EACH_COMMAND(NewSpriteFromSelection)
|
||||||
|
FOR_EACH_COMMAND(OpenBrowser)
|
||||||
FOR_EACH_COMMAND(OpenFile)
|
FOR_EACH_COMMAND(OpenFile)
|
||||||
FOR_EACH_COMMAND(OpenInFolder)
|
FOR_EACH_COMMAND(OpenInFolder)
|
||||||
FOR_EACH_COMMAND(OpenWithApp)
|
FOR_EACH_COMMAND(OpenWithApp)
|
||||||
|
310
src/app/ui/browser_view.cpp
Normal file
310
src/app/ui/browser_view.cpp
Normal file
@ -0,0 +1,310 @@
|
|||||||
|
// Aseprite
|
||||||
|
// Copyright (C) 2016 David Capello
|
||||||
|
//
|
||||||
|
// This program is distributed under the terms of
|
||||||
|
// the End-User License Agreement for Aseprite.
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "app/app_menus.h"
|
||||||
|
#include "app/resource_finder.h"
|
||||||
|
#include "app/ui/browser_view.h"
|
||||||
|
#include "app/ui/skin/skin_style_property.h"
|
||||||
|
#include "app/ui/skin/skin_theme.h"
|
||||||
|
#include "app/ui/workspace.h"
|
||||||
|
#include "base/file_handle.h"
|
||||||
|
#include "base/fs.h"
|
||||||
|
#include "ui/box.h"
|
||||||
|
#include "ui/link_label.h"
|
||||||
|
#include "ui/menu.h"
|
||||||
|
#include "ui/message.h"
|
||||||
|
#include "ui/system.h"
|
||||||
|
#include "ui/textbox.h"
|
||||||
|
|
||||||
|
#include "cmark.h"
|
||||||
|
|
||||||
|
#include <array>
|
||||||
|
|
||||||
|
namespace app {
|
||||||
|
|
||||||
|
using namespace ui;
|
||||||
|
using namespace app::skin;
|
||||||
|
|
||||||
|
class BrowserView::CMarkBox : public ui::VBox {
|
||||||
|
public:
|
||||||
|
CMarkBox() {
|
||||||
|
setBgColor(SkinTheme::instance()->colors.textboxFace());
|
||||||
|
setBorder(gfx::Border(4*guiscale()));
|
||||||
|
}
|
||||||
|
|
||||||
|
void loadFile(const std::string& inputFile) {
|
||||||
|
std::string file = inputFile;
|
||||||
|
if (file.size() >= 5 && file.substr(0, 5) == "data/") {
|
||||||
|
ResourceFinder rf;
|
||||||
|
rf.includeDataDir(file.substr(5).c_str());
|
||||||
|
if (rf.findFirst())
|
||||||
|
file = rf.filename();
|
||||||
|
}
|
||||||
|
|
||||||
|
cmark_parser* parser = cmark_parser_new(CMARK_OPT_DEFAULT);
|
||||||
|
FILE* fp = base::open_file_raw(file, "rb");
|
||||||
|
if (fp) {
|
||||||
|
std::array<char, 4096> buffer;
|
||||||
|
size_t bytes;
|
||||||
|
while ((bytes = std::fread(&buffer[0], 1, buffer.size(), fp)) > 0) {
|
||||||
|
cmark_parser_feed(parser, &buffer[0], bytes);
|
||||||
|
if (bytes < buffer.size()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cmark_node* root = cmark_parser_finish(parser);
|
||||||
|
|
||||||
|
if (root) {
|
||||||
|
processNode(root);
|
||||||
|
cmark_node_free(root);
|
||||||
|
}
|
||||||
|
fclose(fp);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
clear();
|
||||||
|
addTextBox("File not found: " + file);
|
||||||
|
}
|
||||||
|
cmark_parser_free(parser);
|
||||||
|
|
||||||
|
relayout();
|
||||||
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
bool onProcessMessage(Message* msg) override {
|
||||||
|
switch (msg->type()) {
|
||||||
|
|
||||||
|
case kMouseWheelMessage: {
|
||||||
|
View* view = View::getView(this);
|
||||||
|
if (view) {
|
||||||
|
auto mouseMsg = static_cast<MouseMessage*>(msg);
|
||||||
|
gfx::Point scroll = view->viewScroll();
|
||||||
|
|
||||||
|
if (mouseMsg->preciseWheel())
|
||||||
|
scroll += mouseMsg->wheelDelta();
|
||||||
|
else
|
||||||
|
scroll += mouseMsg->wheelDelta() * textHeight()*3;
|
||||||
|
|
||||||
|
view->setViewScroll(scroll);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return VBox::onProcessMessage(msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
void clear() {
|
||||||
|
// Delete all children
|
||||||
|
while (firstChild())
|
||||||
|
delete firstChild();
|
||||||
|
}
|
||||||
|
|
||||||
|
void processNode(cmark_node* root) {
|
||||||
|
clear();
|
||||||
|
|
||||||
|
std::string content;
|
||||||
|
bool inHeading = false;
|
||||||
|
bool inImage = false;
|
||||||
|
bool extraSeparation = true;
|
||||||
|
const char* inLink = nullptr;
|
||||||
|
|
||||||
|
cmark_iter* iter = cmark_iter_new(root);
|
||||||
|
cmark_event_type ev_type;
|
||||||
|
while ((ev_type = cmark_iter_next(iter)) != CMARK_EVENT_DONE) {
|
||||||
|
cmark_node* cur = cmark_iter_get_node(iter);
|
||||||
|
|
||||||
|
switch (cmark_node_get_type(cur)) {
|
||||||
|
|
||||||
|
case CMARK_NODE_CODE_BLOCK:
|
||||||
|
case CMARK_NODE_TEXT: {
|
||||||
|
const char* text = cmark_node_get_literal(cur);
|
||||||
|
if (!inImage && text) {
|
||||||
|
if (inLink && inHeading) {
|
||||||
|
closeContent(content);
|
||||||
|
addLink(inLink, text);
|
||||||
|
extraSeparation = false;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (inLink && !content.empty() &&
|
||||||
|
content[content.size()-1] != ' ') {
|
||||||
|
content += " ";
|
||||||
|
}
|
||||||
|
content += text;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
case CMARK_NODE_LINEBREAK: {
|
||||||
|
content += "\n";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
case CMARK_NODE_ITEM: {
|
||||||
|
if (ev_type == CMARK_EVENT_ENTER)
|
||||||
|
content += " - ";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
case CMARK_NODE_THEMATIC_BREAK: {
|
||||||
|
if (ev_type == CMARK_EVENT_ENTER) {
|
||||||
|
closeContent(content);
|
||||||
|
addSeparator();
|
||||||
|
}
|
||||||
|
else if (ev_type == CMARK_EVENT_EXIT) {
|
||||||
|
content += "\n\n";
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
case CMARK_NODE_HEADING: {
|
||||||
|
if (ev_type == CMARK_EVENT_ENTER) {
|
||||||
|
inHeading = true;
|
||||||
|
|
||||||
|
closeContent(content);
|
||||||
|
addSeparator();
|
||||||
|
}
|
||||||
|
else if (ev_type == CMARK_EVENT_EXIT) {
|
||||||
|
inHeading = false;
|
||||||
|
|
||||||
|
content += "\n";
|
||||||
|
if (extraSeparation)
|
||||||
|
content += "\n";
|
||||||
|
else
|
||||||
|
extraSeparation = true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
case CMARK_NODE_LIST:
|
||||||
|
case CMARK_NODE_PARAGRAPH: {
|
||||||
|
if (ev_type == CMARK_EVENT_EXIT)
|
||||||
|
content += "\n";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
case CMARK_NODE_IMAGE: {
|
||||||
|
if (ev_type == CMARK_EVENT_ENTER)
|
||||||
|
inImage = true;
|
||||||
|
else if (ev_type == CMARK_EVENT_EXIT)
|
||||||
|
inImage = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
case CMARK_NODE_LINK: {
|
||||||
|
if (ev_type == CMARK_EVENT_ENTER) {
|
||||||
|
inLink = cmark_node_get_url(cur);
|
||||||
|
}
|
||||||
|
else if (ev_type == CMARK_EVENT_EXIT) {
|
||||||
|
inLink = nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cmark_iter_free(iter);
|
||||||
|
|
||||||
|
closeContent(content);
|
||||||
|
}
|
||||||
|
|
||||||
|
void closeContent(std::string& content) {
|
||||||
|
if (!content.empty()) {
|
||||||
|
addTextBox(content);
|
||||||
|
content.clear();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void addSeparator() {
|
||||||
|
auto sep = new Separator("", HORIZONTAL);
|
||||||
|
sep->setBgColor(SkinTheme::instance()->colors.textboxFace());
|
||||||
|
addChild(sep);
|
||||||
|
}
|
||||||
|
|
||||||
|
void addTextBox(const std::string& content) {
|
||||||
|
addChild(new TextBox(content, LEFT | WORDWRAP));
|
||||||
|
}
|
||||||
|
|
||||||
|
void addLink(const std::string& url, const std::string& text) {
|
||||||
|
addChild(new LinkLabel(url, text));
|
||||||
|
}
|
||||||
|
|
||||||
|
void relayout() {
|
||||||
|
layout();
|
||||||
|
auto view = View::getView(this);
|
||||||
|
if (view) {
|
||||||
|
view->updateView();
|
||||||
|
view->setViewScroll(gfx::Point(0, 0));
|
||||||
|
}
|
||||||
|
|
||||||
|
invalidate();
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
BrowserView::BrowserView()
|
||||||
|
: m_textBox(new CMarkBox)
|
||||||
|
{
|
||||||
|
SkinTheme* theme = static_cast<SkinTheme*>(this->theme());
|
||||||
|
|
||||||
|
addChild(&m_view);
|
||||||
|
|
||||||
|
m_view.attachToView(m_textBox);
|
||||||
|
m_view.setExpansive(true);
|
||||||
|
m_view.setProperty(SkinStylePropertyPtr(
|
||||||
|
new SkinStyleProperty(theme->styles.workspaceView())));
|
||||||
|
}
|
||||||
|
|
||||||
|
BrowserView::~BrowserView()
|
||||||
|
{
|
||||||
|
delete m_textBox;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BrowserView::loadFile(const std::string& file)
|
||||||
|
{
|
||||||
|
m_title = base::get_file_title(file);
|
||||||
|
m_filename = file;
|
||||||
|
|
||||||
|
m_textBox->loadFile(file);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string BrowserView::getTabText()
|
||||||
|
{
|
||||||
|
return m_title;
|
||||||
|
}
|
||||||
|
|
||||||
|
TabIcon BrowserView::getTabIcon()
|
||||||
|
{
|
||||||
|
return TabIcon::NONE;
|
||||||
|
}
|
||||||
|
|
||||||
|
WorkspaceView* BrowserView::cloneWorkspaceView()
|
||||||
|
{
|
||||||
|
return new BrowserView();
|
||||||
|
}
|
||||||
|
|
||||||
|
void BrowserView::onWorkspaceViewSelected()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
bool BrowserView::onCloseView(Workspace* workspace, bool quitting)
|
||||||
|
{
|
||||||
|
workspace->removeView(this);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void BrowserView::onTabPopup(Workspace* workspace)
|
||||||
|
{
|
||||||
|
Menu* menu = AppMenus::instance()->getTabPopupMenu();
|
||||||
|
if (!menu)
|
||||||
|
return;
|
||||||
|
|
||||||
|
menu->showPopup(ui::get_mouse_position());
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace app
|
48
src/app/ui/browser_view.h
Normal file
48
src/app/ui/browser_view.h
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
// Aseprite
|
||||||
|
// Copyright (C) 2016 David Capello
|
||||||
|
//
|
||||||
|
// This program is distributed under the terms of
|
||||||
|
// the End-User License Agreement for Aseprite.
|
||||||
|
|
||||||
|
#ifndef APP_UI_BROWSER_VIEW_H_INCLUDED
|
||||||
|
#define APP_UI_BROWSER_VIEW_H_INCLUDED
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "app/ui/tabs.h"
|
||||||
|
#include "app/ui/workspace_view.h"
|
||||||
|
#include "ui/view.h"
|
||||||
|
|
||||||
|
namespace app {
|
||||||
|
class BrowserView : public ui::Widget
|
||||||
|
, public TabView
|
||||||
|
, public WorkspaceView {
|
||||||
|
public:
|
||||||
|
BrowserView();
|
||||||
|
~BrowserView();
|
||||||
|
|
||||||
|
void loadFile(const std::string& file);
|
||||||
|
|
||||||
|
// TabView implementation
|
||||||
|
std::string getTabText() override;
|
||||||
|
TabIcon getTabIcon() override;
|
||||||
|
|
||||||
|
// WorkspaceView implementation
|
||||||
|
ui::Widget* getContentWidget() override { return this; }
|
||||||
|
bool canCloneWorkspaceView() override { return true; }
|
||||||
|
WorkspaceView* cloneWorkspaceView() override;
|
||||||
|
void onWorkspaceViewSelected() override;
|
||||||
|
bool onCloseView(Workspace* workspace, bool quitting) override;
|
||||||
|
void onTabPopup(Workspace* workspace) override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
class CMarkBox;
|
||||||
|
|
||||||
|
ui::View m_view;
|
||||||
|
CMarkBox* m_textBox;
|
||||||
|
std::string m_title;
|
||||||
|
std::string m_filename;
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace app
|
||||||
|
|
||||||
|
#endif
|
@ -17,6 +17,7 @@
|
|||||||
#include "app/modules/editors.h"
|
#include "app/modules/editors.h"
|
||||||
#include "app/notification_delegate.h"
|
#include "app/notification_delegate.h"
|
||||||
#include "app/pref/preferences.h"
|
#include "app/pref/preferences.h"
|
||||||
|
#include "app/ui/browser_view.h"
|
||||||
#include "app/ui/color_bar.h"
|
#include "app/ui/color_bar.h"
|
||||||
#include "app/ui/context_bar.h"
|
#include "app/ui/context_bar.h"
|
||||||
#include "app/ui/document_view.h"
|
#include "app/ui/document_view.h"
|
||||||
@ -94,6 +95,7 @@ MainWindow::MainWindow()
|
|||||||
: m_mode(NormalMode)
|
: m_mode(NormalMode)
|
||||||
, m_homeView(nullptr)
|
, m_homeView(nullptr)
|
||||||
, m_scalePanic(nullptr)
|
, m_scalePanic(nullptr)
|
||||||
|
, m_browserView(nullptr)
|
||||||
#ifdef ENABLE_SCRIPTING
|
#ifdef ENABLE_SCRIPTING
|
||||||
, m_devConsoleView(nullptr)
|
, m_devConsoleView(nullptr)
|
||||||
#endif
|
#endif
|
||||||
@ -167,6 +169,12 @@ MainWindow::~MainWindow()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (m_browserView) {
|
||||||
|
if (m_browserView->parent())
|
||||||
|
m_workspace->removeView(m_browserView);
|
||||||
|
delete m_browserView;
|
||||||
|
}
|
||||||
|
|
||||||
if (m_homeView) {
|
if (m_homeView) {
|
||||||
if (m_homeView->parent())
|
if (m_homeView->parent())
|
||||||
m_workspace->removeView(m_homeView);
|
m_workspace->removeView(m_homeView);
|
||||||
@ -247,6 +255,19 @@ bool MainWindow::isHomeSelected()
|
|||||||
return (m_tabsBar->getSelectedTab() == m_homeView && m_homeView);
|
return (m_tabsBar->getSelectedTab() == m_homeView && m_homeView);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::showBrowser(const std::string& filename)
|
||||||
|
{
|
||||||
|
if (!m_browserView)
|
||||||
|
m_browserView = new BrowserView;
|
||||||
|
|
||||||
|
m_browserView->loadFile(filename);
|
||||||
|
|
||||||
|
if (!m_browserView->parent()) {
|
||||||
|
m_workspace->addView(m_browserView);
|
||||||
|
m_tabsBar->selectTab(m_browserView);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::showDevConsole()
|
void MainWindow::showDevConsole()
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_SCRIPTING
|
#ifdef ENABLE_SCRIPTING
|
||||||
|
@ -23,6 +23,7 @@ namespace app {
|
|||||||
class CheckUpdateDelegate;
|
class CheckUpdateDelegate;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
class BrowserView;
|
||||||
class ColorBar;
|
class ColorBar;
|
||||||
class ContextBar;
|
class ContextBar;
|
||||||
class DevConsoleView;
|
class DevConsoleView;
|
||||||
@ -70,6 +71,7 @@ namespace app {
|
|||||||
void showHome();
|
void showHome();
|
||||||
bool isHomeSelected();
|
bool isHomeSelected();
|
||||||
void showDevConsole();
|
void showDevConsole();
|
||||||
|
void showBrowser(const std::string& filename);
|
||||||
|
|
||||||
Mode getMode() const { return m_mode; }
|
Mode getMode() const { return m_mode; }
|
||||||
void setMode(Mode mode);
|
void setMode(Mode mode);
|
||||||
@ -116,6 +118,7 @@ namespace app {
|
|||||||
HomeView* m_homeView;
|
HomeView* m_homeView;
|
||||||
Notifications* m_notifications;
|
Notifications* m_notifications;
|
||||||
INotificationDelegate* m_scalePanic;
|
INotificationDelegate* m_scalePanic;
|
||||||
|
BrowserView* m_browserView;
|
||||||
#ifdef ENABLE_SCRIPTING
|
#ifdef ENABLE_SCRIPTING
|
||||||
DevConsoleView* m_devConsoleView;
|
DevConsoleView* m_devConsoleView;
|
||||||
#endif
|
#endif
|
||||||
|
@ -206,7 +206,7 @@ void drawTextBox(Graphics* g, Widget* widget,
|
|||||||
else // Left align
|
else // Left align
|
||||||
xout = x;
|
xout = x;
|
||||||
|
|
||||||
g->drawUIString(beg, fg, gfx::ColorNone, gfx::Point(xout, y));
|
g->drawString(beg, fg, gfx::ColorNone, gfx::Point(xout, y));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (w)
|
if (w)
|
||||||
|
18
third_party/CMakeLists.txt
vendored
18
third_party/CMakeLists.txt
vendored
@ -86,3 +86,21 @@ if(NOT USE_SHARED_FREETYPE)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(simpleini)
|
add_subdirectory(simpleini)
|
||||||
|
|
||||||
|
# Add cmark without tests
|
||||||
|
set(CMARK_TESTS OFF CACHE BOOL "Build cmark tests and enable testing")
|
||||||
|
add_subdirectory(cmark)
|
||||||
|
set(cmark_headers
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/cmark/src/cmark.h
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/cmark/src/cmark_export.h
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/cmark/src/cmark_version.h)
|
||||||
|
foreach(fn ${cmark_headers})
|
||||||
|
get_filename_component(fn_name "${fn}" NAME)
|
||||||
|
add_custom_command(
|
||||||
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/cmark/${fn_name}
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy ${fn} ${CMAKE_CURRENT_BINARY_DIR}/cmark/${fn_name}
|
||||||
|
MAIN_DEPENDENCY ${fn})
|
||||||
|
list(APPEND copy_cmark_headers ${CMAKE_CURRENT_BINARY_DIR}/cmark/${fn_name})
|
||||||
|
endforeach()
|
||||||
|
add_custom_target(copy_cmark_headers DEPENDS ${copy_cmark_headers})
|
||||||
|
add_dependencies(libcmark_static copy_cmark_headers)
|
||||||
|
1
third_party/cmark
vendored
Submodule
1
third_party/cmark
vendored
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 5255e2d5717dc7a265ca79404d387ef8abe8c004
|
Loading…
x
Reference in New Issue
Block a user