Revise IDE configurations (KDEV4)

This commit is contained in:
Nicholas George 2021-10-21 21:53:26 -05:00
commit 9e8224e73e
70 changed files with 5639 additions and 0 deletions

2
.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto

25
.gitignore vendored Normal file
View File

@ -0,0 +1,25 @@
target/
lib/
builds/
shade/
test-files/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
# https://github.com/takari/maven-wrapper#usage-without-binary-jar
.mvn/wrapper/maven-wrapper.jar
.idea/
packr-conf/
packr*.jar
# Don't judge, these are my test files
*.avatars
*.worldsmarks
# Kate Project
.kateproject

View File

@ -0,0 +1,24 @@
[Launch]
Launch Configurations=Launch Configuration 0
[Launch][Launch Configuration 0]
Configured Launch Modes=execute
Configured Launchers=nativeAppLauncher
Name=Run JAR
Type=Native Application
[Launch][Launch Configuration 0][Data]
Arguments=
Dependencies=@Variant(\x00\x00\x00\t\x00\x00\x00\x00\x00)
Dependency Action=Nothing
EnvironmentGroup=
Executable=file:///usr/bin/java /mdia/Projects/WorldsOrganizer/target/
External Terminal=konsole --noclose --workdir %workdir -e %exe
Kill Before Executing Again=4194304
Project Target=
Use External Terminal=false
Working Directory=file:///mdia/Projects/WorldsOrganizer/
isExecutable=true
[Project]
VersionControlSupport=kdevgit

674
LICENSE Normal file
View File

@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.

15
Makefile Normal file
View File

@ -0,0 +1,15 @@
start:
mvn compile exec:java
build:
mvn compile assembly:single
clean:
mvn clean
rm -rf bin
test:
mvn test
install:
chmod +x target/worldsorganizer-*-jar-with-dependencies.jar
mkdir -p bin
cp target/worldsorganizer-*-jar-with-dependencies.jar bin
deploy:
make clean build test install

65
README.md Normal file
View File

@ -0,0 +1,65 @@
# Worlds Organizer
[<img src="icon.png" width="256"/>]()
A tool for WorldsPlayer files and resources to edit, modify, and organize your lists and data.
The tool is planned to support all these features:
- [x] Editing WorldsMarks files
- [x] Editing Avatar files
- [ ] Editing Library files
- [ ] Avatar Creator
- [ ] World scanner
- [ ] Avatar preview
## Compiling
Worlds Organizer uses maven, and is packaged using Shade. The minimum supported Java is 8 with support being aimed for later versions aswell.
Make sure you are using a JDK, and compile using maven.
1. Clone the repository and enter it's contents
```
git clone https://wirlaburla.com/git/Wirlaburla/Worlds-Organizer.git
cd Worlds-Organizer
```
2. Run the Maven Shade command
```
mvn clean package
```
The shaded jar will be located within the shade folder. It is runnable and contains the dependencies required.
## Using
Builds provided are in a JAR, which can be run using any version of Java 8 or above. These builds should be cross-platform and non-platform specific, so they should not require native OS libraries or calls.
Simply run the JAR with JRE 8 or up. Running from the command-line is simple using Java arguments:
```
java -jar WorldsOrganizer.jar
```
Upon startup, a start page should be shown as the first tab. This page will inform you of the current version, the current contributors, and the build date. Among these, there is also a changelog on the other side that is updated per release.
If you are running an older version and there is a newer release available, you'll be greeted by an update dialog. It is recommended to update considering that it's possible it has fixed a major bug or issue that may corrupt your files.
### Preferences
The tool allows changing a few preferences. In these settings are the options to toggle update checking and file backup attempts, as well as change the visual appearance of the program or 'theme'. These settings are saved within a config.json file neighboring the jar. It is recommended to have read/write access in the same folder as the jar.
### Editing Lists
The tool divides different types of files based on how their contents are saved. Avatars and WorldsMarks fall under a 'List' system, and therefore show in a normal table interface.
Controls for such lists are shown on the left-hand side. Among the normal Add, Delete, and Move buttons are the Find/Replace pane, and a Link checker.
Their uses are as follows:
* Find/Replace - Find and replace instances of text in the table. A slider is visible within the pane that allows toggling which column to find or replace things in.
* Link Checker - Scans the table for any web links and attempts to ping them to determine if the site is still active. This can be inaccurate at times but is a useful tool. A table in the end is displayed with the failed links. This feature takes network activity.
You can edit a value or label by double clicking on it's cell, and then changing the text inside. Hitting 'enter' will then confirm the contents in the cell and save.
## Information
Worlds Organizer is not affiliated with Worlds Incorporated or it's products.
To avoid loss of data or corruption, it is recommended to backup your files before directly modifying them.
![Screenshot should be here...](screenshot.png)

3
WorldsOrganizer.kdev4 Normal file
View File

@ -0,0 +1,3 @@
[Project]
Manager=KDevCustomMakeManager
Name=WorldsOrganizer

105
assets/icons/avatar.svg Normal file
View File

@ -0,0 +1,105 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-chevron-up"
version="1.1"
id="svg4"
sodipodi:docname="avatar.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata
id="metadata10">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs8">
<inkscape:path-effect
effect="bspline"
id="path-effect1410"
is_visible="true"
lpeversion="1"
weight="33.333333"
steps="2"
helper_size="0"
apply_no_weight="true"
apply_with_weight="true"
only_selected="false" />
<inkscape:path-effect
effect="bspline"
id="path-effect1406"
is_visible="true"
lpeversion="1"
weight="33.333333"
steps="2"
helper_size="0"
apply_no_weight="true"
apply_with_weight="true"
only_selected="false" />
<inkscape:path-effect
effect="bspline"
id="path-effect1398"
is_visible="true"
lpeversion="1"
weight="33.333333"
steps="2"
helper_size="0"
apply_no_weight="true"
apply_with_weight="true"
only_selected="false" />
</defs>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1858"
inkscape:window-height="1048"
id="namedview6"
showgrid="false"
inkscape:zoom="29.791667"
inkscape:cx="8.1552503"
inkscape:cy="12.395496"
inkscape:window-x="62"
inkscape:window-y="32"
inkscape:window-maximized="1"
inkscape:current-layer="svg4"
inkscape:document-rotation="0" />
<path
style="fill:#ffbe84;fill-opacity:1;stroke:#ffbe84;stroke-width:1.5701;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 9.0992507,5.4633662 c -1.5342646,1.5388232 -1.5342646,4.6128148 3.08e-5,6.1494768 1.5342955,1.536662 4.6019235,1.536662 6.1354405,-0.0014 1.533517,-1.538062 1.533517,-4.6147932 0,-6.1522466 C 13.701205,3.921743 10.633515,3.924543 9.0992507,5.4633662 Z"
id="path1404"
inkscape:path-effect="#path-effect1406"
inkscape:original-d="m 7.5649861,3.9273438 c 7.781e-4,3.0748456 7.781e-4,6.1488372 0,9.2221612 3.0685909,7.92e-4 6.1362189,7.92e-4 9.2032529,0 7.78e-4,-3.076124 7.78e-4,-6.1528552 0,-9.2305614 -3.067033,0.0036 -6.134723,0.00639 -9.2032529,0.0084 z"
sodipodi:nodetypes="ccccc" />
<path
style="fill:#4882c1;fill-opacity:1;stroke:#4882c1;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 3.9289157,21.074553 c 0,-2.031769 0,-4.064538 2.6793082,-5.081423 2.6793082,-1.016886 8.0367101,-1.016886 10.7149651,-3.72e-4 2.678255,1.016513 2.678255,3.048459 2.678255,5.079445"
id="path1408"
inkscape:path-effect="#path-effect1410"
inkscape:original-d="m 3.9289157,21.074553 c 10e-4,-2.031769 10e-4,-4.064538 0,-6.098309 5.3586164,0.001 10.7160183,0.001 16.0725283,0 0.001,2.033027 0.001,4.064973 0,6.095959"
sodipodi:nodetypes="cccc" />
</svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

124
assets/icons/conf.svg Normal file
View File

@ -0,0 +1,124 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-plus"
version="1.1"
id="svg1429"
sodipodi:docname="conf.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata
id="metadata1435">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs1433">
<inkscape:path-effect
effect="bspline"
id="path-effect834"
is_visible="true"
lpeversion="1"
weight="33.333333"
steps="2"
helper_size="0"
apply_no_weight="true"
apply_with_weight="true"
only_selected="false" />
</defs>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1019"
id="namedview1431"
showgrid="false"
inkscape:zoom="21.06589"
inkscape:cx="10.965184"
inkscape:cy="13.083489"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg1429"
inkscape:document-rotation="0" />
<path
style="fill:none;stroke:#8e8e8e;stroke-width:7.07141;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 9.5726515,6.3821312 C 12.224503,5.0637736 16.17884,6.413853 17.457004,9.0716412 18.735169,11.729429 17.337988,15.694204 14.686984,17.012152 12.035979,18.3301 8.1305683,17.001494 6.8514094,14.344423 5.5722504,11.687352 6.9208003,7.7004887 9.5726515,6.3821312 Z"
id="path832"
inkscape:path-effect="#path-effect834"
inkscape:original-d="M 8.2694136,3.7134375 C 12.224275,5.0644407 16.178612,6.4145213 20.132666,7.7637578 18.735843,11.729667 17.338667,15.694443 15.940955,19.658557 12.035751,18.330771 8.1303431,17.002156 4.2242535,15.672581 5.5731931,11.687671 6.921746,7.7008086 8.2694136,3.7134375 Z"
sodipodi:nodetypes="ccccc" />
<rect
style="fill:#8e8e8e;fill-opacity:1;fill-rule:evenodd;stroke:#8e8e8e;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect836"
width="4.6619339"
height="4.2198081"
x="12.751402"
y="-2.7128859"
transform="rotate(18.764493)" />
<rect
style="fill:#8e8e8e;fill-opacity:1;fill-rule:evenodd;stroke:#8e8e8e;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect836-3"
width="4.6619339"
height="4.2198081"
x="12.923229"
y="12.470449"
transform="rotate(18.764493)" />
<rect
style="fill:#8e8e8e;fill-opacity:1;fill-rule:evenodd;stroke:#8e8e8e;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect836-6"
width="4.6619339"
height="4.2198081"
x="11.50201"
y="-18.931036"
transform="rotate(77.049992)" />
<rect
style="fill:#8e8e8e;fill-opacity:1;fill-rule:evenodd;stroke:#8e8e8e;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect836-3-7"
width="4.6619339"
height="4.2198081"
x="11.673838"
y="-3.7477012"
transform="rotate(77.049992)" />
<rect
style="fill:#8e8e8e;fill-opacity:1;fill-rule:evenodd;stroke:#8e8e8e;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect836-5"
width="4.6619339"
height="4.2198081"
x="-0.16241173"
y="6.8464155"
transform="rotate(-38.73982)" />
<rect
style="fill:#8e8e8e;fill-opacity:1;fill-rule:evenodd;stroke:#8e8e8e;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect836-3-3"
width="4.6619339"
height="4.2198081"
x="0.00941558"
y="22.029751"
transform="rotate(-38.73982)" />
</svg>

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-file-plus"
version="1.1"
id="svg10"
sodipodi:docname="delete-all.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata
id="metadata16">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs14" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1019"
id="namedview12"
showgrid="false"
inkscape:zoom="21.06589"
inkscape:cx="8.5035165"
inkscape:cy="13.331412"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg10"
inkscape:document-rotation="0" />
<path
d="M 5.7160286,6.2253871 5.7397802,22.025861 18.196584,22 18.210129,6.2369801 Z"
id="path2"
style="fill:#bd0000;fill-opacity:1;stroke:#bd0000;stroke-width:2;stroke-miterlimit:1;stroke-dasharray:none;stroke-opacity:1"
sodipodi:nodetypes="ccccc" />
<path
style="fill:none;stroke:#bd0000;stroke-width:2;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 3.0054079,6.2253871 20.941511,6.2369801"
id="path3305"
sodipodi:nodetypes="cc" />
<path
style="fill:none;stroke:#bd0000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 8.1801396,7.0304591 V 2.9780899 h 7.8377814 l 0.01193,4.0639622"
id="path3307"
sodipodi:nodetypes="cccc" />
<path
style="fill:none;stroke:#ffc2c2;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 8.2397884,11.769736 8.26354,20.177268"
id="path3309" />
<path
style="fill:none;stroke:#ffc2c2;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 15.943393,11.770837 0.02375,8.406431"
id="path3309-7" />
<path
style="fill:none;stroke:#ffc2c2;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 12.099475,11.765476 0.02375,8.411792"
id="path3309-5" />
<path
style="fill:#d5d5d5;fill-opacity:1;stroke:#bbbbbb;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 21.341496,13.367269 -8.485803,0.0079 -0.0016,8.615266 8.479876,-0.01068 z"
id="path837"
sodipodi:nodetypes="ccccc" />
<path
style="fill:none;stroke:#40854b;stroke-width:1.45479;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 13.814098,17.050824 3.263786,3.256299 3.961023,-8.290014"
id="path839" />
</svg>

After

Width:  |  Height:  |  Size: 3.7 KiB

84
assets/icons/delete.svg Normal file
View File

@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-file-plus"
version="1.1"
id="svg10"
sodipodi:docname="delete.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata
id="metadata16">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs14" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1858"
inkscape:window-height="1048"
id="namedview12"
showgrid="false"
inkscape:zoom="42.131779"
inkscape:cx="11.350966"
inkscape:cy="12.579799"
inkscape:window-x="62"
inkscape:window-y="32"
inkscape:window-maximized="1"
inkscape:current-layer="svg10" />
<path
d="M 5.7160286,6.2253871 5.7397802,22.025861 18.196584,22 18.210129,6.2369801 Z"
id="path2"
style="fill:#bd0000;fill-opacity:1;stroke:#bd0000;stroke-width:2;stroke-miterlimit:1;stroke-dasharray:none;stroke-opacity:1"
sodipodi:nodetypes="ccccc" />
<path
style="fill:none;stroke:#bd0000;stroke-width:2;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 3.0054079,6.2253871 20.941511,6.2369801"
id="path3305"
sodipodi:nodetypes="cc" />
<path
style="fill:none;stroke:#bd0000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 8.1801396,7.0304591 V 2.9780899 h 7.8377814 l 0.01193,4.0639622"
id="path3307"
sodipodi:nodetypes="cccc" />
<path
style="fill:none;stroke:#ffc2c2;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 8.2397884,11.769736 8.26354,20.177268"
id="path3309" />
<path
style="fill:none;stroke:#ffc2c2;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 15.943393,11.770837 0.02375,8.406431"
id="path3309-7" />
<path
style="fill:none;stroke:#ffc2c2;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 12.099475,11.765476 0.02375,8.411792"
id="path3309-5" />
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

60
assets/icons/down.svg Normal file
View File

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-chevron-down"
version="1.1"
id="svg3507"
sodipodi:docname="chevron-down.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata
id="metadata3513">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs3511" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1858"
inkscape:window-height="1048"
id="namedview3509"
showgrid="false"
inkscape:zoom="29.791667"
inkscape:cx="12"
inkscape:cy="12"
inkscape:window-x="62"
inkscape:window-y="32"
inkscape:window-maximized="1"
inkscape:current-layer="svg3507" />
<polyline
points="6 9 12 15 18 9"
id="polyline3505"
style="stroke:#2951b5;stroke-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-file-plus"
version="1.1"
id="svg10"
sodipodi:docname="file-plus.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata
id="metadata16">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs14" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1019"
id="namedview12"
showgrid="false"
inkscape:zoom="29.791667"
inkscape:cx="8.4038763"
inkscape:cy="12.343937"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg10"
inkscape:document-rotation="0" />
<path
d="M 14,2 4,1.9867403 4.0237516,22.025861 19.986455,22 20,8 Z"
id="path2"
style="stroke-width:1;stroke-miterlimit:1;stroke-dasharray:none;stroke:#000000;stroke-opacity:1;fill:#ffffff;fill-opacity:1"
sodipodi:nodetypes="cccccc" />
<polyline
points="14 2 14 8 20 8"
id="polyline4"
style="stroke-width:1;stroke-miterlimit:1;stroke-dasharray:none;fill:none;fill-opacity:1;stroke:#000000;stroke-opacity:1" />
<g
id="g1271"
style="stroke:#0d9b00;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99000001"
transform="matrix(1.4136417,0,0,1.3755179,1.5770289,-2.9211939)">
<path
style="fill:none;stroke:#0d9b00;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99000001"
d="m 11.81577,12.88152 v 5.060907"
id="path1265"
sodipodi:nodetypes="cc" />
<path
style="fill:none;stroke:#0d9b00;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99000001"
d="M 9.2131153,15.369231 H 14.370947"
id="path1267"
sodipodi:nodetypes="cc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

65
assets/icons/file.svg Normal file
View File

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-file-plus"
version="1.1"
id="svg10"
sodipodi:docname="file.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1019"
id="namedview7"
showgrid="false"
inkscape:zoom="29.791667"
inkscape:cx="12"
inkscape:cy="13.342657"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg10" />
<metadata
id="metadata16">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs14" />
<path
d="M 14,2 4,1.9867403 4.0237516,22.025861 19.986455,22 20,8 Z"
id="path2"
style="stroke-width:0.99999998;stroke-miterlimit:1;stroke-dasharray:none;stroke:#000000;stroke-opacity:1;fill:#ffffff;fill-opacity:1;stroke-linejoin:round" />
<polyline
points="14 2 14 8 20 8"
id="polyline4"
style="stroke-width:1;stroke-miterlimit:1;stroke-dasharray:none;fill:none;fill-opacity:1;stroke:#000000;stroke-opacity:1;stroke-linecap:round;stroke-linejoin:round" />
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

155
assets/icons/find.svg Normal file
View File

@ -0,0 +1,155 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-chevron-up"
version="1.1"
id="svg4"
sodipodi:docname="find.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata
id="metadata10">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs8">
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath925">
<ellipse
style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.602;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="ellipse927"
cx="15.889382"
cy="7.3338056"
rx="5.460052"
ry="5.3832016"
transform="rotate(21.885985)" />
</clipPath>
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath931">
<path
style="fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 9.870277,7.5437648 -2.9764586,3.3626892 -0.087195,2.692883 1.5165022,3.15032 -12.6889678,0.213768 0.6314983,-7.6911132 7.15535,-1.9071701 z"
id="path933" />
</clipPath>
<mask
maskUnits="userSpaceOnUse"
id="mask8991">
<ellipse
style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#4f4f4f;stroke-width:0.902;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="ellipse8993"
cx="5.4309001"
cy="12.426842"
rx="5.460052"
ry="5.3832016"
transform="rotate(5.212234)" />
</mask>
</defs>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1019"
id="namedview6"
showgrid="false"
inkscape:zoom="21.06589"
inkscape:cx="12.094124"
inkscape:cy="7.7051912"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer6"
inkscape:document-rotation="0" />
<g
inkscape:groupmode="layer"
id="layer6"
inkscape:label="Layer 5">
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:14.152px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.707595"
x="-6.8714333"
y="17.879271"
id="text8937-3"
transform="rotate(-27.86237)"><tspan
sodipodi:role="line"
id="tspan8935-6"
x="-6.8714333"
y="17.879271"
style="stroke-width:0.707595">abc</tspan></text>
<path
style="fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 8.5120816,3.0031694 6.2275857,4.9808697 5.158164,8.0462002 l 1.132775,3.3606918 4.193983,2.243411 3.214436,-0.843 2.273976,-2.772603 0.1528,-3.3517588 -1.657673,-2.3709106 -3.445369,-2.0508554 z"
id="path8998"
sodipodi:nodetypes="ccccccccccc" />
</g>
<g
inkscape:groupmode="layer"
id="layer4"
inkscape:label="Layer 4">
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:18.0531px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.902645"
x="-11.498377"
y="18.0126"
id="text8937"
transform="rotate(-27.86237,-1.4162625,-2.3065646)"
mask="url(#mask8991)"><tspan
sodipodi:role="line"
id="tspan8935"
x="-11.498377"
y="18.0126"
style="stroke-width:0.902645">abc</tspan></text>
</g>
<g
inkscape:groupmode="layer"
id="layer1"
inkscape:label="Layer 1" />
<g
inkscape:groupmode="layer"
id="layer3"
inkscape:label="Layer 3" />
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="Layer 2">
<ellipse
style="fill:none;fill-rule:evenodd;stroke:#4f4f4f;stroke-width:1.70179;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path836"
cx="9.847106"
cy="9.195467"
rx="5.460052"
ry="5.3832016"
transform="rotate(-6.0016821)" />
<path
style="fill:none;stroke:#8d8d8d;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 13.652799,13.363845 5.397701,9.72694"
id="path844" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.3 KiB

71
assets/icons/folder.svg Normal file
View File

@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-folder"
version="1.1"
id="svg2729"
sodipodi:docname="folder.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata
id="metadata2735">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs2733" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1858"
inkscape:window-height="1048"
id="namedview2731"
showgrid="false"
inkscape:zoom="29.791667"
inkscape:cx="11.709938"
inkscape:cy="11.716113"
inkscape:window-x="62"
inkscape:window-y="32"
inkscape:window-maximized="1"
inkscape:current-layer="svg2729" />
<path
style="fill:#d4a961;fill-opacity:1;stroke:#d4a961;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 11,6.7308486 3.03738,-3 h 8.061963 l 0.01572,3 z"
id="path3298"
sodipodi:nodetypes="ccccc" />
<g
inkscape:groupmode="layer"
id="layer1"
inkscape:label="Layer 1">
<path
d="M 22.114024,21.092684 1.9856944,21.089394 2,3.7412136 l 7,-0.010365 2,3 h 11.115068 z"
id="path2727"
sodipodi:nodetypes="ccccccc"
style="fill:#f0ca83;fill-opacity:1;stroke:#f0ca83;stroke-linejoin:round;stroke-opacity:1" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

115
assets/icons/link.svg Normal file
View File

@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-chevron-up"
version="1.1"
id="svg4"
sodipodi:docname="link.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata
id="metadata10">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs8" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1019"
id="namedview6"
showgrid="false"
inkscape:zoom="29.791667"
inkscape:cx="9.6802759"
inkscape:cy="11.318464"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer5"
inkscape:document-rotation="0" />
<path
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.420125;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 8.5015292,14.550437 4.1930104,7.2936486 3.3079485,5.8029496 C 3.024985,5.3263573 2.9736395,4.6913179 3.1716506,4.2341231 3.3430791,3.8383058 3.7885723,3.5501973 4.2163809,3.5834644 c 0.4785414,0.037212 0.9922098,0.4553058 1.2657793,0.917122 l 3.308897,5.5857786"
id="path838"
sodipodi:nodetypes="ccssssc" />
<path
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.420125;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 7.6743372,8.1827706 c 0,0 0.01366,-1.007555 0.259646,-1.37146 0.300411,-0.444413 0.813229,-0.77448 1.351502,-0.793569 0.355754,-0.01262 1.0448558,0.455751 1.0448558,0.455751 0,0 0.279971,-0.625134 0.506902,-0.856233 0.36239,-0.3690493 0.78375,-0.7998996 1.314629,-0.7958022 0.201316,0.00155 0.571047,0.3100319 0.571047,0.3100319 0,0 0.18536,-0.5536774 0.374031,-0.7454948 0.270387,-0.2748965 0.63084,-0.4949231 1.023034,-0.5166789 0.232343,-0.012891 0.698539,0.2337131 0.698539,0.2337131 0,0 2.568155,3.1525869 3.409117,5.5056849 0.574152,1.6065364 0.949075,3.3541184 -0.379268,4.6921974 -1.355936,1.365872 -4.182369,3.038728 -5.468695,3.36479 -1.209774,0.306664 -2.8059428,-0.02176 -3.9214578,-0.804163 -1.9117974,-1.340905 -3.3443724,-4.156087 -3.3002585,-4.979195 0.052,-0.970256 -0.081648,-3.1213984 -0.081648,-3.1213984"
id="path840"
sodipodi:nodetypes="csscsscsscsssssc" />
<g
inkscape:groupmode="layer"
id="layer4"
inkscape:label="Layer 4">
<path
style="fill:none;stroke:#000000;stroke-width:0.420125;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 10.330342,6.4734936 c 0,0 0.562442,1.13246 1.155449,1.780401"
id="path899"
sodipodi:nodetypes="cc" />
<path
style="fill:none;stroke:#000000;stroke-width:0.420125;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 12.722921,5.1314933 c 0,0 0.434387,0.8910003 1.126186,1.7361833"
id="path901"
sodipodi:nodetypes="cc" />
</g>
<g
inkscape:groupmode="layer"
id="layer1"
inkscape:label="Layer 1">
<path
style="fill:none;stroke:#000000;stroke-width:0.420125;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 5.0763125,8.7609446 c 0,0 0.6456045,2.9697544 2.3947067,4.3646024"
id="path841"
sodipodi:nodetypes="cc" />
<path
style="fill:none;stroke:#000000;stroke-width:0.420125;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 7.6743372,8.1827706 c 0,0 0.58513,1.151776 1.116719,1.9035944"
id="path843"
sodipodi:nodetypes="cc" />
</g>
<g
inkscape:groupmode="layer"
id="layer3"
inkscape:label="Layer 3" />
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="Layer 2" />
<g
inkscape:groupmode="layer"
id="layer5"
inkscape:label="Layer 5">
<path
style="fill:none;stroke:#0baa00;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 8.9606228,16.765227 13.733104,21.540775 21.627492,8.5625202"
id="path8931"
sodipodi:nodetypes="ccc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.1 KiB

93
assets/icons/mark.svg Normal file
View File

@ -0,0 +1,93 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-chevron-up"
version="1.1"
id="svg4"
sodipodi:docname="mark.svg"
inkscape:export-filename="/home/nick/Projects/WorldsOrganizer/src/main/resources/icons/mark.png"
inkscape:export-xdpi="1024"
inkscape:export-ydpi="1024"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1019"
id="namedview4271"
showgrid="false"
inkscape:zoom="32"
inkscape:cx="11.227025"
inkscape:cy="11.887348"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer2" />
<metadata
id="metadata10">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs8">
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath1458">
<path
style="fill:#3eb043;fill-opacity:1;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 6.9575427,2.0052179 c 0.2871143,0.1583037 0.590583,0.3133531 0.7443721,0.6209314 0.026946,0.053893 0.037871,0.1151611 0.067133,0.1678322 0.027169,0.048904 0.077978,0.083143 0.1006993,0.1342657 0.023171,0.052135 0.022378,0.1118881 0.033566,0.1678322 0.022378,0.055944 0.041774,0.1131747 0.067133,0.1678321 C 8.0924419,3.526858 8.1991605,3.788294 8.3098536,4.0561257 8.412878,4.3054021 8.4959986,4.5618688 8.5954264,4.8101903 8.7055338,5.0851841 8.8462868,5.3331678 8.9342028,5.6188947 9.0023537,5.8403851 9.0472492,6.2582088 9.0684685,6.491622 9.1128009,6.979278 9.0241659,7.4709239 8.9601521,7.9520107 8.9531229,8.0048375 8.9123911,8.373624 8.8869836,8.4599274 8.8162272,8.7002708 8.7231093,8.9803998 8.6330699,9.2154303 8.605846,9.286493 8.554756,9.3472792 8.530623,9.4194502 8.5086663,9.4851127 8.5162328,9.5579925 8.4963456,9.6243112 8.4962358,9.6246774 8.3619491,9.8929592 8.361369,9.8942645 8.2405225,10.166169 8.1707025,10.472432 8.0256965,10.733443 c -0.091094,0.163969 -0.5478947,0.920619 -0.4449704,1.126471 0.1119299,0.223863 0.2738324,0.421278 0.4087898,0.630337 0.1078109,0.167008 0.1930403,0.347644 0.2954415,0.518022 0.1615966,0.26887 0.3425847,0.53177 0.4971721,0.804314 0.2884989,0.508636 0.5744625,1.045069 0.825293,1.57506 0.1991151,0.420719 0.3295993,0.874578 0.5128325,1.302121 0.07989,0.186413 0.199479,0.364339 0.276159,0.549822 0.09767,0.236262 0.04507,0.208551 0.105692,0.419831 0.03988,0.13897 0.11009,0.291309 0.134266,0.436363 0.01968,0.118073 -0.01186,0.250638 0,0.369231 0.04492,0.449213 0.100214,1.329042 -0.0018,1.742629 -0.04194,0.169997 -0.129143,0.334024 -0.168543,0.506342 -0.104518,0.457125 -0.178322,0.908478 -0.219017,1.376124 -0.01851,0.212716 -0.140202,0.929138 0.02273,1.173534 0.02633,0.0395 0.06981,0.06466 0.1007,0.1007 0.664228,0.774933 0.974522,1.065143 1.933249,1.544881 0.223317,0.111746 0.445512,0.228548 0.680103,0.314132 0.19064,0.06955 0.39263,0.10297 0.590199,0.149306 1.0409,0.244119 2.058993,0.453221 3.125717,0.544307 0.842531,0.07194 2.654798,0.200007 3.44566,-0.160328 0.342845,-0.156207 0.765061,-0.616617 1.038917,-0.856575 0.186372,-0.163302 0.419929,-0.299695 0.553588,-0.51365 0.171297,-0.274204 0.120401,-0.666291 0.138125,-0.971082 0.01624,-0.279346 0.05784,-0.260097 0.03755,-0.506296 -0.02609,-0.31666 -0.143791,-0.533354 -0.283647,-0.81182 -0.08822,-0.175663 -0.125037,-0.373503 -0.235862,-0.539743 -0.09782,-0.146738 -0.2325,-0.265578 -0.336701,-0.404512 -0.144869,-0.193159 -0.06558,-0.156126 -0.203173,-0.37189 -0.260859,-0.409051 -0.582616,-0.798176 -0.90455,-1.157493 -0.112197,-0.125224 -0.175549,-0.277787 -0.272588,-0.408728 -0.194737,-0.262771 -0.414441,-0.508574 -0.652831,-0.732498 -1.689341,-1.58683 -0.01002,0.177596 -1.153549,-1.137206 -0.07445,-0.08559 -0.175499,-0.147771 -0.240642,-0.240642 -0.05538,-0.07895 -0.07355,-0.178383 -0.114516,-0.265688 -0.192188,-0.409567 -0.351962,-0.767683 -0.352052,-1.226863 -1.51e-4,-0.774593 0.512205,-1.312964 1.009013,-1.844041 0.279904,-0.299211 0.478486,-0.49597 0.800534,-0.761906 0.05019,-0.04145 0.372531,-0.254802 0.441408,-0.331921 0.04368,-0.0489 0.06192,-0.116207 0.101414,-0.168547 0.07091,-0.09398 0.160788,-0.172972 0.228799,-0.269074 0.0976,-0.137912 0.368218,-0.613014 0.368218,-0.802573 0,-0.406128 -0.264712,-0.912544 -0.562889,-1.18396 -0.08041,-0.07319 -0.183986,-0.117584 -0.265307,-0.189754 -0.05608,-0.04977 -0.08141,-0.1299733 -0.141397,-0.1749648 -0.03227,-0.024205 -0.07445,-0.036502 -0.100699,-0.067133 C 18.818337,9.556525 18.688527,9.2049673 18.502031,8.9177494 18.258104,8.5420828 17.960113,8.1950515 17.722065,7.8170628 17.544258,7.5347292 17.468308,7.2136168 17.295711,6.927371 17.008177,6.4505062 16.656988,6.0076327 16.392851,5.5167449 16.348296,5.4339419 16.325603,5.3406093 16.281496,5.2575669 16.103902,4.9232009 15.990757,4.7460178 15.904382,4.3677092 15.841118,4.090622 15.870816,3.794769 15.870816,3.512433 c 0,-0.6962107 0.276781,-0.6966554 0.677294,-1.1804735 0.446915,-0.5398704 -0.0903,0.013709 0.430824,-0.5466054 0.168513,-0.181186 0.365627,-0.3355295 0.524883,-0.5249037 0.07346,-0.087352 0.121433,-0.1947128 0.198029,-0.27932777 0.04952,-0.0547021 0.320294,-0.26096815 0.395532,-0.32468876 0.367014,-0.31083051 0.733213,-0.61583273 1.108772,-0.91591865 0.16541,-0.1321687 0.968292,-0.80214902 0.629744,-1.09678282 -0.144253,-0.1255407 -0.325266,-0.2026874 -0.508942,-0.2482925 -0.996599,-0.2474463 -1.716354,-0.079041 -2.686981,0.1839982 -0.380922,0.1032297 -2.250182,0.61556861 -2.48823,0.69859984 -0.502236,0.17517929 -0.979337,0.4162185 -1.476923,0.60419579 C 12.16505,0.07481256 11.641483,0.22926096 11.130762,0.41929667 10.678994,0.58739633 10.235668,0.77736795 9.7881043,0.9563596 9.3453036,1.1334462 8.8929874,1.288369 8.4596672,1.4875314 8.0331858,1.6835506 7.6265808,1.9202333 7.2120342,2.1403718 7.0409153,2.2312418 6.8146874,2.3957417 6.7868259,2.3718483 6.7705467,2.3578877 6.8235735,2.0602357 6.832402,2.0550247 6.871065,2.0322037 6.915829,2.0218197 6.9575427,2.0052179 Z"
id="path1460" />
</clipPath>
</defs>
<g
inkscape:groupmode="layer"
id="layer1"
inkscape:label="Layer 1">
<path
style="fill:#74d1ec;fill-opacity:1;stroke:#10406b;stroke-width:0.1;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 9.390535,2.9846855 C 10.483788,2.9291074 11.760183,3.43256 13.045778,2.8295238 12.669909,1.2784325 18.498971,2.4370086 18.498971,2.4370086 l 1.214982,6.3959903 c 0,0 -5.345635,0.02616 -5.473772,0.389021 -0.08979,0.2542809 0.411761,-0.04166 0.116218,0.3584059 -0.368808,0.4992212 -3.964672,0.4560712 -3.964672,0.4560712 z"
id="path8833"
sodipodi:nodetypes="ccccsscc" />
<path
style="fill:none;stroke:#10406b;stroke-width:0.1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 13.025153,2.6310176 1.19166,6.6269513"
id="path8835" />
</g>
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="Layer 2">
<path
style="fill:none;stroke:#8f8f8f;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 8.8530053,2.330311 1.146356,7.903463 1.8301407,12.396328"
id="path8823"
sodipodi:nodetypes="ccc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.1 KiB

74
assets/icons/plus.svg Normal file
View File

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-plus"
version="1.1"
id="svg1429"
sodipodi:docname="plus.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata
id="metadata1435">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs1433" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1550"
inkscape:window-height="840"
id="namedview1431"
showgrid="false"
inkscape:zoom="29.791667"
inkscape:cx="12"
inkscape:cy="12"
inkscape:window-x="313"
inkscape:window-y="74"
inkscape:window-maximized="0"
inkscape:current-layer="svg1429" />
<g
id="g2000"
style="stroke:#0d9b00;stroke-opacity:0.98823529;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none">
<line
x1="12"
y1="5"
x2="12"
y2="19"
id="line1425"
style="stroke:#0d9b00;stroke-opacity:0.98823529;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none" />
<line
x1="5"
y1="12"
x2="19"
y2="12"
id="line1427"
style="stroke:#0d9b00;stroke-opacity:0.98823529;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

76
assets/icons/quit.svg Normal file
View File

@ -0,0 +1,76 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-plus"
version="1.1"
id="svg1429"
sodipodi:docname="quit.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata
id="metadata1435">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs1433" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1858"
inkscape:window-height="1048"
id="namedview1431"
showgrid="false"
inkscape:zoom="21.06589"
inkscape:cx="10.476774"
inkscape:cy="11.644642"
inkscape:window-x="62"
inkscape:window-y="32"
inkscape:window-maximized="1"
inkscape:current-layer="svg1429"
inkscape:document-rotation="0" />
<g
id="g2000"
style="stroke:#9b000b;stroke-width:1.94025992;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.988235"
transform="matrix(0.91109801,0.91109801,-0.91109801,0.91109801,12,-9.8663522)">
<line
x1="12"
y1="5"
x2="12"
y2="19"
id="line1425"
style="stroke:#9b000b;stroke-width:1.94025992;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.988235" />
<line
x1="5"
y1="12"
x2="19"
y2="12"
id="line1427"
style="stroke:#9b000b;stroke-width:1.94025992;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.988235" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

84
assets/icons/redo.svg Normal file
View File

@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-plus"
version="1.1"
id="svg1429"
sodipodi:docname="redo.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata
id="metadata1435">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs1433">
<inkscape:path-effect
effect="bspline"
id="path-effect850"
is_visible="true"
lpeversion="1"
weight="33.333333"
steps="2"
helper_size="0"
apply_no_weight="true"
apply_with_weight="true"
only_selected="false" />
</defs>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1019"
id="namedview1431"
showgrid="false"
inkscape:zoom="21.06589"
inkscape:cx="7.3936876"
inkscape:cy="10.021491"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg1429"
inkscape:document-rotation="0" />
<path
style="fill:#ff7f27;fill-opacity:1;stroke:#ff7f27;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 15.834684,3.0262905 15.813547,13.540265 21.062071,8.3585559 Z"
id="path846" />
<path
style="fill:none;fill-opacity:1;stroke:#ff7f27;stroke-width:3;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 15.428471,8.3845924 c 0,0 -2.762014,-0.020946 -4.184739,-0.021164 -4.6246329,-7.1e-4 -7.4555249,2.5500586 -7.5242139,5.7811216 -0.06297,2.961918 1.234197,5.917181 7.2433839,5.917181"
id="path852"
sodipodi:nodetypes="cssc" />
<path
style="fill:none;fill-opacity:1;stroke:#ff7f27;stroke-width:3;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 15.4719,20.06015 0.294436,-0.0018"
id="path852-6"
sodipodi:nodetypes="cc" />
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

100
assets/icons/save-as.svg Normal file
View File

@ -0,0 +1,100 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-save"
version="1.1"
id="svg2050"
sodipodi:docname="save-as.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata
id="metadata2056">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs2054" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1019"
id="namedview2052"
showgrid="false"
inkscape:zoom="32"
inkscape:cx="7.036876"
inkscape:cy="12.592819"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg2050"
inkscape:document-rotation="0" />
<path
d="M 3.0503503,21.352326 3,2.4182494 17.142286,2.40602 21,6.8007416 V 21.322619 Z"
id="path2044"
sodipodi:nodetypes="cccccc"
style="stroke:#3f9fe6;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:1;stroke-dasharray:none;stroke-opacity:1;fill:#3f9fe6;fill-opacity:1" />
<path
style="fill:#dfdfdf;fill-opacity:1;stroke:#dfdfdf;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 6.5543917,22.353266 v -7.38241 l 11.2332683,0.0122 v 7.346591"
id="path2639"
sodipodi:nodetypes="cccc" />
<path
style="fill:#dfdfdf;fill-opacity:1;stroke:#dfdfdf;stroke-width:0.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 7.2111344,1.3432578 V 7.4692851 H 16.983455 V 1.3746654"
id="path2641"
sodipodi:nodetypes="cccc" />
<path
style="fill:none;stroke:#a7a7a7;stroke-width:1px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1"
d="M 7.5945881,16.390997 H 16.951592"
id="path2645"
sodipodi:nodetypes="cc" />
<path
style="fill:#3f9fe6;fill-opacity:1;stroke:#3f9fe6;stroke-width:0.2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"
d="m 16.310336,2.1372712 v 4.680607 H 13.375392 V 2.1342216 Z"
id="path2667"
sodipodi:nodetypes="ccccc" />
<path
style="fill:none;stroke:#a7a7a7;stroke-width:1px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1"
d="m 7.594588,18.57088 h 9.357004"
id="path2645-6"
sodipodi:nodetypes="cc" />
<g
style="fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round"
id="g862"
transform="matrix(0.54481918,0,0,0.54481918,11.904824,10.715933)">
<path
d="M 14,2 4,1.9867403 4.0237516,22.025861 19.986455,22 20,8 Z"
id="path2"
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:2;stroke-miterlimit:1;stroke-dasharray:none;stroke-opacity:1" />
<polyline
points="14 2 14 8 20 8"
id="polyline4"
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:2;stroke-miterlimit:1;stroke-dasharray:none;stroke-opacity:1" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.8 KiB

86
assets/icons/save.svg Normal file
View File

@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-save"
version="1.1"
id="svg2050"
sodipodi:docname="save.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata
id="metadata2056">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs2054" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1858"
inkscape:window-height="1048"
id="namedview2052"
showgrid="false"
inkscape:zoom="32"
inkscape:cx="7.036876"
inkscape:cy="12.592819"
inkscape:window-x="62"
inkscape:window-y="32"
inkscape:window-maximized="1"
inkscape:current-layer="svg2050" />
<path
d="M 3.0503503,21.352326 3,2.4182494 17.142286,2.40602 21,6.8007416 V 21.322619 Z"
id="path2044"
sodipodi:nodetypes="cccccc"
style="stroke:#3f9fe6;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:1;stroke-dasharray:none;stroke-opacity:1;fill:#3f9fe6;fill-opacity:1" />
<path
style="fill:#dfdfdf;fill-opacity:1;stroke:#dfdfdf;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 6.5543917,22.353266 v -7.38241 l 11.2332683,0.0122 v 7.346591"
id="path2639"
sodipodi:nodetypes="cccc" />
<path
style="fill:#dfdfdf;fill-opacity:1;stroke:#dfdfdf;stroke-width:0.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 7.2111344,1.3432578 V 7.4692851 H 16.983455 V 1.3746654"
id="path2641"
sodipodi:nodetypes="cccc" />
<path
style="fill:none;stroke:#a7a7a7;stroke-width:1px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1"
d="M 7.5945881,16.390997 H 16.951592"
id="path2645"
sodipodi:nodetypes="cc" />
<path
style="fill:#3f9fe6;fill-opacity:1;stroke:#3f9fe6;stroke-width:0.2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"
d="m 16.310336,2.1372712 v 4.680607 H 13.375392 V 2.1342216 Z"
id="path2667"
sodipodi:nodetypes="ccccc" />
<path
style="fill:none;stroke:#a7a7a7;stroke-width:1px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1"
d="m 7.594588,18.57088 h 9.357004"
id="path2645-6"
sodipodi:nodetypes="cc" />
</svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

84
assets/icons/undo.svg Normal file
View File

@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-plus"
version="1.1"
id="svg1429"
sodipodi:docname="undo.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata
id="metadata1435">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs1433">
<inkscape:path-effect
effect="bspline"
id="path-effect850"
is_visible="true"
lpeversion="1"
weight="33.333333"
steps="2"
helper_size="0"
apply_no_weight="true"
apply_with_weight="true"
only_selected="false" />
</defs>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1019"
id="namedview1431"
showgrid="false"
inkscape:zoom="21.06589"
inkscape:cx="7.3936876"
inkscape:cy="10.021491"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg1429"
inkscape:document-rotation="0" />
<path
style="fill:#00a2e8;fill-opacity:1;stroke:#00a2e8;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 8.1507012,3.0262905 8.1718382,13.540265 2.9233142,8.3585559 Z"
id="path846" />
<path
style="fill:none;fill-opacity:1;stroke:#00a2e8;stroke-width:3;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 8.5569144,8.3845924 c 0,0 2.7620136,-0.020946 4.1847386,-0.021164 4.624633,-7.1e-4 7.455525,2.5500586 7.524214,5.7811216 0.06297,2.961918 -1.234197,5.917181 -7.243384,5.917181"
id="path852"
sodipodi:nodetypes="cssc" />
<path
style="fill:none;fill-opacity:1;stroke:#00a2e8;stroke-width:3;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 8.5134856,20.06015 8.2190488,20.05832"
id="path852-6"
sodipodi:nodetypes="cc" />
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

60
assets/icons/up.svg Normal file
View File

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-chevron-up"
version="1.1"
id="svg4"
sodipodi:docname="chevron-up.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
<metadata
id="metadata10">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs8" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1858"
inkscape:window-height="1048"
id="namedview6"
showgrid="false"
inkscape:zoom="29.791667"
inkscape:cx="12"
inkscape:cy="12"
inkscape:window-x="62"
inkscape:window-y="32"
inkscape:window-maximized="1"
inkscape:current-layer="svg4" />
<polyline
points="18 15 12 9 6 15"
id="polyline2"
style="stroke:#2951b5;stroke-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

228
assets/logo.svg Normal file
View File

@ -0,0 +1,228 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="700"
height="700"
viewBox="0 0 185.20839 185.20834"
version="1.1"
id="svg8"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
sodipodi:docname="logo.svg">
<defs
id="defs2">
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath1880">
<path
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 70.815208,143.78429 -17.647259,2.08709 -9.675762,-31.99463 128.736153,-4.07494 26.36352,39.99718 -4.22187,114.86335 c 0,0 -23.81353,38.91581 -24.98525,38.24597 -1.17175,-0.66984 -90.600811,-4.20427 -92.292724,-5.37656 -1.691915,-1.17229 -49.786889,-39.82634 -49.786889,-39.82634 l 12.732742,-62.55082 50.463778,13.04805 29.256443,-8.7333 v -44.38443 z"
id="path1882"
clip-path="none" />
</clipPath>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.76367532"
inkscape:cx="259.10375"
inkscape:cy="459.12264"
inkscape:document-units="mm"
inkscape:current-layer="layer6"
showgrid="false"
units="px"
inkscape:pagecheckerboard="true"
borderlayer="true"
inkscape:showpageshadow="false"
inkscape:window-width="1920"
inkscape:window-height="1019"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:document-rotation="0" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:groupmode="layer"
id="layer5"
inkscape:label="Background 1">
<path
style="display:inline;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.32292;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 97.042638,70.78935 V 44.10166 l -48.942879,-11.30062 -2.152721,-0.62083 -0.171272,10.82154 22.232465,6.40786 3e-6,26.68768 z"
id="path1800"
sodipodi:nodetypes="cccccccc" />
<path
style="display:inline;fill:#4cad45;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 98.606488,70.603888 0.0537,-27.216286 -4.20198,-1.364313 -0.4135,27.614758 z"
id="path999"
sodipodi:nodetypes="ccccc" />
<path
style="display:inline;fill:#98ad45;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 96.304028,70.040294 -0.0326,-30.658106 -34.128582,-8.818543 0.01903,17.29726 5.846367,1.548706 -9e-6,25.018533 z"
id="path999-1"
sodipodi:nodetypes="ccccccc" />
<path
style="display:inline;fill:#ad7645;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 90.241598,76.794355 0.10503,-34.786096 -34.128583,-8.818543 0.01629,13.053464 11.77389,3.16643 1.1e-5,25.018534 z"
id="path999-2"
sodipodi:nodetypes="ccccccc" />
</g>
<g
inkscape:groupmode="layer"
id="layer8"
inkscape:label="Background 2">
<path
style="fill:#ff7c37;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 67.786193,95.550246 32.298807,14.746704 -0.222042,47.80979 -11.594644,12.7594 21.513906,4.65962 -0.0181,-135.593614 -65.129945,-15.332862 -0.03254,17.969324 3.267368,2.010272 0.230711,-11.777841 48.942884,11.300621 -0.73861,43.635386 z"
id="path1902"
sodipodi:nodetypes="ccccccccccccc" />
<path
style="fill:none;stroke:#000000;stroke-width:2.64583;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 41.177412,34.988721 -0.03515,7.146683"
id="path1906"
sodipodi:nodetypes="cc" />
</g>
<g
inkscape:groupmode="layer"
id="layer4"
inkscape:label="Background">
<path
style="display:inline;fill:#ad4565;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 81.556472,77.697555 0.10503,-34.786094 -34.128585,-8.818543 0.01546,10.168696 20.459851,5.147996 8e-6,25.018534 z"
id="path999-1-7"
sodipodi:nodetypes="ccccccc" />
<path
style="display:inline;fill:#8045ad;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 75.331893,79.640151 0.10503,-34.786096 -34.128584,-8.818543 0.01333,4.345393 26.686574,9.028706 -4e-6,25.018533 z"
id="path999-0"
sodipodi:nodetypes="ccccccc" />
<path
style="display:inline;fill:#4567ad;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 66.646763,48.992863 0.10503,-3.235606 -34.128582,-8.818543 0.03211,3.449368 z"
id="path999-1-9"
sodipodi:nodetypes="ccccc" />
</g>
<g
inkscape:groupmode="layer"
id="layer6"
inkscape:label="color layer">
<path
style="display:inline;fill:#c85934;fill-opacity:1;stroke:none;stroke-width:0.264583;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 112.85464,39.176818 40.55683,-13.65055 0.0337,128.086772 -40.96373,20.65344 z"
id="path1885"
sodipodi:nodetypes="ccccc" />
<path
style="fill:#ff6633;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 52.956804,20.308226 113.18085,34.823026 153.79853,21.841349 106.53257,9.2556799 Z"
id="path1889"
sodipodi:nodetypes="ccccc" />
<path
style="fill:#f4875c;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 52.45812,101.50359 0.160125,44.58879 47.244713,12.01436 -0.0594,-43.72259 z"
id="path1898"
sodipodi:nodetypes="ccccc" />
<path
style="fill:#ff7c37;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 44.053777,160.7799 -0.0074,-69.535374 23.262156,5.826 0.477697,-1.52028 28.517834,-7.8132 3.780972,22.559904 -50.884845,-13.087974 0.199019,47.849704 50.463784,13.04806 9.919262,17.41902 z"
id="path1900"
sodipodi:nodetypes="ccccccccccc" />
</g>
<g
inkscape:label="Camada 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-85.333317)"
style="display:inline">
<path
style="display:inline;fill:none;fill-opacity:1;stroke:#000000;stroke-width:2.64583;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 63.85771,131.35931 59.77772,-12.10469 52.87855,13.56998 -0.35336,131.77168 -43.66295,21.91273 L 64.157669,270.8891 C 64.187123,268.92773 63.85771,131.35931 63.85771,131.35931 Z"
id="path843"
sodipodi:nodetypes="ccccccc"
clip-path="url(#clipPath1880)"
transform="translate(-22.715448,-25.649931)" />
<path
style="display:inline;fill:none;stroke:#000000;stroke-width:2.64583;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 41.142262,105.70938 68.858838,16.40595 43.79743,-14.94066"
id="path845"
sodipodi:nodetypes="ccc" />
<path
style="display:inline;fill:none;stroke:#000000;stroke-width:2.64583;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 109.78222,260.85908 110.0011,122.11533"
id="path847"
sodipodi:nodetypes="cc" />
</g>
<g
inkscape:groupmode="layer"
id="layer7"
inkscape:label="color layer 2">
<path
style="fill:#f4875c;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 19.669485,40.041626 0.253077,44.39132 47.385935,12.63758 0.450845,-45.135455 z"
id="path1894"
sodipodi:nodetypes="ccccc" />
<path
style="fill:#808080;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 68.008234,74.428144 28.295794,-4.387848 0.0516,15.15619 -28.437391,7.37902 z"
id="path1896"
sodipodi:nodetypes="ccccc" />
</g>
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="Camada 2">
<path
style="display:inline;fill:none;fill-opacity:1;stroke:#000000;stroke-width:2.64583;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 49.200157,97.208976 100.085,110.29695 99.862958,158.10674 49.399177,145.05868 Z"
id="path871-7"
sodipodi:nodetypes="ccccc" />
<path
style="display:inline;fill:none;fill-opacity:1;stroke:#000000;stroke-width:2.64583;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 17.123402,36.321641 50.884836,13.08797 -0.22204,47.809785 -50.463776,-13.04805 z"
id="path871-7-5"
sodipodi:nodetypes="ccccc" />
<path
style="display:inline;fill:none;fill-opacity:1;stroke:#000000;stroke-width:2.64583;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 68.008234,74.428144 28.295794,-4.38785 v 17.696752 l -28.517832,7.8132 z"
id="path955"
sodipodi:nodetypes="ccccc" />
<path
style="display:inline;fill:none;stroke:#000000;stroke-width:2.365;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 33.489983,64.404484 0.872443,3.074978 10.251193,3.102679 3.644534,-1.231053"
id="path967"
sodipodi:nodetypes="cccc" />
<path
style="display:inline;fill:none;stroke:#000000;stroke-width:2.365;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 64.517084,123.52528 0.872443,3.07497 10.251193,3.10268 3.644535,-1.23105"
id="path967-3"
sodipodi:nodetypes="cccc" />
</g>
<g
inkscape:groupmode="layer"
id="layer3"
inkscape:label="Camada 3">
<path
style="fill:none;stroke:#000000;stroke-width:2.64583;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 41.142262,20.376062 0.03515,14.612659"
id="path1906-3"
sodipodi:nodetypes="cc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 11 KiB

BIN
icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

113
pom.xml Normal file
View File

@ -0,0 +1,113 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.worlio</groupId>
<artifactId>WorldsOrganizer</artifactId>
<version>1.0.2</version>
<packaging>jar</packaging>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.build.timestamp.format>MM/dd/YYYY HH:mm</maven.build.timestamp.format>
<buildNumber>${maven.build.timestamp}</buildNumber>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-base</artifactId>
<version>15.0.1</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>15.0.1</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>15.0.1</version>
<classifier>win</classifier>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>15.0.1</version>
<classifier>linux</classifier>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>15.0.1</version>
<classifier>mac</classifier>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-swing</artifactId>
<version>15.0.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.12.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<!--Compiler settings-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
<!--Run junit tests using maven test command-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M3</version>
</plugin>
<!--Execute main using mvn tasks compile, exec:java-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<mainClass>org.worlio.WorldsOrganizer.WorldsOrganizer</mainClass>
</configuration>
</plugin>
<!--Create jar using mvn tasks compile, assembly:single-->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>org.worlio.WorldsOrganizer.Main</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
</project>

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

View File

@ -0,0 +1,38 @@
package org.worlio.WorldsOrganizer;
import javafx.scene.image.Image;
public class AppIcon {
public static Image logo = new Image(Main.class.getResourceAsStream("/logo.png"));
public static Image config = new Image(Main.class.getResourceAsStream("/icons/conf.png"), getSize(), getSize(), false, true);
public static Image newFile = new Image(Main.class.getResourceAsStream("/icons/file-plus.png"), getSize(), getSize(), false, true);
public static Image openFile = new Image(Main.class.getResourceAsStream("/icons/folder.png"), getSize(), getSize(), false, true);
public static Image saveFile = new Image(Main.class.getResourceAsStream("/icons/save.png"), getSize(), getSize(), false, true);
public static Image saveFileAs = new Image(Main.class.getResourceAsStream("/icons/save-as.png"), getSize(), getSize(), false, true);
public static Image undo = new Image(Main.class.getResourceAsStream("/icons/undo.png"), getSize(), getSize(), false, true);
public static Image redo = new Image(Main.class.getResourceAsStream("/icons/redo.png"), getSize(), getSize(), false, true);
public static Image quitApp = new Image(Main.class.getResourceAsStream("/icons/quit.png"), getSize(), getSize(), false, true);
public static Image add = new Image(Main.class.getResourceAsStream("/icons/plus.png"), getSize(), getSize(), false, true);
public static Image remove = new Image(Main.class.getResourceAsStream("/icons/delete.png"), getSize(), getSize(), false, true);
public static Image removeAll = new Image(Main.class.getResourceAsStream("/icons/delete-all.png"), getSize(), getSize(), false, true);
public static Image moveUp = new Image(Main.class.getResourceAsStream("/icons/up.png"), getSize(), getSize(), false, true);
public static Image moveDown = new Image(Main.class.getResourceAsStream("/icons/down.png"), getSize(), getSize(), false, true);
public static Image findReplace = new Image(Main.class.getResourceAsStream("/icons/find.png"), getSize(), getSize(), false, true);
public static Image linkCheck = new Image(Main.class.getResourceAsStream("/icons/link.png"), getSize(), getSize(), false, true);
public static Image unknownFile = new Image(Main.class.getResourceAsStream("/icons/file.png"), getSize(), getSize(), false, true);
public static Image avatarFile = new Image(Main.class.getResourceAsStream("/icons/avatar.png"), getSize(), getSize(), false, true);
public static Image markFile = new Image(Main.class.getResourceAsStream("/icons/mark.png"), getSize(), getSize(), false, true);
private static int getSize() {
return Main.configManager.getIntValue(ConfigEntry.iconSize);
}
}

View File

@ -0,0 +1,28 @@
package org.worlio.WorldsOrganizer;
public class AvatarObject implements WorldList {
private String name;
private String value;
AvatarObject(String name, String value) {
this.name = name;
this.value = value;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return value;
}
public void setValue(String code) {
this.value = code;
}
}

View File

@ -0,0 +1,9 @@
package org.worlio.WorldsOrganizer;
interface Command {
public void execute();
public void undo();
}

View File

@ -0,0 +1,57 @@
package org.worlio.WorldsOrganizer;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class CommandStack {
private List<Command> commands = Collections.emptyList();
private int nextPointer = 0;
public void doCommand(Command command) {
List<Command> newList = new ArrayList<>(nextPointer + 1);
for(int k = 0; k < nextPointer; k++) {
newList.add(commands.get(k));
}
newList.add(command);
commands = newList;
nextPointer++;
// Do the command here, or return it to whatever called this to be done, or maybe it has already been done by now or something
// (I can only guess on what your code currently looks like...)
command.execute();
}
public boolean canUndo() {
return nextPointer > 0;
}
public void undo() {
if(canUndo()) {
nextPointer--;
Command commandToUndo = commands.get(nextPointer);
// Undo the command, or return it to whatever called this to be undone, or something
commandToUndo.undo();
} else {
throw new IllegalStateException("Cannot undo");
}
}
public boolean canRedo() {
return nextPointer < commands.size();
}
public void redo() {
if(canRedo()) {
Command commandToDo = commands.get(nextPointer);
nextPointer++;
// Do the command, or return it to whatever called this to be re-done, or something
commandToDo.execute();
} else {
throw new IllegalStateException("Cannot redo");
}
}
}

View File

@ -0,0 +1,197 @@
package org.worlio.WorldsOrganizer;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.*;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
enum ToolBarPosition {
TOP("Top", 0),
RIGHT("Right", 1),
BOTTOM("Bottom", 2),
LEFT("Left", 3);
private String name;
private int value;
ToolBarPosition(String name, int value) {
this.name = name;
this.value = value;
}
}
enum ConfigEntry {
updateURL("update-url"),
iconSize("icon-size"),
fileBackup("file-backup"),
darkMode("dark-mode"),
toolbarPos("toolbar-position"),
channel("channel"),
status("show-status"),
debug("debug");
private String name;
ConfigEntry(String name) {
this.name = name;
}
}
public class ConfigManager {
private File configFile;
public static final List<String> channels = Arrays.asList("stable", "beta");
public static final List<String> toolBarPos = Arrays.asList("Top", "Right", "Bottom", "Left");
private static HashMap<String, Object> defaultConfiguration = new HashMap<>();
static HashMap<String, Object> configuration = new HashMap<>();
private static ObjectMapper mapper;
private void initialize() {
mapper = new ObjectMapper();
Console.print("Initializing default config values", 1, ConsoleType.INFO);
defaultConfiguration.put(ConfigEntry.updateURL.name(), "https://worlio.com/WorldsOrganizer.json");
defaultConfiguration.put(ConfigEntry.iconSize.name(), 24);
defaultConfiguration.put(ConfigEntry.fileBackup.name(), true);
defaultConfiguration.put(ConfigEntry.darkMode.name(), false);
defaultConfiguration.put(ConfigEntry.toolbarPos.name(), 3);
defaultConfiguration.put(ConfigEntry.channel.name(), "stable");
defaultConfiguration.put(ConfigEntry.status.name(), true);
defaultConfiguration.put(ConfigEntry.debug.name(), false);
}
public ConfigManager() {
initialize();
}
public ConfigManager(File file) {
initialize();
configFile = file;
try {
if (!configFile.exists()) {
Console.print("Config doesn't exist! Writing new one...", 1, ConsoleType.INFO);
write();
configuration = defaultConfiguration;
} else {
Console.print("Mapping config", 1, ConsoleType.INFO);
configuration = mapper.readValue(new FileInputStream(configFile), new TypeReference<HashMap<String, Object>>() {});
}
} catch (IOException ioException) {
write();
}
}
public boolean write() {
Console.print("Updating config", ConsoleType.INFO);
return write(configFile);
}
public boolean write(HashMap<String, Object> hash) {
if (!configFile.exists()) {
if (!createFile(configFile)) return false;
}
assert configFile.exists();
try(FileOutputStream fos = new FileOutputStream(configFile);
BufferedOutputStream bos = new BufferedOutputStream(fos)) {
bos.write(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(hash).getBytes());
bos.close();
fos.close();
configuration = mapper.readValue(new FileInputStream(configFile), new TypeReference<HashMap<String, Object>>() {
});
return true;
} catch (IOException e) {
Console.print("IOException encountered while writing config file. Aborted!", ConsoleType.ERROR);
return false;
}
}
public boolean write(File file) {
if (!file.exists()) {
if (!createFile(file)) return false;
}
ObjectMapper mapper = new ObjectMapper();
try(FileOutputStream fos = new FileOutputStream(configFile);
BufferedOutputStream bos = new BufferedOutputStream(fos)) {
bos.write(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(configuration).getBytes());
bos.close();
fos.close();
configuration = mapper.readValue(new FileInputStream(file), new TypeReference<HashMap<String, Object>>() {});
return true;
} catch (IOException e) {
Console.print("IOException encountered while writing config file. Aborted!", ConsoleType.ERROR);
return false;
}
}
private boolean createFile(File file) {
try {
assert file.createNewFile();
return true;
} catch (Exception e) {
e.printStackTrace();
return false;
}
}
public boolean getBooleanValue(ConfigEntry entry) {
return (boolean)getValue(entry);
}
public String getStringValue(ConfigEntry entry) {
return (String)getValue(entry);
}
public int getIntValue(ConfigEntry entry) {
return (int)getValue(entry);
}
public double getDoubleValue(ConfigEntry entry) {
return (double)getValue(entry);
}
private Object getValue(ConfigEntry entry) {
try {
Object o = configuration.get(entry.name());
if (o == null) throw new NullPointerException();
else return o;
} catch (NullPointerException e) {
return defaultConfiguration.get(entry.name());
}
}
private void set(ConfigEntry entry, Object value) {
if (configuration.containsKey(entry.name())) configuration.replace(entry.name(), value);
else configuration.put(entry.name(), value);
}
public void setValue(ConfigEntry entry, Object value) {
switch (entry) {
default:
set(entry, value);
break;
case toolbarPos:
switch ((String)value) {
case "Top":
set(entry, 0);
break;
case "Right":
set(entry, 1);
break;
case "Bottom":
set(entry, 2);
break;
default:
case "Left":
set(entry, 3);
break;
}
break;
}
}
}

View File

@ -0,0 +1,139 @@
package org.worlio.WorldsOrganizer;
import java.io.File;
import java.io.IOException;
import java.net.*;
import java.util.List;
import java.util.Properties;
enum ConsoleType {
ERROR(5),
WARNING(4),
DEBUG(3),
SUCCESS(2),
INFO(1),
DEFAULT(0);
private final int value;
ConsoleType(int value) {
this.value = value;
}
}
public class Console {
public static final String RESET = "\u001B[0m";
public static final String RED = "\u001B[31m";
public static final String GREEN = "\u001B[32m";
public static final String YELLOW = "\u001B[33m";
public static final String BLUE = "\u001B[34m";
public static final String CYAN = "\u001B[36m";
final static Properties properties = new Properties();
public static void print(String message) {
print(message, ConsoleType.INFO);
}
public static void print(String message, ConsoleType type) {
print(message, 0, type);
}
public static void print(String message, int debug, ConsoleType type) {
if (Main.debugMode >= debug) {
String output = "";
switch (type) {
case DEFAULT:
break;
case INFO:
output = BLUE + "INFO " + RESET;
break;
case SUCCESS:
output = GREEN + "SUCCESS " + RESET;
break;
case DEBUG:
output = CYAN + "DEBUG " + RESET;
break;
case WARNING:
output = YELLOW + "WARNING " + RESET;
break;
case ERROR:
output = RED + "ERROR " + RESET;
break;
}
output += message;
System.out.println(output);
}
}
private static String getProperty(String property) {
try {
properties.load(Main.class.getClassLoader().getResourceAsStream("project.properties"));
return properties.getProperty(property);
} catch (IOException e) {
return "?";
}
}
public static String getVersion(){
return getProperty("version");
}
public static String getDate(){
return getProperty("buildDate");
}
public static String getHelp() {
String command;
command = "WorldsOrganizer.jar [OPTIONS]\n" +
"Commands:\n" +
commandCreate(" --debug=n", "Enable debug mode, which displays extra log information in the command-line. (1 - Logging, 2 - Complete Debug)") + "\n" +
commandCreate("-i --input", "Start application with input files.") + "\n" +
commandCreate("-h --help", "Show this output.");
return command;
}
private static String commandCreate(String cmd, String info) {
return " " + cmd + " ".substring(cmd.length()) + info;
}
public static boolean testURL(String address) throws IOException {
int responseCode;
try {
URL url = new URL(address);
HttpURLConnection huc = (HttpURLConnection) url.openConnection();
huc.setRequestMethod("HEAD");
huc.setConnectTimeout(15000);
responseCode = huc.getResponseCode();
} catch (Exception e) {
responseCode = 404;
}
return HttpURLConnection.HTTP_OK == responseCode;
}
public static void process() {
Dialog.process();
}
public static File getParent() {
try {
return new File(Main.class.getProtectionDomain().getCodeSource().getLocation().toURI()).getParentFile();
} catch (URISyntaxException e) {
Dialog.showException(e);
return null;
}
}
public static String changelogify(List<String> list) {
StringBuilder changes = new StringBuilder();
for (String line : list) {
changes.append(" - ").append(line).append("\n");
}
return changes.toString();
}
}

View File

@ -0,0 +1,170 @@
package org.worlio.WorldsOrganizer;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.Pane;
import javafx.scene.layout.Priority;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Optional;
public class Dialog {
public static void showWindowDialog(String title, Pane pane) {
showWindowDialog(title, pane, null);
}
public static void showWindowDialog(String title, Pane pane, Collection<Button> buttons) {
Stage dStage = new Stage();
dStage.initOwner(Main.mainStage);
dStage.setTitle(title);
Button cancelButton = new Button("Close");
cancelButton.setCancelButton(true);
cancelButton.addEventFilter(MouseEvent.MOUSE_CLICKED, a -> dStage.close());
ButtonBar buttonBar = new ButtonBar();
buttonBar.getButtons().add(cancelButton);
if (buttons != null) buttonBar.getButtons().addAll(buttons);
buttonBar.setPadding(new Insets(10, 10, 10, 10));
dStage.setMinWidth(400);
dStage.setMinHeight(400);
dStage.setScene(new Scene(new VBox(pane, buttonBar), 400, 400));
dStage.show();
}
public static void showError(String header, String content) {
Alert alert = new Alert(Alert.AlertType.ERROR);
alert.setTitle("An Error Occurred");
alert.setHeaderText(header);
alert.setContentText(content);
alert.initOwner(Main.mainStage);
alert.getDialogPane().setMinSize(200,200);
alert.showAndWait();
}
public static void showException(Exception ex) {
Alert alert = new Alert(Alert.AlertType.ERROR);
alert.setTitle("Exception Dialog");
alert.setHeaderText("An Exception was encountered.");
alert.setContentText("Please file a bug report if this problem persists.");
alert.initOwner(Main.mainStage);
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
ex.printStackTrace(pw);
String exceptionText = sw.toString();
Label label = new Label("The exception stacktrace was:");
TextArea textArea = new TextArea(exceptionText);
textArea.setEditable(false);
textArea.setWrapText(true);
textArea.setMaxWidth(Double.MAX_VALUE);
textArea.setMaxHeight(Double.MAX_VALUE);
GridPane.setVgrow(textArea, Priority.ALWAYS);
GridPane.setHgrow(textArea, Priority.ALWAYS);
GridPane expContent = new GridPane();
expContent.setMaxWidth(Double.MAX_VALUE);
expContent.add(label, 0, 0);
expContent.add(textArea, 0, 1);
alert.getDialogPane().setExpandableContent(expContent);
alert.getDialogPane().setMinSize(200,200);
alert.showAndWait();
}
public static WorldsType newFileList() {
List<String> choices = new ArrayList<>();
choices.add("Avatars");
choices.add("WorldsMarks");
ChoiceDialog<String> dialog = new ChoiceDialog<>(choices.get(0), choices);
dialog.setTitle("New File");
dialog.setHeaderText("Select a type for the new file.");
dialog.setContentText("Type:");
dialog.initOwner(Main.mainStage);
dialog.getDialogPane().setMinSize(200,200);
Optional<String> result = dialog.showAndWait();
if (result.isPresent()){
if (result.get().equals(choices.get(0)))
return WorldsType.AVATAR;
else if (result.get().equals(choices.get(1)))
return WorldsType.WORLDSMARK;
else return WorldsType.NULL;
} else {
return WorldsType.NULL;
}
}
public static void showUpdate(Version newVer) {
Alert alert = new Alert(Alert.AlertType.INFORMATION);
assert Main.verMan != null;
alert.setTitle("Update Dialog");
alert.setHeaderText("A new version (v" + newVer.get() + ") of Organizer is available for download.\nYou are currently on v" + Console.getVersion() + ".");
alert.initOwner(Main.mainStage);
ButtonType updateButton = new ButtonType("Open");
ButtonType buttonTypeCancel = new ButtonType("Cancel", ButtonBar.ButtonData.CANCEL_CLOSE);
Label label = new Label("View Changelog");
TextArea textArea = new TextArea(Console.changelogify(Main.verMan.getChangelog(newVer)));
textArea.setEditable(false);
textArea.setWrapText(true);
textArea.setMaxWidth(Double.MAX_VALUE);
textArea.setMaxHeight(Double.MAX_VALUE);
GridPane.setVgrow(textArea, Priority.ALWAYS);
GridPane.setHgrow(textArea, Priority.ALWAYS);
GridPane expContent = new GridPane();
expContent.setMaxWidth(Double.MAX_VALUE);
expContent.add(label, 0, 0);
expContent.add(textArea, 0, 1);
alert.getDialogPane().setExpandableContent(expContent);
alert.getButtonTypes().setAll(updateButton, buttonTypeCancel);
alert.getDialogPane().setMinSize(200,200);
Optional<ButtonType> result = alert.showAndWait();
if (result.get() == updateButton) {
Console.print("Displaying webpage in native browser.", 1, ConsoleType.INFO);
Main.hostServices.showDocument(Main.verMan.url.replace("{ver}", newVer.get()));
} else {
alert.close();
}
}
public static void process() {
Alert alert = new Alert(Alert.AlertType.INFORMATION);
alert.setTitle("Message");
alert.setHeaderText(
"For all you give me, an " + "ea" + "st" + "er" + " " + "e" + "gg" + " for you."
);
alert.setContentText(
"I" + " l" + "ov" + "e" + " yo" + "u," + "DO" + "SF" + "OX" + "!"
);
alert.initOwner(Main.mainStage);
alert.getDialogPane().setMinSize(200,200);
alert.showAndWait();
}
}

View File

@ -0,0 +1,23 @@
package org.worlio.WorldsOrganizer;
import java.io.IOException;
public class InvalidPersisterException extends IOException {
public InvalidPersisterException() {
super();
}
public InvalidPersisterException(String message) {
super(message);
}
public InvalidPersisterException(String message, Throwable cause) {
super(message, cause);
}
public InvalidPersisterException(Throwable cause) {
super(cause);
}
}

View File

@ -0,0 +1,705 @@
package org.worlio.WorldsOrganizer;
import javafx.application.Application;
import javafx.application.HostServices;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.concurrent.Task;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.image.ImageView;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Pane;
import javafx.scene.layout.Priority;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.scene.text.*;
import javafx.stage.FileChooser;
import javafx.stage.Stage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Optional;
public class Main extends Application {
static int debugMode = 0;
static ConfigManager configManager;
static VersionManager verMan;
static List<File> startFiles = new ArrayList<>();
static List<WorldsTab> tabs = new ArrayList<>();
private TabPane tabPane;
private static Pane statusPane;
public static Stage mainStage;
static HostServices hostServices;
@Override
public void init() {
Console.print("Worlds Organizer v" + Console.getVersion());
Console.print("Running on Java " + System.getProperty("java.version"));
configManager = new ConfigManager(new File((Console.getParent() + "/config.json")));
try {
verMan = new VersionManager();
} catch (IOException e) {
Console.print("An IOException was encountered attempting to obtain the version.", 1, ConsoleType.ERROR);
e.printStackTrace();
}
if (debugMode < 1) debugMode = configManager.getBooleanValue(ConfigEntry.debug) ? 1 : 0;
Console.print("Initializing main application.", ConsoleType.INFO);
hostServices = this.getHostServices();
}
public static void main(String[] args) {
boolean doRun = true;
for (int a = 0; a < args.length; a++) {
String arg = args[a];
if (arg.startsWith("--debug")) {
try {
debugMode = Integer.parseInt(args[a+1]);
Console.print("Debug mode set to: " + debugMode, 1, ConsoleType.INFO);
a++;
} catch (NumberFormatException e) {
debugMode = 0;
Console.print("NumberFormatException encountered! Defaulting to 0.", 1, ConsoleType.WARNING);
}
} else if (arg.equals("-i") || arg.equals("--input")) {
try {
File newFile = new File(args[a + 1]);
startFiles.add(newFile);
a++;
} catch (Exception e) {
Console.print("Invalid file location in argument!", 0, ConsoleType.ERROR);
}
} else if (arg.equals("-h") || arg.equals("--help")) {
doRun = false;
Console.getHelp();
break;
} else {
doRun = false;
Console.print(arg + " is not a valid argument. Please use '-help' to see a list of options and arguments.", 0, ConsoleType.WARNING);
break;
}
}
if (doRun) launch(args);
}
@Override
public void start(final Stage stage) {
mainStage = stage;
mainStage.setTitle("Worlds Organizer");
mainStage.getIcons().add(AppIcon.logo);
Console.print("Starting Window", 1, ConsoleType.INFO);
mainStage.setOnCloseRequest(a -> {
quit();
});
ToolBar menuBar = new ToolBar();
Button newFileBtn = new Button("New");
newFileBtn.setGraphic(new ImageView(AppIcon.newFile));
menuBar.getItems().add(newFileBtn);
Button openFileBtn = new Button("Open");
openFileBtn.setGraphic(new ImageView(AppIcon.openFile));
menuBar.getItems().add(openFileBtn);
Button saveFileBtn = new Button("Save");
saveFileBtn.setGraphic(new ImageView(AppIcon.saveFile));
menuBar.getItems().add(saveFileBtn);
Button saveAsFileBtn = new Button("Save As");
saveAsFileBtn.setGraphic(new ImageView(AppIcon.saveFileAs));
menuBar.getItems().add(saveAsFileBtn);
menuBar.getItems().add(new Separator());
Button undoBtn = new Button();
undoBtn.setGraphic(new ImageView(AppIcon.undo));
undoBtn.setTooltip(new Tooltip("Undo"));
menuBar.getItems().add(undoBtn);
Button redoBtn = new Button();
redoBtn.setGraphic(new ImageView(AppIcon.redo));
redoBtn.setTooltip(new Tooltip("Redo"));
menuBar.getItems().add(redoBtn);
menuBar.getItems().add(new Separator());
Button confBtn = new Button();
confBtn.setTooltip(new Tooltip("Preferences"));
confBtn.setGraphic(new ImageView(AppIcon.config));
menuBar.getItems().add(confBtn);
Button quitBtn = new Button("Quit");
quitBtn.setGraphic(new ImageView(AppIcon.quitApp));
menuBar.getItems().add(quitBtn);
// Adding a tab pane
tabPane = new TabPane();
Console.print("Initializing Start Page", 1, ConsoleType.INFO);
// This will be permanent, and be exempt from the tab values we record.
Tab startTab = getStartPage();
startTab.setClosable(false);
tabPane.getTabs().add(startTab);
// Assigning all the events now.
Console.print("Assigning Events", 1, ConsoleType.INFO);
tabPane.addEventFilter(Tab.CLOSED_EVENT, f -> {
Console.print("Detected Tab Closed. Index " + (tabPane.getSelectionModel().getSelectedIndex() - 1) + ".", 1, ConsoleType.INFO);
tabs.remove(tabPane.getSelectionModel().getSelectedIndex() - 1);
});
// First adding the status bar
statusPane = new VBox(new Text());
statusPane.setPadding(new Insets(4, 4, 4, 4));
VBox vBox = new VBox(menuBar, tabPane);
if (configManager.getBooleanValue(ConfigEntry.status)) vBox.getChildren().add(statusPane);
Console.print("Completed Base Window Initialization", 1, ConsoleType.INFO);
Scene scene = new Scene(vBox, 960, 600);
newFileBtn.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> {
if (e.isShiftDown()) {
try {
WorldListObject tempW = tabs.get(0).worldList;
if (tempW.size() <= 1) {
if (
tempW.get(0).getName().equals(
"D" + "F"
) && tempW.get(0).getValue().equals(
"6" + "/" + "2" + "7" + "/" + "2" + "0"
)
) {
Console.process();
} else newFile();
} else newFile();
} catch (NullPointerException | IndexOutOfBoundsException ignored) {}
} else newFile();
});
openFileBtn.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> {
openFile(null);
});
saveFileBtn.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> {
try {
WorldsTab tableObj = tabs.get(tabPane.getSelectionModel().getSelectedIndex() - 1);
saveFile(tableObj, tableObj.file);
Main.setStatusText("Saved file to '" + tableObj.file.getAbsolutePath() + "'.");
} catch (IndexOutOfBoundsException i) {
Console.print("IndexOutOfBoundsException encountered! Must be on file tab to save.", ConsoleType.ERROR);
}
});
saveAsFileBtn.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> {
try {
WorldsTab tableObj = tabs.get(tabPane.getSelectionModel().getSelectedIndex() - 1);
saveFile(tableObj);
} catch (IndexOutOfBoundsException i) {
Console.print("IndexOutOfBoundsException encountered! Must be on file tab to save.", ConsoleType.ERROR);
}
});
undoBtn.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> {
if (tabs.size() > 0 && tabPane.getSelectionModel().getSelectedIndex() > 0) {
WorldsTab tableObj = tabs.get(tabPane.getSelectionModel().getSelectedIndex() - 1);
tableObj.doUndo();
}
});
redoBtn.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> {
if (tabs.size() > 0 && tabPane.getSelectionModel().getSelectedIndex() > 0) {
WorldsTab tableObj = tabs.get(tabPane.getSelectionModel().getSelectedIndex() - 1);
tableObj.doRedo();
}
});
confBtn.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> {
// This is it's own window to circumvent the issues with Buttons
// and design on Dialog.
Stage confStage = new Stage();
confStage.initOwner(mainStage);
confStage.setTitle("Preferences");
Console.print("Displaying Configuration Window", 1, ConsoleType.INFO);
// General Tab
Label channelName = new Label("Update Channel");
channelName.setFont(Font.font("Verdana", FontWeight.BOLD, FontPosture.REGULAR, 12));
Label channelInfo = new Label("Channel to use for update checks and links: 'stable' will provide tested " +
"build updates while 'beta' is more of an experimental bug-finding experience.");
channelInfo.setWrapText(true);
ObservableList<String> channels =
FXCollections.observableArrayList(ConfigManager.channels);
ComboBox<String> channelOption = new ComboBox(channels);
channelOption.getSelectionModel().select(configManager.getStringValue(ConfigEntry.channel));
HBox.setHgrow(channelOption, Priority.ALWAYS);
// Appearance Tab
Label darkName = new Label("Use Dark Mode");
darkName.setFont(Font.font("Verdana", FontWeight.BOLD, FontPosture.REGULAR, 12));
Label darkInfo = new Label("Changes the style of the application to use a basic dark theme.");
darkInfo.setWrapText(true);
CheckBox darkOption = new CheckBox("Enabled");
darkOption.setSelected(configManager.getBooleanValue(ConfigEntry.darkMode));
darkOption.selectedProperty().addListener((obs, wasSelected, isSelected) -> {
configManager.setValue(ConfigEntry.darkMode, isSelected);
});
VBox.setVgrow(darkOption, Priority.ALWAYS);
Label statusName = new Label("Display Status Bar");
statusName.setFont(Font.font("Verdana", FontWeight.BOLD, FontPosture.REGULAR, 12));
Label statusInfo = new Label("Changes the style of the application to use a basic dark theme. Requires a restart to apply.");
statusInfo.setWrapText(true);
CheckBox statusOption = new CheckBox("Enabled");
statusOption.setSelected(configManager.getBooleanValue(ConfigEntry.status));
statusOption.selectedProperty().addListener((obs, wasSelected, isSelected) -> {
configManager.setValue(ConfigEntry.status, isSelected);
});
VBox.setVgrow(statusOption, Priority.ALWAYS);
Label toolName = new Label("Toolbar Location");
toolName.setFont(Font.font("Verdana", FontWeight.BOLD, FontPosture.REGULAR, 12));
Label toolInfo = new Label("The edge to place the toolbar that holds the file tools. Default is 'LEFT'.");
toolInfo.setWrapText(true);
Label toolLabel = new Label("Toolbar Location: ");
HBox.setHgrow(toolLabel, Priority.SOMETIMES);
ObservableList<String> toolPos =
FXCollections.observableArrayList(ConfigManager.toolBarPos);
ComboBox<String> toolPosOption = new ComboBox<>(toolPos);
toolPosOption.getSelectionModel().select(configManager.getIntValue(ConfigEntry.toolbarPos));
HBox.setHgrow(toolPosOption, Priority.ALWAYS);
Label sizeName = new Label("Icon Size");
sizeName.setFont(Font.font("Verdana", FontWeight.BOLD, FontPosture.REGULAR, 12));
Label sizeInfo = new Label("Size (in pixels) of icons in the window. Requires a restart to apply.");
sizeInfo.setWrapText(true);
Slider iconSizeSlider = new Slider(16, 96, configManager.getIntValue(ConfigEntry.iconSize));
iconSizeSlider.setTooltip(new Tooltip("Set icon size for the interface icons."));
HBox.setHgrow(iconSizeSlider, Priority.SOMETIMES);
iconSizeSlider.setShowTickLabels(true);
iconSizeSlider.setShowTickMarks(true);
iconSizeSlider.setMajorTickUnit(16);
iconSizeSlider.setMinorTickCount(1);
iconSizeSlider.setSnapToTicks(true);
// Advanced Tab
Label backupName = new Label("Use Backups");
backupName.setFont(Font.font("Verdana", FontWeight.BOLD, FontPosture.REGULAR, 12));
Label backupInfo = new Label("Creates a backup of the file before the save process.");
backupInfo.setWrapText(true);
CheckBox backupOption = new CheckBox("Enabled");
backupOption.setSelected(configManager.getBooleanValue(ConfigEntry.fileBackup));
backupOption.selectedProperty().addListener((obs, wasSelected, isSelected) -> {
configManager.setValue(ConfigEntry.fileBackup, isSelected);
});
VBox.setVgrow(backupOption, Priority.ALWAYS);
Label debugName = new Label("Print Debug");
debugName.setFont(Font.font("Verdana", FontWeight.BOLD, FontPosture.REGULAR, 12));
Label debugInfo = new Label("Prints out debug information in the commandline output. Requires a restart to apply.");
debugInfo.setWrapText(true);
CheckBox debugCheck = new CheckBox("Enabled");
debugCheck.setSelected(configManager.getBooleanValue(ConfigEntry.debug));
debugCheck.selectedProperty().addListener((obs, wasSelected, isSelected) -> {
configManager.setValue(ConfigEntry.debug, isSelected);
});
VBox.setVgrow(debugCheck, Priority.ALWAYS);
Button applyButton = new Button("Apply");
applyButton.setDefaultButton(true);
applyButton.addEventFilter(MouseEvent.MOUSE_CLICKED, a -> {
configManager.setValue(ConfigEntry.toolbarPos, toolPosOption.getValue());
configManager.setValue(ConfigEntry.channel, channelOption.getValue());
configManager.setValue(ConfigEntry.iconSize, (int)iconSizeSlider.getValue());
configManager.write();
toggleDark(scene);
Main.setStatusText("Applied new settings.");
});
Button okButton = new Button("Ok");
okButton.addEventFilter(MouseEvent.MOUSE_CLICKED, a -> {
configManager.setValue(ConfigEntry.toolbarPos, toolPosOption.getValue());
configManager.setValue(ConfigEntry.channel, channelOption.getValue());
configManager.setValue(ConfigEntry.iconSize, (int)iconSizeSlider.getValue());
configManager.write();
toggleDark(scene);
confStage.close();
Main.setStatusText("Applied new settings.");
});
Button cancelButton = new Button("Cancel");
cancelButton.setCancelButton(true);
cancelButton.addEventFilter(MouseEvent.MOUSE_CLICKED, a -> {
confStage.close();
});
// Tabbing every option into their own VBox so we can have them split off in their own containers.
// This makes it easier to add to tabs because it's just a simple declare. Also good for design.
VBox vGeneral = new VBox(channelName, channelInfo, channelOption);
ScrollPane general = new ScrollPane(vGeneral);
general.setFitToWidth(true);
Tab generalTab = new Tab("General", general);
VBox.setVgrow(general, Priority.ALWAYS);
vGeneral.setPadding(new Insets(10, 10, 10, 10));
vGeneral.setSpacing(10);
VBox vSkin = new VBox(darkName, darkInfo, darkOption, statusName, statusInfo, statusOption,
toolName, toolInfo, toolPosOption, sizeName, sizeInfo, iconSizeSlider);
ScrollPane skin = new ScrollPane(vSkin);
skin.setFitToWidth(true);
Tab skinTab = new Tab("Appearance", skin);
VBox.setVgrow(skin, Priority.ALWAYS);
vSkin.setPadding(new Insets(10, 10, 10, 10));
vSkin.setSpacing(10);
VBox vAdvance = new VBox(backupName, backupInfo, backupOption, debugName, debugInfo, debugCheck);
ScrollPane advance = new ScrollPane(vAdvance);
advance.setFitToWidth(true);
Tab advanceTab = new Tab("Advanced", advance);
VBox.setVgrow(advance, Priority.ALWAYS);
vAdvance.setPadding(new Insets(10, 10, 10, 10));
vAdvance.setSpacing(10);
TabPane prefPane = new TabPane(generalTab, skinTab, advanceTab);
VBox.setVgrow(prefPane, Priority.ALWAYS);
prefPane.setTabClosingPolicy(TabPane.TabClosingPolicy.UNAVAILABLE);
general.maxWidthProperty().bind(prefPane.widthProperty());
skin.maxWidthProperty().bind(prefPane.widthProperty());
advance.maxWidthProperty().bind(prefPane.widthProperty());
ButtonBar bBar = new ButtonBar();
bBar.getButtons().addAll(applyButton, okButton, cancelButton);
bBar.setPadding(new Insets(10, 10, 10, 10));
confStage.setMinWidth(350);
confStage.setMinHeight(250);
confStage.setScene(new Scene(new VBox(prefPane, bBar), 350, 350));
confStage.show();
});
quitBtn.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> {
e.consume();
quit();
});
VBox.setVgrow(tabPane, Priority.ALWAYS);
toggleDark(scene);
Console.print("Scene Prepared", 1, ConsoleType.INFO);
mainStage.setScene(scene);
mainStage.show();
Console.print("Displaying Main Window", 1, ConsoleType.INFO);
// Going through files set up on command-line arguments.
Console.print("Iterating through argument files", 1, ConsoleType.INFO);
if (startFiles != null && startFiles.size() > 0) {
try {
for (File start : startFiles) {
if (start.exists()) openFile(start);
else Console.print("Unable to open file: File Not Found:\n'" + start.getPath() + "'", ConsoleType.ERROR);
}
} catch (Exception e) {
Console.print("An unknown error occurred attempting to open argument files.", 1, ConsoleType.ERROR);
}
}
}
public static void setStatusText(String message) {
statusPane.getChildren().set(0, new Text(message));
// 2.5 Seconds later, the text will disappear. Makes it look neater and also makes sure you
// aren't frozen I guess.
Task<Void> sleeper = new Task<Void>() {
@Override
protected Void call() {
try {
Thread.sleep(2500);
} catch (InterruptedException e) {
statusPane = new VBox(new Text());
}
return null;
}
};
sleeper.setOnSucceeded(event -> statusPane.getChildren().set(0, new Text()));
new Thread(sleeper).start();
}
private void toggleDark(Scene curScene) {
if (configManager.getBooleanValue(ConfigEntry.darkMode)) curScene.getStylesheets().add("dark.css");
else curScene.getStylesheets().remove("dark.css");
}
public Tab getStartPage() {
VBox mainBox = new VBox();
// Styling fancy texts.
ImageView logoView = new ImageView(AppIcon.logo);
Text nameTxt = new Text("Worlds Organizer v" + Console.getVersion());
nameTxt.setFont(Font.font("Verdana", FontWeight.BOLD, FontPosture.REGULAR, 20));
Text buildTxt = new Text("Build Date: " + Console.getDate());
buildTxt.setFont(Font.font("Verdana", FontWeight.NORMAL, FontPosture.REGULAR, 12));
buildTxt.setFill(Color.GRAY);
Text devTxt = new Text("Developed by Worlio LLC");
devTxt.setFont(Font.font("Verdana", FontWeight.MEDIUM, FontPosture.REGULAR, 12));
logoView.setPreserveRatio(true);
logoView.fitHeightProperty().bind(mainBox.heightProperty().multiply(0.5));
mainBox.setAlignment(Pos.CENTER);
Button updateButton = new Button("Check for Updates");
updateButton.addEventFilter(MouseEvent.MOUSE_CLICKED, a -> {
boolean isUpdatable;
try {
// Simply restarting the manager so it gets everything fresh.
// Simple yet effective at what we want, without issues.
verMan = new VersionManager();
isUpdatable = verMan.hasUpdate();
if (isUpdatable) {
Console.print("Update detected! Showing dialog.", ConsoleType.INFO);
verMan.pushUpdate();
} else Console.print("No updates available.", ConsoleType.INFO);
} catch (IOException e) {
Console.print("Could not check for updates!", ConsoleType.ERROR);
isUpdatable = false;
}
if (!isUpdatable) Dialog.showError("Update Check", "No new updates are available.");
});
Button changelogButton = new Button("What's new?");
changelogButton.addEventFilter(MouseEvent.MOUSE_CLICKED, a -> {
Stage changelogStage = new Stage();
changelogStage.initOwner(mainStage);
changelogStage.setTitle("What's new?");
VBox changesBox = new VBox();
// Reading the json file remotely, and then looking through every single value in the list.
// It's simple text, so it makes it easy to parse and style.
for (Map.Entry<?, ?> vC : ((Map<?, ?>)((Map<?, ?>)verMan.json.get("versions")).get(configManager.getStringValue(ConfigEntry.channel))).entrySet()) {
// UPDATES UPDATES UPDATES
if (new Version((String)vC.getKey()).equals(new Version(Console.getVersion()))) {
Text channel = new Text("Current Version");
channel.setFont(Font.font("Verdana", FontWeight.LIGHT, FontPosture.ITALIC, 12));
changesBox.getChildren().add(channel);
}
Text version = new Text((String)vC.getKey());
version.setFont(Font.font("Verdana", FontWeight.BOLD, FontPosture.REGULAR, 14));
changesBox.getChildren().add(version);
for (String line : verMan.getChangelog(new Version((String)vC.getKey()))) {
Text lineTxt = new Text(" - " + line);
lineTxt.wrappingWidthProperty().bind(changesBox.prefWidthProperty().multiply(0.95));
changesBox.getChildren().add(lineTxt);
}
changesBox.getChildren().add(new Separator());
}
changesBox.setPadding(new Insets(10, 10, 10, 10));
// Organize it nicely within a small ScrollPane.
// It took forever to get the text to wrap so this works.
ScrollPane changesPane = new ScrollPane(changesBox);
VBox.setVgrow(changesPane, Priority.ALWAYS);
changesPane.prefWidthProperty().bind(changelogStage.widthProperty());
changesPane.setFitToWidth(true);
changesBox.prefWidthProperty().bind(changesPane.widthProperty());
Button cancelButton = new Button("Close");
cancelButton.setCancelButton(true);
cancelButton.addEventFilter(MouseEvent.MOUSE_CLICKED, (e) -> changelogStage.close());
ButtonBar bBar = new ButtonBar();
bBar.getButtons().addAll(cancelButton);
bBar.setPadding(new Insets(10, 10, 10, 10));
changelogStage.setMinWidth(450);
changelogStage.setMinHeight(400);
changelogStage.setScene(new Scene(new VBox(changesPane, bBar), 450, 400));
changelogStage.show();
});
HBox bBar = new HBox(changelogButton, updateButton);
bBar.setAlignment(Pos.CENTER);
bBar.setSpacing(10);
bBar.setPadding(new Insets(10, 10, 10, 10));
mainBox.getChildren().addAll(logoView, nameTxt, buildTxt, devTxt, bBar);
return new Tab("Start Page", mainBox);
}
void newFile() {
// Essentially a bare bones way of opening a file without the file.
WorldsTab tableObj = new WorldsTab();
WorldsType newType = Dialog.newFileList();
if (newType != WorldsType.NULL) {
Console.print("Creating a new tab", 1, ConsoleType.INFO);
Tab tab = tableObj.getTab(newType);
tabPane.getTabs().add(tab);
tabs.add(tableObj);
Main.setStatusText("Opened new tab.");
tabPane.getSelectionModel().select(tabPane.getTabs().size() - 1);
}
}
void openFile(File file) {
File openedFile;
if (file == null) {
FileChooser fileChooser = new FileChooser();
fileChooser.setTitle("Open File");
fileChooser.getExtensionFilters().addAll(
new FileChooser.ExtensionFilter("All Files", "*"),
new FileChooser.ExtensionFilter("All Supported Formats", "*.avatars", "*.worldsmarks", "*.organizer-bkup"),
new FileChooser.ExtensionFilter("Gamma Avatars (*.avatars)", "*.avatars"),
new FileChooser.ExtensionFilter("Gamma WorldsMarks (*.worldsmarks)", "*.worldsmarks")
);
openedFile = fileChooser.showOpenDialog(mainStage);
} else {
openedFile = file;
}
if (openedFile != null) {
WorldsTab tableObj = new WorldsTab();
Tab tab = tableObj.getTab(openedFile);
if (tab != null) {
Main.setStatusText("Opened file '" + openedFile.getAbsolutePath() + "'.");
tabPane.getTabs().add(tab);
tabs.add(tableObj);
tabPane.getSelectionModel().select(tabPane.getTabs().size() - 1);
} else {
Console.print("InvalidPersisterFile encountered! File is not a supported format.", ConsoleType.ERROR);
Dialog.showError("Invalid File!", "File selected is not a valid Persister format.");
}
}
}
void saveFile(WorldsTab tab) {
saveFile(tab, null);
}
void saveFile(WorldsTab tab, File file) {
File thisFile;
if (file == null) {
FileChooser fileChooser = new FileChooser();
fileChooser.setTitle("Save As File");
fileChooser.getExtensionFilters().addAll(
new FileChooser.ExtensionFilter("Gamma Avatars (*.avatars)", "*.avatars"),
new FileChooser.ExtensionFilter("Gamma WorldsMarks (*.worldsmarks)", "*.worldsmarks")
);
fileChooser.setInitialFileName("gamma");
thisFile = fileChooser.showSaveDialog(mainStage);
if (thisFile != null) {
switch (fileChooser.getSelectedExtensionFilter().getExtensions().get(0)) {
default:
case "*.avatars":
tab.worldList.classType = WorldsType.AVATAR;
break;
case "*.worldsmarks":
tab.worldList.classType = WorldsType.WORLDSMARK;
break;
}
}
} else {
thisFile = file;
}
if (thisFile != null) {
try {
Saver saver = new Saver(thisFile);
saver.save(tab.worldList);
tab.setSaved(true);
tab.update(thisFile);
Main.setStatusText("Saved file to '" + thisFile.getAbsolutePath() + "'.");
} catch (IOException e) {
Console.print("Unable to save file: " + thisFile.getAbsolutePath(), ConsoleType.ERROR);
Dialog.showException(e);
}
}
}
void quit() {
boolean askForSure = false;
for (WorldsTab t : tabs) {
if (!t.getSaved()) {
askForSure = true;
break;
}
}
if (askForSure) {
Alert alert = new Alert(Alert.AlertType.CONFIRMATION);
alert.getDialogPane().setMinSize(200,200);
alert.setTitle("Quit");
alert.setHeaderText("Are you sure you want to quit?");
alert.setContentText("You have unsaved changes. Quitting now will lose your progress.");
ButtonType dontSaveButton = new ButtonType("Discard Changes");
ButtonType buttonTypeCancel = new ButtonType("Cancel", ButtonBar.ButtonData.CANCEL_CLOSE);
alert.getButtonTypes().setAll(dontSaveButton, buttonTypeCancel);
Optional<ButtonType> result = alert.showAndWait();
if (result.get() == dontSaveButton) {
mainStage.close();
} else {
alert.close();
}
} else {
mainStage.close();
}
}
}

View File

@ -0,0 +1,28 @@
package org.worlio.WorldsOrganizer;
public class MarkObject implements WorldList {
private String name;
private String value;
MarkObject(String name, String value) {
this.name = name;
this.value = value;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return value;
}
public void setValue(String code) {
this.value = code;
}
}

View File

@ -0,0 +1,101 @@
package org.worlio.WorldsOrganizer;
import java.io.*;
public class Restorer {
DataInputStream dis;
File file;
public WorldListObject listObj;
private int oID;
Restorer(String path) {
new Restorer(new File(path));
}
Restorer(File file) {
Console.print("Initialized Restorer", 1, ConsoleType.INFO);
this.file = file;
try {
FileInputStream fis = new FileInputStream(file);
dis = new DataInputStream(fis);
Console.print("Restorer file set as '" + file.getAbsolutePath() + "'", 1, ConsoleType.INFO);
} catch (IOException e) {
Console.print("IOException reading file: '" + file.getAbsolutePath() + "'", ConsoleType.ERROR);
}
}
WorldListObject read() throws IOException {
if (dis == null) {
throw new InvalidPersisterException();
}
try {
if (!readString().equals("PERSISTER Worlds, Inc.")) { // Persister Header
throw new InvalidPersisterException();
} else {
int pVersion = readInt(); // Persister Version
Console.print("Persister Version detected: " + pVersion, 1, ConsoleType.INFO);
if (pVersion != 7) Console.print("Version not supported! Issues may occur!", ConsoleType.WARNING);
int count = readInt(); // Vector Count
readInt(); // Class ID
return readVector(count);
}
} catch (NullPointerException e) {
throw new InvalidPersisterException();
}
}
private WorldListObject readVector(int count) throws IOException {
Console.print("Starting read of '" + file.getPath() + "'", 1, ConsoleType.INFO);
listObj = new WorldListObject();
oID = readInt(); // Object ID
String typeText = readString(); // Class Name
listObj.classType = WorldsType.valueOfClass(typeText);
if (listObj.classType != null) {
Console.print("ClassName read as '" + typeText + "'. Setting type to '" + WorldsType.valueOfClass(typeText) + "'.", 2, ConsoleType.DEBUG);
for (int i = 0; i < count; i++) {
if (i > 0) readInt();
readInt(); // Version
WorldList newData = null;
if (listObj.classType == WorldsType.AVATAR) newData = new AvatarObject(readString(), readString());
else if (listObj.classType == WorldsType.WORLDSMARK) newData = new MarkObject(readString(), readString());
assert newData != null;
listObj.add(newData);
Console.print("Created WorldList item: { name: '" + newData.getName() + "', value: '" + newData.getValue() + "' }", 2, ConsoleType.DEBUG);
Console.print("Added new WorldList item to WorldListObject", 1, ConsoleType.DEBUG);
}
assert readString().equals("END PERSISTER");
}
return listObj;
}
String readString() throws IOException {
if (readBoolean()) {
return null;
} else {
return dis.readUTF();
}
}
int readInt() throws IOException {
return dis.readInt();
}
byte readByte() throws IOException {
return dis.readByte();
}
boolean readBoolean() throws IOException {
return dis.readBoolean();
}
}

View File

@ -0,0 +1,86 @@
package org.worlio.WorldsOrganizer;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;
public class Saver {
DataOutputStream dis;
File file;
Saver(File file) throws IOException {
boolean doBackup = Main.configManager.getBooleanValue(ConfigEntry.fileBackup);
Console.print("Initialized Saver", 1, ConsoleType.INFO);
this.file = file;
File backupFile = new File(file.getAbsolutePath() + ".organizer-bkup");
try {
if (file.exists() && !doBackup) {
Console.print("File location already exists! Creating backup at " + backupFile.getAbsolutePath(), ConsoleType.WARNING);
Files.copy(Paths.get(file.getAbsolutePath()), Paths.get(backupFile.getAbsolutePath()), StandardCopyOption.REPLACE_EXISTING);
}
} catch (IOException e) {
Console.print("IOException occurred during file backup!", ConsoleType.ERROR);
Dialog.showError("Unable to create backup!", "Saving will try and continue but might corrupt your files if it fails.");
}
try {
FileOutputStream fis = new FileOutputStream(file);
dis = new DataOutputStream(fis);
} catch (IOException e) {
Console.print("Couldn't write to file!");
Dialog.showException(e);
}
writeString("PERSISTER Worlds, Inc."); // Persister header
writeInt(7); // Persister version
}
public void save(WorldListObject objects) throws IOException {
int count = objects.size();
writeInt(count);
writeInt(459);
int objID = 8782;
writeInt(objID);
writeString(objects.classType.name);
Console.print("Saving as '" + objects.classType.name + "'", 2, ConsoleType.DEBUG);
for (int i = 0; i < count; i++) {
if (i > 0) {
writeInt(460 + i);
writeInt(objID);
}
else writeInt(1);
writeString(objects.get(i).getName());
writeString(objects.get(i).getValue());
Console.print("Saved WorldList item to file: { name: '" + objects.get(i).getName() + "', value: '" + objects.get(i).getValue() + "' }", 2, ConsoleType.DEBUG);
}
writeString("END PERSISTER");
}
void writeString(String s) throws IOException {
if (!s.isEmpty()) {
writeBoolean(false);
dis.writeUTF(s);
} else {
writeBoolean(true);
}
}
void writeInt(int i) throws IOException {
dis.writeInt(i);
}
void writeByte(byte b) throws IOException {
dis.writeByte(b);
}
void writeBoolean(boolean b) throws IOException {
dis.writeBoolean(b);
}
}

View File

@ -0,0 +1,49 @@
package org.worlio.WorldsOrganizer;
public class Version implements Comparable<Version> {
private String version;
public final String get() {
return this.version;
}
public Version(String version) {
if (version != null) {
if (!version.matches("[0-9]+(\\.[0-9]+)*")) throw new IllegalArgumentException("Invalid version format");
version = version.replace("-dev", "");
} else throw new IllegalArgumentException("Version can not be null");
this.version = version;
}
@Override
public int compareTo(Version that) {
if(that == null) return 1;
String[] thisParts = this.get().split("\\.");
String[] thatParts = that.get().split("\\.");
int length = Math.max(thisParts.length, thatParts.length);
for(int i = 0; i < length; i++) {
int thisPart = i < thisParts.length ?
Integer.parseInt(thisParts[i]) : 0;
int thatPart = i < thatParts.length ?
Integer.parseInt(thatParts[i]) : 0;
if(thisPart < thatPart)
return -1;
if(thisPart > thatPart)
return 1;
}
return 0;
}
@Override
public boolean equals(Object that) {
if(this == that)
return true;
if(that == null)
return false;
if(this.getClass() != that.getClass())
return false;
return this.compareTo((Version) that) == 0;
}
}

View File

@ -0,0 +1,71 @@
package org.worlio.WorldsOrganizer;
import com.fasterxml.jackson.databind.json.JsonMapper;
import java.io.*;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
public class VersionManager {
String url;
public Version currentVersion = new Version(Console.getVersion());
public Version newVersion;
static JsonMapper mapper = new JsonMapper();
Map<?, ?> json;
int format;
private boolean isValid() {
return format == 2;
}
VersionManager() throws IOException {
json = readJsonFromUrl(Main.configManager.getStringValue(ConfigEntry.updateURL));
format = (int)json.get("format");
if (!isValid()) throw new IOException("Invalid JSON Update format: Format Version is not 2");
url = (String) json.get("url");
Map<?, ?> updates = (Map<?, ?>) json.get("versions");
LinkedHashMap<?, ?> ver = (LinkedHashMap<?, ?>) updates.get(Main.configManager.getStringValue(ConfigEntry.channel));
newVersion = new Version((String)ver.keySet().toArray()[0]);
}
public boolean hasUpdate() {
if (!isValid()) return false;
return newVersion.compareTo(currentVersion) >= 1;
}
public void pushUpdate() {
if (hasUpdate() && isValid()) {
Dialog.showUpdate(newVersion);
} else Console.print("No new updates available.");
}
public List<String> getChangelog(Version ver) {
if (!isValid()) return new ArrayList<>();
// God is horrified, and he has every right to be.
return (List<String>)((LinkedHashMap<?, ?>) ((Map<?,?>)json.get("versions")).get(Main.configManager.getStringValue(ConfigEntry.channel))).get(ver.get());
}
private static String readAll(Reader rd) throws IOException {
StringBuilder sb = new StringBuilder();
int cp;
while ((cp = rd.read()) != -1) {
sb.append((char) cp);
}
return sb.toString();
}
public static Map<?,?> readJsonFromUrl(String url) throws IOException {
try (InputStream is = new URL(url).openStream()) {
BufferedReader rd = new BufferedReader(new InputStreamReader(is, StandardCharsets.UTF_8));
String jsonText = readAll(rd);
return mapper.readValue(jsonText, Map.class);
}
}
}

View File

@ -0,0 +1,13 @@
package org.worlio.WorldsOrganizer;
public interface WorldList {
void setName(String name);
String getName();
void setValue(String value);
String getValue();
}

View File

@ -0,0 +1,159 @@
package org.worlio.WorldsOrganizer;
import java.util.*;
enum WorldsType {
NULL(""),
AVATAR("NET.worlds.console.SavedAvMenuItem"),
WORLDSMARK("NET.worlds.console.BookmarkMenuItem"),
LIBRARY("NET.worlds.scape.Library");
public final String name;
WorldsType(String name) {
this.name = name;
}
public static WorldsType valueOfClass(String name) {
for (WorldsType e : values()) {
if (e.name.equals(name)) {
return e;
}
}
return null;
}
}
public class WorldListObject implements Cloneable {
public WorldsType classType = null;
private List<WorldList> values = new ArrayList<>();
public WorldListObject clone() {
try {
return (WorldListObject) super.clone();
} catch (CloneNotSupportedException e) {
return null;
}
}
WorldListObject() {
}
public void determineClassType(String className) {
switch (className) {
default:
break;
case "NET.worlds.console.SavedAvMenuItem":
classType = WorldsType.AVATAR;
break;
case "NET.worlds.console.BookmarkMenuItem":
classType = WorldsType.WORLDSMARK;
break;
case "NET.worlds.scape.Library":
classType = WorldsType.LIBRARY;
break;
}
}
public List<WorldList> getValues() {
return values;
}
public void setValues(List<WorldList> values) {
this.values = values;
}
public int size() {
return values.size();
}
public boolean isEmpty() {
return values.isEmpty();
}
public boolean contains(WorldList o) {
return values.contains(o);
}
public Iterator iterator() {
return values.iterator();
}
public WorldList[] toArray() {
return values.toArray(new WorldList[0]);
}
public boolean add(WorldList o) {
return values.add(o);
}
public boolean remove(Object o) {
return values.remove(o);
}
public boolean addAll(Collection collection) {
return values.addAll(collection);
}
public boolean addAll(int i, Collection collection) {
return values.addAll(i, collection);
}
public void clear() {
values = new ArrayList<>();
}
public WorldList get(int i) {
return values.get(i);
}
public WorldList set(int i, WorldList o) {
return values.set(i, o);
}
public void add(int i, WorldList o) {
values.add(i, o);
}
public WorldList remove(int i) {
return values.remove(i);
}
public int indexOf(WorldList o) {
return values.indexOf(o);
}
public int lastIndexOf(WorldList o) {
return values.lastIndexOf(o);
}
public ListIterator listIterator() {
return values.listIterator();
}
public ListIterator listIterator(int i) {
return values.listIterator(i);
}
public List subList(int i, int i1) {
return values.subList(i, i1);
}
public boolean retainAll(Collection collection) {
return values.retainAll(collection);
}
public boolean removeAll(Collection collection) {
return values.removeAll(collection);
}
public boolean containsAll(Collection collection) {
return values.containsAll(collection);
}
public WorldList[] toArray(WorldList[] lists) {
return values.toArray(lists);
}
}

View File

@ -0,0 +1,53 @@
package org.worlio.WorldsOrganizer;
public class WorldTableItem implements WorldList {
private int index;
private String name;
private String value;
private String status;
WorldTableItem(int i, String n, String v) {
index = i;
name = n;
value = v;
}
WorldTableItem(int i, String n, String v, boolean s) {
index = i;
name = n;
value = v;
status = (s ? "PASS" : "FAIL");
}
public int getIndex() {
return index;
}
public void setIndex(int index) {
this.index = index;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
}

View File

@ -0,0 +1,9 @@
package org.worlio.WorldsOrganizer;
public class WorldsOrganizer {
public static void main(String[] args) {
Main.main(args);
}
}

View File

@ -0,0 +1,930 @@
package org.worlio.WorldsOrganizer;
import javafx.beans.property.ReadOnlyObjectWrapper;
import javafx.concurrent.Task;
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.geometry.Orientation;
import javafx.scene.control.*;
import javafx.scene.control.cell.PropertyValueFactory;
import javafx.scene.control.cell.TextFieldTableCell;
import javafx.scene.image.ImageView;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.*;
import javafx.scene.text.Font;
import javafx.scene.text.FontPosture;
import javafx.scene.text.FontWeight;
import javafx.scene.text.Text;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
public class WorldsTab {
File file;
private Tab tab = null;
Control content = null;
Pane mainPane;
private boolean showingFinder = false;
private boolean modified = false;
WorldListObject worldList = new WorldListObject();
private final CommandStack commandStack = new CommandStack();
public WorldsTab() {
}
public Tab getTab(File file) {
return getTab(WorldsType.NULL, file);
}
public Tab getTab(WorldsType type) {
return getTab(type, null);
}
public Tab getTab(WorldsType type, File file) {
if (tab != null) {
return tab;
} else {
Restorer restorer;
if (file != null) {
this.file = file;
try {
restorer = new Restorer(file);
worldList = restorer.read();
} catch (IOException e) {
return null;
}
} else {
assert type != null;
worldList.classType = type;
worldList.add(createItem(type));
}
Tab tab;
switch (worldList.classType) {
default:
tab = new Tab(); break;
case AVATAR: case WORLDSMARK:
tab = new Tab(generateTitle(), getWorldList()); break;
}
this.tab = tab;
update();
tab.setOnCloseRequest(event -> {
Console.print("Performing tab close", 1, ConsoleType.INFO);
event.consume();
quitTab();
});
return tab;
}
}
public Pane getWorldList() {
if (mainPane != null) {
return mainPane;
} else {
content = new TableView<WorldList>();
((TableView<?>)content).setEditable(true);
ToolBar toolBar = new ToolBar();
Console.print("Tab initialized", 1, ConsoleType.INFO);
Button addBtn = new Button();
addBtn.setTooltip(new Tooltip("Add Value"));
addBtn.setGraphic(new ImageView(AppIcon.add));
toolBar.getItems().add(addBtn);
addBtn.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> {
int tabIndex = Main.tabs.indexOf(this);
if (tabIndex >= 0) {
this.addItem();
this.setFocus(((TableView<?>)content).getItems().size() - 1);
Main.tabs.set(tabIndex, this);
}
});
Button delBtn = new Button();
delBtn.setTooltip(new Tooltip("Delete Value"));
delBtn.setGraphic(new ImageView(AppIcon.remove));
toolBar.getItems().add(delBtn);
delBtn.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> {
int tabIndex = Main.tabs.indexOf(this);
if (tabIndex >= 0) {
int index = ((TableView<?>)content).getSelectionModel().getFocusedIndex();
this.deleteItem(index);
this.setFocus(index < ((TableView<?>)content).getItems().size() ? index : index - 1);
Main.tabs.set(tabIndex, this);
}
});
Button mupBtn = new Button();
mupBtn.setTooltip(new Tooltip("Move Value Up"));
mupBtn.setGraphic(new ImageView(AppIcon.moveUp));
toolBar.getItems().add(mupBtn);
mupBtn.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> {
int tabIndex = Main.tabs.indexOf(this);
if (tabIndex >= 0) {
int index = ((TableView<?>)content).getSelectionModel().getFocusedIndex();
this.moveValue(index, -1);
this.setFocus(index - 1);
Main.tabs.set(tabIndex, this);
}
});
Button mdwBtn = new Button();
mdwBtn.setTooltip(new Tooltip("Move Value Down"));
mdwBtn.setGraphic(new ImageView(AppIcon.moveDown));
toolBar.getItems().add(mdwBtn);
mdwBtn.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> {
int tabIndex = Main.tabs.indexOf(this);
if (tabIndex >= 0) {
int index = ((TableView<?>)content).getSelectionModel().getFocusedIndex();
this.moveValue(index, 1);
this.setFocus(index + 1);
Main.tabs.set(tabIndex, this);
}
});
toolBar.getItems().add(new Separator());
Button findBtn = new Button();
findBtn.setTooltip(new Tooltip("Find/Replace"));
findBtn.setGraphic(new ImageView(AppIcon.findReplace));
toolBar.getItems().add(findBtn);
VBox findingBox = getFindPane();
VBox.setVgrow(findingBox, Priority.ALWAYS);
findingBox.setVisible(false);
findingBox.setManaged(false);
findBtn.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> {
Console.print("Toggled Find/Replace pane", 1, ConsoleType.INFO);
findingBox.setManaged(!showingFinder);
findingBox.setVisible(!showingFinder);
showingFinder = !showingFinder;
});
Button checkBtn = new Button();
checkBtn.setTooltip(new Tooltip("Link Checker"));
checkBtn.setGraphic(new ImageView(AppIcon.linkCheck));
toolBar.getItems().add(checkBtn);
checkBtn.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> {
Console.print("Beginning Link Checker", 1, ConsoleType.INFO);
Alert alert = new Alert(Alert.AlertType.INFORMATION);
alert.getDialogPane().setMinWidth(600);
alert.setResizable(true);
alert.setTitle("Link Checker");
alert.setHeaderText("Checking Links...");
alert.initOwner(Main.mainStage);
TableView<WorldTableItem> checkTable = new TableView<>();
checkTable.setEditable(false);
checkTable.setMaxWidth(Double.MAX_VALUE);
checkTable.setMaxHeight(Double.MAX_VALUE);
GridPane.setVgrow(checkTable, Priority.ALWAYS);
GridPane.setHgrow(checkTable, Priority.ALWAYS);
TableColumn<WorldTableItem, Integer> checkIndexColumn = new TableColumn<>("#");
checkIndexColumn.prefWidthProperty().bind(content.widthProperty().multiply(0.05));
checkIndexColumn.setCellValueFactory(new PropertyValueFactory<>("index"));
TableColumn<WorldTableItem, String> checkLabelColumn = new TableColumn<>("Label");
checkLabelColumn.prefWidthProperty().bind(content.widthProperty().multiply(0.4));
checkLabelColumn.setCellValueFactory(new PropertyValueFactory<>("name"));
TableColumn<WorldTableItem, String> checkValueColumn = new TableColumn<>("Value");
checkValueColumn.prefWidthProperty().bind(content.widthProperty().multiply(0.4));
checkValueColumn.setCellValueFactory(new PropertyValueFactory<>("value"));
TableColumn<WorldTableItem, String> checkStatusColumn = new TableColumn<>("Status");
checkStatusColumn.prefWidthProperty().bind(content.widthProperty().multiply(0.1));
checkStatusColumn.setCellValueFactory(new PropertyValueFactory<>("status"));
checkTable.getColumns().addAll(checkIndexColumn, checkLabelColumn, checkValueColumn, checkStatusColumn);
alert.getDialogPane().setContent(checkTable);
alert.initOwner(Main.mainStage.getOwner());
List<WorldTableItem> errorItems = new ArrayList<>();
AtomicBoolean haltThread = new AtomicBoolean(false);
Task<Boolean> task = new Task<Boolean>() {
@Override public Boolean call() {
for (int w = 0; w < ((TableView<?>)content).getItems().size(); w++) {
if (haltThread.get()) return true;
WorldList wl = (WorldList)((TableView<?>)content).getItems().get(w);
String value = wl.getValue();
int index = ((TableView<?>)content).getItems().indexOf(wl);
WorldTableItem tabItem;
if (value.startsWith("http")) {
Console.print("Trying '" + value + "'", 1, ConsoleType.INFO);
try {
if (!Console.testURL(value)) {
Console.print("URL '" + value + "' failed!", 1, ConsoleType.ERROR);
tabItem = new WorldTableItem(index, wl.getName(), value, false);
errorItems.add(tabItem);
} else {
Console.print("URL '" + value + "' passed!", 1, ConsoleType.SUCCESS);
tabItem = new WorldTableItem(index, wl.getName(), value, true);
}
checkTable.getItems().add(0, tabItem);
} catch (IOException ioException) {
Console.print("IOException encountered while checking URLs for Link Checker.", ConsoleType.ERROR);
ioException.printStackTrace();
Dialog.showException(ioException);
return false;
}
}
checkTable.refresh();
}
return true;
}
};
task.setOnRunning((a) -> alert.show());
task.setOnSucceeded((a) -> {
alert.close();
showLinkResults(errorItems);
});
task.setOnFailed((a) -> {
Console.print("Link Checking failed for unknown reasons.", ConsoleType.ERROR);
Dialog.showException(new Exception("Unknown"));
alert.close();
});
Thread taskTh = new Thread(task);
taskTh.start();
alert.setOnCloseRequest((a) -> {
Console.print("Closing Link Check", 1, ConsoleType.INFO);
haltThread.set(true);
alert.close();
});
});
TableColumn<WorldList, String> indexColumn = new TableColumn<>("#");
indexColumn.prefWidthProperty().bind(content.widthProperty().multiply(0.05));
indexColumn.setCellValueFactory(p -> new ReadOnlyObjectWrapper(((TableView<?>)content).getItems().indexOf(p.getValue())));
indexColumn.setSortable(false);
indexColumn.setEditable(false);
TableColumn<WorldList, String> labelColumn = new TableColumn<>("Label");
labelColumn.prefWidthProperty().bind(content.widthProperty().multiply(0.4));
labelColumn.setCellValueFactory(new PropertyValueFactory<>("name"));
labelColumn.setCellFactory(TextFieldTableCell.forTableColumn());
labelColumn.setSortable(false);
labelColumn.setOnEditCommit(t -> {
commandStack.doCommand(new Command() {
final String oldValue = t.getOldValue();
final String newValue = t.getNewValue();
WorldList item = t.getTableView().getItems().get(t.getTablePosition().getRow());
@Override
public void execute() {
Console.print("Editing Label: '" + oldValue + "' -> '" + newValue + "'", 1, ConsoleType.DEBUG);
t.getTableView().getItems().get(t.getTablePosition().getRow()).setName(newValue);
((TableView<?>) content).refresh();
setSaved(false);
}
@Override
public void undo() {
Console.print("Undoing Label: '" + oldValue + "' <- '" + newValue + "'", 1, ConsoleType.DEBUG);
item.setName(oldValue);
((TableView<?>)content).refresh();
setSaved(false);
}
});
});
TableColumn<WorldList, String> valueColumn = new TableColumn<>("Value");
valueColumn.prefWidthProperty().bind(content.widthProperty().multiply(0.525));
valueColumn.setCellValueFactory(new PropertyValueFactory<>("value"));
valueColumn.setCellFactory(TextFieldTableCell.forTableColumn());
valueColumn.setSortable(false);
valueColumn.setOnEditCommit(t -> {
commandStack.doCommand(new Command() {
final String oldValue = t.getOldValue();
final String newValue = t.getNewValue();
WorldList item = t.getTableView().getItems().get(t.getTablePosition().getRow());
@Override
public void execute() {
Console.print("Editing Value: '" + oldValue + "' -> '" + newValue + "'", 1, ConsoleType.DEBUG);
t.getTableView().getItems().get(t.getTablePosition().getRow()).setValue(newValue);
((TableView<?>) content).refresh();
setSaved(false);
}
@Override
public void undo() {
Console.print("Undoing Value: '" + oldValue + "' <- '" + newValue + "'", 1, ConsoleType.DEBUG);
item.setValue(oldValue);
((TableView<?>)content).refresh();
setSaved(false);
}
});
});
for (WorldList list : worldList.getValues()) {
((TableView<WorldList>)content).getItems().add(list);
}
Console.print("List values added.", 1, ConsoleType.INFO);
((TableView<WorldList>)content).getColumns().addAll(indexColumn, labelColumn, valueColumn);
VBox.setVgrow(content, Priority.ALWAYS);
HBox.setHgrow(toolBar, Priority.ALWAYS);
VBox.setVgrow(toolBar, Priority.ALWAYS);
VBox endV = new VBox(content, findingBox);
HBox.setHgrow(endV, Priority.ALWAYS);
VBox.setVgrow(endV, Priority.ALWAYS);
switch (Main.configManager.getIntValue(ConfigEntry.toolbarPos)) {
case 0:
toolBar.setOrientation(Orientation.HORIZONTAL);
return new VBox(toolBar, endV);
case 1:
toolBar.setOrientation(Orientation.VERTICAL);
return new HBox(endV, toolBar);
case 2:
toolBar.setOrientation(Orientation.HORIZONTAL);
return new VBox(endV, toolBar);
default:
case 3:
toolBar.setOrientation(Orientation.VERTICAL);
return new HBox(toolBar, endV);
}
}
}
public void addItem() {
assert content instanceof TableView;
commandStack.doCommand(new Command() {
WorldList newData;
@Override
public void execute() {
Console.print("Adding new item", 1, ConsoleType.DEBUG);
newData = createItem(worldList.classType);
worldList.add(newData);
((TableView)content).getItems().add(newData);
setSaved(false);
}
@Override
public void undo() {
Console.print("Undoing new item", 1, ConsoleType.DEBUG);
worldList.remove(newData);
((TableView)content).getItems().remove(newData);
setSaved(false);
}
});
}
public void deleteItem(int i) {
assert content instanceof TableView;
if (i >= 0 && ((TableView<?>)content).getItems().size() > i) {
commandStack.doCommand(new Command() {
WorldList item = (WorldList) ((TableView<?>) content).getItems().get(i);
int index = i;
@Override
public void execute() {
Console.print("Deleting Item", 1, ConsoleType.DEBUG);
worldList.remove(i);
((TableView) content).getItems().remove(i);
setSaved(false);
}
@Override
public void undo() {
Console.print("Undoing Delete", 1, ConsoleType.DEBUG);
worldList.add(index, item);
((TableView) content).getItems().add(index, item);
setSaved(false);
}
});
} else Console.print("Unable to delete item: No item selected!", ConsoleType.WARNING);
}
public void moveValue(int i, int moveBy) {
assert content instanceof TableView;
if (i >= 0 && i + moveBy >= 0 && ((TableView<?>)content).getItems().size() > i && ((TableView<?>)content).getItems().size() > i + moveBy) {
commandStack.doCommand(new Command() {
final WorldList item = (WorldList) ((TableView) content).getItems().get(i);
final WorldList rItem = (WorldList) ((TableView) content).getItems().get(i + moveBy);
final int index = i;
final int moved = moveBy;
@Override
public void execute() {
Console.print("Moving index " + index + " by " + moveBy, 1, ConsoleType.DEBUG);
doMove(i, rItem);
doMove(i + moveBy, item);
setSaved(false);
}
@Override
public void undo() {
Console.print("Undoing move of index " + index + " by " + moveBy, 1, ConsoleType.DEBUG);
doMove(index + moved, rItem);
doMove(index, item);
setSaved(false);
}
private void doMove(int i, WorldList o) {
((TableView) content).getItems().set(i, o);
worldList.set(i, o);
}
});
} else Console.print("Cannot move item.", ConsoleType.WARNING);
}
public void setFocus(int i) {
Console.print("Forced Focus on index " + i, 1, ConsoleType.DEBUG);
((TableView)content).getSelectionModel().select(i);
((TableView)content).scrollTo(i);
}
private void quitTab() {
if (!getSaved()) {
Console.print("Displaying Quit alert", 1, ConsoleType.DEBUG);
Alert alert = new Alert(Alert.AlertType.CONFIRMATION);
alert.setTitle("Close Tab");
alert.setHeaderText("Are you sure you want to close this tab?");
alert.setContentText("You have unsaved changes. Closing now will lose your progress.");
alert.initOwner(Main.mainStage);
ButtonType dontSaveButton = new ButtonType("Discard Changes");
ButtonType buttonTypeCancel = new ButtonType("Cancel", ButtonBar.ButtonData.CANCEL_CLOSE);
alert.getButtonTypes().setAll(dontSaveButton, buttonTypeCancel);
alert.getDialogPane().setMinSize(200,200);
Optional<ButtonType> result = alert.showAndWait();
if (result.get() == dontSaveButton) {
closeTab();
} else {
alert.close();
Main.setStatusText("Tab Alert Closed");
}
} else {
closeTab();
}
}
private void closeTab() {
Main.setStatusText("Closing Tab");
int index = tab.getTabPane().getSelectionModel().getSelectedIndex() - 1;
Main.tabs.remove(index);
EventHandler<Event> handler = tab.getOnClosed();
if (null != handler) {
handler.handle(null);
} else {
tab.getTabPane().getTabs().remove(tab);
}
Console.print("Tab closed", 1, ConsoleType.DEBUG);
}
private void setIcon(WorldsType type) {
switch (type) {
default:
tab.setGraphic(new ImageView(AppIcon.unknownFile));
break;
case AVATAR:
tab.setGraphic(new ImageView(AppIcon.avatarFile));
break;
case WORLDSMARK:
tab.setGraphic(new ImageView(AppIcon.markFile));
break;
}
}
public void update() {
Console.print("Performing tooltip and title update", 1, ConsoleType.DEBUG);
if (file != null) tab.setTooltip(new Tooltip(file.getAbsolutePath()));
else tab.setTooltip(new Tooltip(worldList.classType.name));
tab.setText(generateTitle());
setIcon(worldList.classType);
}
public void update(File newFile) {
this.file = newFile;
update();
}
private String generateTitle() {
if (file != null) {
return file.getName();
} else {
switch (worldList.classType) {
default:
return "Untitled";
case AVATAR:
return "Untitled.avatars";
case WORLDSMARK:
return "Untitled.worldsmarks";
}
}
}
public void setSaved(boolean value) {
if (!value) {
modified = true;
tab.setGraphic(new ImageView(AppIcon.saveFile));
} else{
update();
modified = false;
}
}
public boolean getSaved() {
return !modified;
}
public WorldList createItem(WorldsType type) {
switch (type) {
default:
return null;
case AVATAR:
return new AvatarObject("New Avatar", "avatar:holden.mov");
case WORLDSMARK:
return new MarkObject("New Mark", "home:GroundZero/groundzero.world");
}
}
public void doUndo() {
if (commandStack.canUndo()) {
commandStack.undo();
Main.setStatusText("Undid last operation.");
} else {
Console.print("Nothing to undo.");
Main.setStatusText("Nothing to undo.");
}
}
public void doRedo() {
if (commandStack.canRedo()) {
commandStack.redo();
Main.setStatusText("Redid last operation.");
} else {
Console.print("Nothing to redo.");
Main.setStatusText("Nothing to redo.");
}
}
public void showLinkResults(List<WorldTableItem> list) {
Console.print("Displaying Link Checker results", 1, ConsoleType.INFO);
AtomicInteger addition = new AtomicInteger();
addition.set(0);
Alert alert = new Alert(Alert.AlertType.INFORMATION);
alert.getDialogPane().setMinWidth(800);
alert.setResizable(true);
alert.setTitle("Link Checker Results");
alert.setHeaderText("The followings links have been found to be dead: " + list.size() + " out of " + worldList.size());
alert.initOwner(Main.mainStage);
Button deleteBtn = new Button();
deleteBtn.setTooltip(new Tooltip("Delete"));
deleteBtn.setGraphic(new ImageView(AppIcon.remove));
Button deleteAllBtn = new Button("Delete All");
deleteAllBtn.setTooltip(new Tooltip("Delete All"));
deleteAllBtn.setGraphic(new ImageView(AppIcon.removeAll));
TableView<WorldTableItem> errorTable = new TableView<>();
errorTable.setEditable(true);
errorTable.setMaxWidth(Double.MAX_VALUE);
errorTable.setMaxHeight(Double.MAX_VALUE);
GridPane.setVgrow(errorTable, Priority.ALWAYS);
GridPane.setHgrow(errorTable, Priority.ALWAYS);
TableColumn<WorldTableItem, Integer> indexColumn = new TableColumn<>("#");
indexColumn.prefWidthProperty().bind(errorTable.widthProperty().multiply(0.05));
indexColumn.setCellValueFactory(new PropertyValueFactory<>("index"));
indexColumn.setEditable(false);
TableColumn<WorldTableItem, String> labelColumn = new TableColumn<>("Label");
labelColumn.prefWidthProperty().bind(errorTable.widthProperty().multiply(0.4));
labelColumn.setCellValueFactory(new PropertyValueFactory<>("name"));
labelColumn.setCellFactory(TextFieldTableCell.<WorldTableItem>forTableColumn());
labelColumn.setEditable(true);
labelColumn.setOnEditCommit(t -> {
commandStack.doCommand(
new Command() {
String oldValue = t.getOldValue();
String newValue = t.getNewValue();
WorldList item = t.getTableView().getItems().get(t.getTablePosition().getRow());
WorldList tableItem = ((WorldList) ((TableView) content).getItems().get(t.getRowValue().getIndex() + addition.get()));
@Override
public void execute() {
item.setName(newValue);
tableItem.setName(newValue);
((TableView) content).refresh();
setSaved(false);
}
@Override
public void undo() {
item.setName(oldValue);
tableItem.setName(oldValue);
((TableView) content).refresh();
setSaved(false);
}
});
});
TableColumn<WorldTableItem, String> valueColumn = new TableColumn<>("Value");
valueColumn.prefWidthProperty().bind(errorTable.widthProperty().multiply(0.525));
valueColumn.setCellValueFactory(new PropertyValueFactory<>("value"));
valueColumn.setCellFactory(TextFieldTableCell.<WorldTableItem>forTableColumn());
valueColumn.setEditable(true);
valueColumn.setOnEditCommit(t -> {
commandStack.doCommand(
new Command() {
String oldValue = t.getOldValue();
String newValue = t.getNewValue();
WorldList item = t.getTableView().getItems().get(t.getTablePosition().getRow());
WorldList tableItem = ((WorldList) ((TableView) content).getItems().get(t.getRowValue().getIndex() + addition.get()));
@Override
public void execute() {
item.setValue(newValue);
tableItem.setValue(newValue);
((TableView) content).refresh();
setSaved(false);
}
@Override
public void undo() {
item.setValue(oldValue);
tableItem.setValue(oldValue);
((TableView) content).refresh();
setSaved(false);
}
});
});
for (WorldTableItem item : list) {
errorTable.getItems().add(item);
}
ToolBar btnBar = new ToolBar();
btnBar.getItems().addAll(deleteBtn, deleteAllBtn);
errorTable.getColumns().addAll(indexColumn, labelColumn, valueColumn);
VBox vBox = new VBox(errorTable, btnBar);
alert.getDialogPane().setContent(vBox);
deleteBtn.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> { commandStack.doCommand(
new Command() {
int selected = errorTable.getSelectionModel().getSelectedIndex();
int tableSel = errorTable.getItems().get(selected).getIndex();
WorldTableItem item = errorTable.getItems().get(selected);
int added = tableSel + addition.get();
@Override
public void execute() {
worldList.remove(tableSel + addition.get());
((TableView)content).getItems().remove(tableSel + addition.get());
errorTable.getItems().remove(selected);
list.remove(selected);
addition.getAndDecrement();
setSaved(false);
}
@Override
public void undo() {
worldList.add(added, item);
((TableView)content).getItems().add(added, item);
errorTable.getItems().add(selected, item);
list.add(selected, item);
addition.getAndIncrement();
setSaved(false);
}
});
});
deleteAllBtn.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> {
Alert askSure = new Alert(Alert.AlertType.CONFIRMATION);
askSure.setTitle("Delete All?");
askSure.setHeaderText("Are you sure you want to delete all the items in this list?");
askSure.setContentText("You won't be able to undo this change!");
ButtonType delSureButton = new ButtonType("Discard Changes");
ButtonType buttonTypeCancel = new ButtonType("Cancel", ButtonBar.ButtonData.CANCEL_CLOSE);
askSure.getButtonTypes().setAll(delSureButton, buttonTypeCancel);
askSure.getDialogPane().setMinSize(200,200);
Optional<ButtonType> result = askSure.showAndWait();
if (result.get() == delSureButton) {
for (WorldTableItem item : list) {
errorTable.getItems().remove(0);
worldList.remove(item.getIndex() + addition.get());
((TableView) content).getItems().remove(item.getIndex() + addition.get());
addition.getAndDecrement();
}
setSaved(false);
} else {
askSure.close();
}
});
alert.showAndWait();
}
private VBox getFindPane() {
Console.print("Initializing FindPane", 1, ConsoleType.INFO);
Text findText = new Text("Find Text");
findText.setFont(Font.font("Verdana", FontWeight.NORMAL, FontPosture.REGULAR, 12));
TextField findInput = new TextField();
Text replText = new Text("Replace Text");
replText.setFont(Font.font("Verdana", FontWeight.NORMAL, FontPosture.REGULAR, 12));
TextField replInput = new TextField();
Slider selSlider = new Slider(-1,1,0);
selSlider.setMajorTickUnit(1);
selSlider.setMinorTickCount(0);
selSlider.setSnapToTicks(true);
Text labelTxt = new Text("Label");
Text valueTxt = new Text("Value");
HBox.setHgrow(selSlider, Priority.ALWAYS);
HBox.setHgrow(labelTxt, Priority.ALWAYS);
HBox.setHgrow(valueTxt, Priority.ALWAYS);
GridPane findBar = new GridPane();
Button findButton = new Button("Find");
findButton.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> {
Console.print("Performing find", 1, ConsoleType.INFO);
int curI = ((TableView)content).getSelectionModel().getSelectedIndex();
if (curI < 0) curI = 0;
Main.setStatusText("Searching...");
for (int a = curI+1; a < worldList.size(); a++) {
if (worldList.get(a).getName().contains(findInput.getCharacters()) || worldList.get(a).getValue().contains(findInput.getCharacters())) {
setFocus(a);
break;
}
}
});
Button replButton = new Button("Replace");
replButton.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> {
commandStack.doCommand(new Command() {
WorldList replaced;
final int index = ((TableView<WorldList>)content).getSelectionModel().getSelectedIndex();
final double slider = selSlider.getValue();
@Override
public void execute() {
Console.print("Performing replace", 1, ConsoleType.INFO);
WorldList item = ((TableView<WorldList>)content).getSelectionModel().getSelectedItem();
if (item.getName().contains(findInput.getCharacters()) || item.getValue().contains(findInput.getCharacters())) {
WorldTableItem tableItem = new WorldTableItem(((TableView) content).getItems().indexOf(item), item.getName(), item.getValue());
if (selSlider.getValue() >= 0)
item.setValue(item.getValue().replace(findInput.getCharacters(), replInput.getCharacters()));
if (selSlider.getValue() <= 0)
item.setName(item.getName().replace(findInput.getCharacters(), replInput.getCharacters()));
Main.setStatusText("Replaced item");
replaced = tableItem;
}
((TableView) content).refresh();
setSaved(false);
}
@Override
public void undo() {
WorldList item = (WorldList)((TableView) content).getItems().get(index);
if (slider >= 0) item.setValue(replaced.getValue());
if (slider <= 0) item.setName(replaced.getName());
((TableView) content).refresh();
setSaved(false);
}
});
});
Button replAllButton = new Button("Replace All");
replAllButton.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> {
commandStack.doCommand(new Command() {
final List<WorldTableItem> replaced = new ArrayList<>();
final double slider = selSlider.getValue();
@Override
public void execute() {
Console.print("Performing replace all", 1, ConsoleType.INFO);
int count = 0;
for (WorldList item : worldList.getValues()) {
if (item.getName().contains(findInput.getCharacters()) || item.getValue().contains(findInput.getCharacters())) {
count++;
WorldTableItem tableItem = new WorldTableItem(((TableView)content).getItems().indexOf(item), item.getName(), item.getValue());
if (selSlider.getValue() >= 0) item.setValue(item.getValue().replace(findInput.getCharacters(), replInput.getCharacters()));
if (selSlider.getValue() <= 0) item.setName(item.getName().replace(findInput.getCharacters(), replInput.getCharacters()));
replaced.add(tableItem);
}
}
Main.setStatusText("Replaced " + count + " items.");
((TableView)content).refresh();
setSaved(false);
}
@Override
public void undo() {
for (WorldTableItem tableItem : replaced) {
WorldList item = (WorldList)((TableView)content).getItems().get(tableItem.getIndex());
if (slider >= 0) item.setValue(tableItem.getValue());
if (slider <= 0) item.setName(tableItem.getName());
}
((TableView) content).refresh();
setSaved(false);
}
});
});
ButtonBar btns = new ButtonBar();
btns.getButtons().addAll(findButton, replButton, replAllButton);
GridPane.setColumnSpan(btns, 2);
findBar.add(findText, 0, 0);
findBar.add(findInput, 1, 0);
findBar.add(replText, 0, 1);
findBar.add(replInput, 1, 1);
findBar.add(new HBox(labelTxt, selSlider, valueTxt), 0, 2);
findBar.add(btns, 1, 2);
GridPane.setHgrow(findInput, Priority.ALWAYS);
GridPane.setHgrow(replInput, Priority.ALWAYS);
GridPane.setHgrow(btns, Priority.ALWAYS);
findBar.setHgap(5);
findBar.setVgap(5);
findBar.setPadding(new Insets(10, 10, 10, 10));
VBox.setVgrow(findBar, Priority.ALWAYS);
Console.print("Completed FindPane", 1, ConsoleType.INFO);
return new VBox(findBar);
}
}

View File

@ -0,0 +1,8 @@
.root {
-fx-base: rgba(25, 25, 25, 255);
}
.table-view {
-fx-base: rgba(25,25,25,255);
text-color: rgba(200,200,200,255);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 896 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
src/main/resources/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -0,0 +1,3 @@
version=${project.version}
artifactId=${project.artifactId}
buildDate=${buildNumber}

2
worldsorganizer.iml Normal file
View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4" />