diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs index 15cf1bb..91570ed 100644 --- a/.settings/org.eclipse.jdt.core.prefs +++ b/.settings/org.eclipse.jdt.core.prefs @@ -7,5 +7,6 @@ org.eclipse.jdt.core.compiler.debug.lineNumber=generate org.eclipse.jdt.core.compiler.debug.localVariable=generate org.eclipse.jdt.core.compiler.debug.sourceFile=generate org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled org.eclipse.jdt.core.compiler.problem.enumIdentifier=error org.eclipse.jdt.core.compiler.source=11 diff --git a/LICENSE b/LICENSE index 584cf21..1b0697b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,16 +1,233 @@ -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +Eclipse Public License - v 1.0 + +THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE +PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF +THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. + +1. DEFINITIONS + +"Contribution" means: + + a) in the case of the initial Contributor, the initial code and + documentation distributed under this Agreement, and + + b) in the case of each subsequent Contributor: + + i) changes to the Program, and + + ii) additions to the Program; + + where such changes and/or additions to the Program originate from + and are distributed by that particular Contributor. A Contribution + 'originates' from a Contributor if it was added to the Program by + such Contributor itself or anyone acting on such Contributor's + behalf. Contributions do not include additions to the Program + which: (i) are separate modules of software distributed in + conjunction with the Program under their own license agreement, + and (ii) are not derivative works of the Program. + +"Contributor" means any person or entity that distributes the Program. + +"Licensed Patents" mean patent claims licensable by a Contributor +which are necessarily infringed by the use or sale of its Contribution +alone or when combined with the Program. + +"Program" means the Contributions distributed in accordance with this +Agreement. + +"Recipient" means anyone who receives the Program under this +Agreement, including all Contributors. + +2. GRANT OF RIGHTS + + a) Subject to the terms of this Agreement, each Contributor hereby + grants Recipient a non-exclusive, worldwide, royalty-free + copyright license to reproduce, prepare derivative works of, + publicly display, publicly perform, distribute and sublicense the + Contribution of such Contributor, if any, and such derivative + works, in source code and object code form. + + b) Subject to the terms of this Agreement, each Contributor hereby + grants Recipient a non-exclusive, worldwide, royalty-free patent + license under Licensed Patents to make, use, sell, offer to sell, + import and otherwise transfer the Contribution of such + Contributor, if any, in source code and object code form. This + patent license shall apply to the combination of the Contribution + and the Program if, at the time the Contribution is added by the + Contributor, such addition of the Contribution causes such + combination to be covered by the Licensed Patents. The patent + license shall not apply to any other combinations which include + the Contribution. No hardware per se is licensed hereunder. + + c) Recipient understands that although each Contributor grants the + licenses to its Contributions set forth herein, no assurances are + provided by any Contributor that the Program does not infringe the + patent or other intellectual property rights of any other + entity. Each Contributor disclaims any liability to Recipient for + claims brought by any other entity based on infringement of + intellectual property rights or otherwise. As a condition to + exercising the rights and licenses granted hereunder, each + Recipient hereby assumes sole responsibility to secure any other + intellectual property rights needed, if any. For example, if a + third party patent license is required to allow Recipient to + distribute the Program, it is Recipient's responsibility to + acquire that license before distributing the Program. + + d) Each Contributor represents that to its knowledge it has + sufficient copyright rights in its Contribution, if any, to grant + the copyright license set forth in this Agreement. + +3. REQUIREMENTS + +A Contributor may choose to distribute the Program in object code form +under its own license agreement, provided that: + + a) it complies with the terms and conditions of this Agreement; + and + + b) its license agreement: + + i) effectively disclaims on behalf of all Contributors all + warranties and conditions, express and implied, including + warranties or conditions of title and non-infringement, and + implied warranties or conditions of merchantability and fitness + for a particular purpose; + + ii) effectively excludes on behalf of all Contributors all + liability for damages, including direct, indirect, special, + incidental and consequential damages, such as lost profits; + + iii) states that any provisions which differ from this Agreement + are offered by that Contributor alone and not by any other party; + and + + iv) states that source code for the Program is available from such + Contributor, and informs licensees how to obtain it in a + reasonable manner on or through a medium customarily used for + software exchange. + +When the Program is made available in source code form: + + a) it must be made available under this Agreement; and + + b) a copy of this Agreement must be included with each copy of the + Program. + +Contributors may not remove or alter any copyright notices contained +within the Program. + +Each Contributor must identify itself as the originator of its +Contribution, if any, in a manner that reasonably allows subsequent +Recipients to identify the originator of the Contribution. + +4. COMMERCIAL DISTRIBUTION + +Commercial distributors of software may accept certain +responsibilities with respect to end users, business partners and the +like. While this license is intended to facilitate the commercial use +of the Program, the Contributor who includes the Program in a +commercial product offering should do so in a manner which does not +create potential liability for other Contributors. Therefore, if a +Contributor includes the Program in a commercial product offering, +such Contributor ("Commercial Contributor") hereby agrees to defend +and indemnify every other Contributor ("Indemnified Contributor") +against any losses, damages and costs (collectively "Losses") arising +from claims, lawsuits and other legal actions brought by a third party +against the Indemnified Contributor to the extent caused by the acts +or omissions of such Commercial Contributor in connection with its +distribution of the Program in a commercial product offering. The +obligations in this section do not apply to any claims or Losses +relating to any actual or alleged intellectual property +infringement. In order to qualify, an Indemnified Contributor must: a) +promptly notify the Commercial Contributor in writing of such claim, +and b) allow the Commercial Contributor to control, and cooperate with +the Commercial Contributor in, the defense and any related settlement +negotiations. The Indemnified Contributor may participate in any such +claim at its own expense. + +For example, a Contributor might include the Program in a commercial +product offering, Product X. That Contributor is then a Commercial +Contributor. If that Commercial Contributor then makes performance +claims, or offers warranties related to Product X, those performance +claims and warranties are such Commercial Contributor's responsibility +alone. Under this section, the Commercial Contributor would have to +defend claims against the other Contributors related to those +performance claims and warranties, and if a court requires any other +Contributor to pay any damages as a result, the Commercial Contributor +must pay those damages. + +5. NO WARRANTY + +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS +PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY +WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY +OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely +responsible for determining the appropriateness of using and +distributing the Program and assumes all risks associated with its +exercise of rights under this Agreement , including but not limited to +the risks and costs of program errors, compliance with applicable +laws, damage to or loss of data, programs or equipment, and +unavailability or interruption of operations. + +6. DISCLAIMER OF LIABILITY + +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR +ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING +WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR +DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED +HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +7. GENERAL + +If any provision of this Agreement is invalid or unenforceable under +applicable law, it shall not affect the validity or enforceability of +the remainder of the terms of this Agreement, and without further +action by the parties hereto, such provision shall be reformed to the +minimum extent necessary to make such provision valid and enforceable. + +If Recipient institutes patent litigation against any entity +(including a cross-claim or counterclaim in a lawsuit) alleging that +the Program itself (excluding combinations of the Program with other +software or hardware) infringes such Recipient's patent(s), then such +Recipient's rights granted under Section 2(b) shall terminate as of +the date such litigation is filed. + +All Recipient's rights under this Agreement shall terminate if it +fails to comply with any of the material terms or conditions of this +Agreement and does not cure such failure in a reasonable period of +time after becoming aware of such noncompliance. If all Recipient's +rights under this Agreement terminate, Recipient agrees to cease use +and distribution of the Program as soon as reasonably +practicable. However, Recipient's obligations under this Agreement and +any licenses granted by Recipient relating to the Program shall +continue and survive. + +Everyone is permitted to copy and distribute copies of this Agreement, +but in order to avoid inconsistency the Agreement is copyrighted and +may only be modified in the following manner. The Agreement Steward +reserves the right to publish new versions (including revisions) of +this Agreement from time to time. No one other than the Agreement +Steward has the right to modify this Agreement. The Eclipse Foundation +is the initial Agreement Steward. The Eclipse Foundation may assign +the responsibility to serve as the Agreement Steward to a suitable +separate entity. Each new version of the Agreement will be given a +distinguishing version number. The Program (including Contributions) +may always be distributed subject to the version of the Agreement +under which it was received. In addition, after a new version of the +Agreement is published, Contributor may elect to distribute the +Program (including its Contributions) under the new version. Except as +expressly stated in Sections 2(a) and 2(b) above, Recipient receives +no rights or licenses to the intellectual property of any Contributor +under this Agreement, whether expressly, by implication, estoppel or +otherwise. All rights in the Program not expressly granted under this +Agreement are reserved. + +This Agreement is governed by the laws of the State of New York and +the intellectual property laws of the United States of America. No +party to this Agreement will bring a legal action under this Agreement +more than one year after the cause of action arose. Each party waives +its rights to a jury trial in any resulting litigation. \ No newline at end of file diff --git a/css/dark.css b/css/dark.css index f646c8d..7600f51 100644 --- a/css/dark.css +++ b/css/dark.css @@ -17,7 +17,7 @@ body { .hdivider { width: 2px; - background: var(--themeDark); + background: transparent; height: 100%; position: relative; cursor: col-resize; @@ -28,7 +28,7 @@ body { .vdivider { width: 100%; height: 2px; - background: var(--themeDark); + background: transparent; position: relative; cursor: row-resize; display: block; @@ -80,9 +80,9 @@ table { } thead { - height: 24px; - background: var(--gray150); - color: var(--themeLight); + height: 26px; + background: var(--themeDark); + color: var(--gray10); } thead tr { @@ -90,6 +90,7 @@ thead tr { z-index: 5; background: inherit !important; color: inherit !important; + border: none !important; } tbody { @@ -147,21 +148,23 @@ tr.selected { th { position: sticky; z-index: 5; - padding: 8px 4px; + padding: 0px 4px; top: 0; font-weight: 300; - background: var(--gray150); - color: var(--themeLight); - fill: var(--themeLight); + background: var(--themeDark); + color: var(--gray10); + fill: var(--gray10); + stroke: var(--gray10); } .stripes tr { - border-bottom: 2px solid var(--gray150); + border-top: 2px solid var(--gray110); + border-bottom: 2px solid var(--gray110); } .currentRow { - border-top: 3px solid var(--themeTertiary) !important; - border-bottom: 3px solid var(--themeTertiary) !important; + border-top: 3px solid var(--themeSecondary) !important; + border-bottom: 3px solid var(--themeSecondary) !important; background-color: var(--gray190) !important; } @@ -442,13 +445,13 @@ label { svg { fill: var(--white); stroke: var(--white); - stroke-width: 0.3; + stroke-width: 0.1; } th svg { margin-top: 4px; - fill: var(--themeLight) !important; - stroke: var(--themeLight) !important; + fill: var(--gray10) !important; + stroke: var(--gray10) !important; } /* tabs */ @@ -527,10 +530,11 @@ th svg { padding-top: 0; padding-left: 4px; background: var(--themeDark); - color: var(--gray10); - border-bottom: 1px solid var(--gray190); + color: var(--white); white-space: nowrap; overflow-x: hidden; + height: 26px; + vertical-align: middle; } .panelcontent { @@ -666,4 +670,67 @@ svg.stats { .oddUnit { border-right-color: var(--odd-unit) !important; +} + +.paddedPanel { + margin-top: 8px; + margin-right: 8px; + margin-left: 8px; + margin-bottom: 8px; + border-radius: 2px; + width: calc(100% - 16px); + height: calc(100% - 16px); + overflow: auto; + box-shadow: 0px 2px 4px var(--black); +} + +.leftPaddedPanel { + margin-top: 8px; + margin-right: 4px; + margin-left: 8px; + margin-bottom: 8px; + border-radius: 2px; + width: calc(100% - 12px); + height: calc(100% - 16px); + overflow: auto; + box-shadow: 0px 2px 4px var(--black); +} + +.rightPaddedPanel { + margin: 0px; + width: 100%; + height: 100%; +} + +.topPaddedPanel { + margin-top: 8px; + margin-right: 8px; + margin-left: 4px; + margin-bottom: 4px; + border-radius: 2px; + width: calc(100% - 12px); + height: calc(100% - 12px); + box-shadow: 0px 2px 4px var(--black); +} + +.centerPaddedPanel { + margin-top: 4px; + margin-right: 8px; + margin-left: 4px; + margin-bottom: 4px; + border-radius: 2px; + width: calc(100% - 12px); + height: calc(100% - 8px); + box-shadow: 0px 2px 4px var(--black); +} + +.bottomPaddedPanel { + margin-top: 4px; + margin-right: 8px; + margin-left: 4px; + margin-bottom: 8px; + border-radius: 2px; + width: calc(100% - 12px); + height: calc(100% - 12px); + box-shadow: 0px 2px 4px var(--black); } \ No newline at end of file diff --git a/css/light.css b/css/light.css index 8df1806..1d9f103 100644 --- a/css/light.css +++ b/css/light.css @@ -17,7 +17,7 @@ body { .hdivider { width: 2px; - background: var(--themePrimary); + background: transparent; height: 100%; position: relative; cursor: col-resize; @@ -28,7 +28,7 @@ body { .vdivider { width: 100%; height: 2px; - background: var(--themePrimary); + background: transparent; position: relative; cursor: row-resize; display: block; @@ -80,9 +80,9 @@ table { } thead { - height: 24px; - background: var(--gray40); - color: var(--themeDark); + height: 26px; + background: var(--themeDark); + color: var(--gray10); } thead tr { @@ -90,10 +90,18 @@ thead tr { z-index: 5; background: inherit !important; color: inherit !important; + border: none !important; } .stripes tr { - border-bottom: 2px solid var(--gray40); + border-top: 2px solid var(--gray50); + border-bottom: 2px solid var(--gray50); +} + +.currentRow { + border-top: 3px solid var(--themeDark) !important; + border-bottom: 3px solid var(--themeDark) !important; + background-color: var(--gray10) !important; } tbody { @@ -151,18 +159,13 @@ tr.selected { th { position: sticky; z-index: 5; - padding: 8px 4px; + padding: 0px 4px; top: 0; font-weight: 300; - background: var(--gray40); - color: var(--themeDark); - fill: var(--themeDark); -} - -.currentRow { - border-top: 3px solid var(--themeDark) !important; - border-bottom: 3px solid var(--themeDark) !important; - background-color: var(--gray10) !important; + background: var(--themeDark); + color: var(--gray10); + fill: var(--gray10); + stroke: var(--gray10); } .sourceContainer { @@ -442,13 +445,13 @@ label { svg { fill: var(--black); stroke: var(--black); - stroke-width: 0.3; + stroke-width: 0.1; } th svg { margin-top: 4px; - fill: var(--themePrimary) !important; - stroke: var(--themePrimary) !important; + fill: var(--gray10) !important; + stroke: var(--gray10) !important; } /* tabs */ @@ -526,11 +529,12 @@ th svg { margin: 0; padding-top: 0; padding-left: 4px; - background: var(--themeDarkAlt); + background: var(--themeDark); color: var(--gray10); - border-bottom: 1px solid var(--gray110); white-space: nowrap; overflow-x: hidden; + height: 26px; + vertical-align: middle; } .panelcontent { @@ -666,4 +670,67 @@ svg.stats { .oddUnit { border-right-color: var(--odd-unit) !important; +} + +.paddedPanel { + margin-top: 8px; + margin-right: 8px; + margin-left: 8px; + margin-bottom: 8px; + border-radius: 2px; + width: calc(100% - 16px); + height: calc(100% - 16px); + overflow: auto; + box-shadow: 0px 2px 4px var(--gray130); +} + +.leftPaddedPanel { + margin-top: 8px; + margin-right: 4px; + margin-left: 8px; + margin-bottom: 8px; + border-radius: 2px; + width: calc(100% - 12px); + height: calc(100% - 16px); + overflow: auto; + box-shadow: 0px 2px 4px var(--gray130); +} + +.rightPaddedPanel { + margin: 0px; + width: 100%; + height: 100%; +} + +.topPaddedPanel { + margin-top: 8px; + margin-right: 8px; + margin-left: 4px; + margin-bottom: 4px; + border-radius: 2px; + width: calc(100% - 12px); + height: calc(100% - 12px); + box-shadow: 0px 2px 4px var(--gray130); +} + +.centerPaddedPanel { + margin-top: 4px; + margin-right: 8px; + margin-left: 4px; + margin-bottom: 4px; + border-radius: 2px; + width: calc(100% - 12px); + height: calc(100% - 8px); + box-shadow: 0px 2px 4px var(--gray130); +} + +.bottomPaddedPanel { + margin-top: 4px; + margin-right: 8px; + margin-left: 4px; + margin-bottom: 8px; + border-radius: 2px; + width: calc(100% - 12px); + height: calc(100% - 12px); + box-shadow: 0px 2px 4px var(--gray130); } \ No newline at end of file diff --git a/html/licenses.html b/html/licenses.html index b2c94bd..dab3958 100644 --- a/html/licenses.html +++ b/html/licenses.html @@ -11,7 +11,7 @@
Swordfish IV | -Swordfish License | +Eclipse Public License 1.0 |
Electron | diff --git a/html/licenses/license.txt b/html/licenses/license.txt deleted file mode 100644 index 584cf21..0000000 --- a/html/licenses/license.txt +++ /dev/null @@ -1,16 +0,0 @@ -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/package.json b/package.json index 70f041c..516a87e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "swordfish", "productName": "Swordfish", - "version": "4.4.2", + "version": "4.5.0", "description": "Swordfish Translation Editor", "main": "js/App.js", "scripts": { @@ -20,7 +20,7 @@ "url": "https://github.com/rmraya/Swordfish.git" }, "devDependencies": { - "electron": "^13.0.1", + "electron": "^13.1.2", "typescript": "^4.3.2" } } diff --git a/src/com/maxprograms/swordfish/Constants.java b/src/com/maxprograms/swordfish/Constants.java index 4744c1b..f567b37 100644 --- a/src/com/maxprograms/swordfish/Constants.java +++ b/src/com/maxprograms/swordfish/Constants.java @@ -1,21 +1,15 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ + package com.maxprograms.swordfish; public class Constants { @@ -25,8 +19,8 @@ private Constants() { } public static final String APPNAME = "Swordfish"; - public static final String VERSION = "4.4.2"; - public static final String BUILD = "20210530_1223"; + public static final String VERSION = "4.5.0"; + public static final String BUILD = "20210607_1010"; public static final String REASON = "reason"; public static final String STATUS = "status"; diff --git a/src/com/maxprograms/swordfish/GlossariesHandler.java b/src/com/maxprograms/swordfish/GlossariesHandler.java index c79477d..3df4065 100644 --- a/src/com/maxprograms/swordfish/GlossariesHandler.java +++ b/src/com/maxprograms/swordfish/GlossariesHandler.java @@ -1,21 +1,15 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ + package com.maxprograms.swordfish; import java.io.BufferedReader; diff --git a/src/com/maxprograms/swordfish/MemoriesHandler.java b/src/com/maxprograms/swordfish/MemoriesHandler.java index 19a7a22..f7d642e 100644 --- a/src/com/maxprograms/swordfish/MemoriesHandler.java +++ b/src/com/maxprograms/swordfish/MemoriesHandler.java @@ -1,21 +1,15 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ + package com.maxprograms.swordfish; import java.io.BufferedReader; diff --git a/src/com/maxprograms/swordfish/ProjectsHandler.java b/src/com/maxprograms/swordfish/ProjectsHandler.java index c0b59a2..11891ef 100644 --- a/src/com/maxprograms/swordfish/ProjectsHandler.java +++ b/src/com/maxprograms/swordfish/ProjectsHandler.java @@ -1,21 +1,15 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ + package com.maxprograms.swordfish; import java.io.BufferedReader; diff --git a/src/com/maxprograms/swordfish/RemoteUtils.java b/src/com/maxprograms/swordfish/RemoteUtils.java index 3bb87c8..f36761f 100644 --- a/src/com/maxprograms/swordfish/RemoteUtils.java +++ b/src/com/maxprograms/swordfish/RemoteUtils.java @@ -1,21 +1,15 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ package com.maxprograms.swordfish; import java.io.BufferedReader; diff --git a/src/com/maxprograms/swordfish/ServicesHandler.java b/src/com/maxprograms/swordfish/ServicesHandler.java index 7a10850..8bb3c30 100644 --- a/src/com/maxprograms/swordfish/ServicesHandler.java +++ b/src/com/maxprograms/swordfish/ServicesHandler.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish; diff --git a/src/com/maxprograms/swordfish/TmsServer.java b/src/com/maxprograms/swordfish/TmsServer.java index 9b9eedf..27c4daf 100644 --- a/src/com/maxprograms/swordfish/TmsServer.java +++ b/src/com/maxprograms/swordfish/TmsServer.java @@ -1,21 +1,15 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ package com.maxprograms.swordfish; import java.io.BufferedReader; diff --git a/src/com/maxprograms/swordfish/am/MatchAssembler.java b/src/com/maxprograms/swordfish/am/MatchAssembler.java index 6322d4c..e884662 100644 --- a/src/com/maxprograms/swordfish/am/MatchAssembler.java +++ b/src/com/maxprograms/swordfish/am/MatchAssembler.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.am; diff --git a/src/com/maxprograms/swordfish/am/Term.java b/src/com/maxprograms/swordfish/am/Term.java index 4d219b7..12c1900 100644 --- a/src/com/maxprograms/swordfish/am/Term.java +++ b/src/com/maxprograms/swordfish/am/Term.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.am; diff --git a/src/com/maxprograms/swordfish/models/Memory.java b/src/com/maxprograms/swordfish/models/Memory.java index 224e7b4..db67777 100644 --- a/src/com/maxprograms/swordfish/models/Memory.java +++ b/src/com/maxprograms/swordfish/models/Memory.java @@ -1,21 +1,15 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ + package com.maxprograms.swordfish.models; import java.text.SimpleDateFormat; diff --git a/src/com/maxprograms/swordfish/models/Project.java b/src/com/maxprograms/swordfish/models/Project.java index ffe5be3..a6b4c27 100644 --- a/src/com/maxprograms/swordfish/models/Project.java +++ b/src/com/maxprograms/swordfish/models/Project.java @@ -1,21 +1,15 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ + package com.maxprograms.swordfish.models; import java.io.IOException; diff --git a/src/com/maxprograms/swordfish/models/SourceFile.java b/src/com/maxprograms/swordfish/models/SourceFile.java index 132ff85..934f23d 100644 --- a/src/com/maxprograms/swordfish/models/SourceFile.java +++ b/src/com/maxprograms/swordfish/models/SourceFile.java @@ -1,21 +1,15 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ + package com.maxprograms.swordfish.models; import java.nio.charset.StandardCharsets; diff --git a/src/com/maxprograms/swordfish/mt/MT.java b/src/com/maxprograms/swordfish/mt/MT.java index fa33e22..c11bf39 100644 --- a/src/com/maxprograms/swordfish/mt/MT.java +++ b/src/com/maxprograms/swordfish/mt/MT.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.mt; diff --git a/src/com/maxprograms/swordfish/mt/MTUtils.java b/src/com/maxprograms/swordfish/mt/MTUtils.java index ccdc1cc..f7ea476 100644 --- a/src/com/maxprograms/swordfish/mt/MTUtils.java +++ b/src/com/maxprograms/swordfish/mt/MTUtils.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.mt; diff --git a/src/com/maxprograms/swordfish/tbx/Tbx2Tmx.java b/src/com/maxprograms/swordfish/tbx/Tbx2Tmx.java index 8f4f876..582c77b 100644 --- a/src/com/maxprograms/swordfish/tbx/Tbx2Tmx.java +++ b/src/com/maxprograms/swordfish/tbx/Tbx2Tmx.java @@ -1,4 +1,16 @@ -package com.maxprograms.swordfish.tbx; +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ + + package com.maxprograms.swordfish.tbx; import java.io.FileOutputStream; import java.io.IOException; diff --git a/src/com/maxprograms/swordfish/tm/FuzzyIndex.java b/src/com/maxprograms/swordfish/tm/FuzzyIndex.java index 0866f32..9809c31 100755 --- a/src/com/maxprograms/swordfish/tm/FuzzyIndex.java +++ b/src/com/maxprograms/swordfish/tm/FuzzyIndex.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.tm; diff --git a/src/com/maxprograms/swordfish/tm/ITmEngine.java b/src/com/maxprograms/swordfish/tm/ITmEngine.java index 996c546..48d06ff 100644 --- a/src/com/maxprograms/swordfish/tm/ITmEngine.java +++ b/src/com/maxprograms/swordfish/tm/ITmEngine.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.tm; diff --git a/src/com/maxprograms/swordfish/tm/InternalDatabase.java b/src/com/maxprograms/swordfish/tm/InternalDatabase.java index 9ff1bcc..1d8afac 100755 --- a/src/com/maxprograms/swordfish/tm/InternalDatabase.java +++ b/src/com/maxprograms/swordfish/tm/InternalDatabase.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.tm; diff --git a/src/com/maxprograms/swordfish/tm/Match.java b/src/com/maxprograms/swordfish/tm/Match.java index 3f33955..1953e68 100644 --- a/src/com/maxprograms/swordfish/tm/Match.java +++ b/src/com/maxprograms/swordfish/tm/Match.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.tm; diff --git a/src/com/maxprograms/swordfish/tm/MatchQuality.java b/src/com/maxprograms/swordfish/tm/MatchQuality.java index 7e03528..98240c4 100755 --- a/src/com/maxprograms/swordfish/tm/MatchQuality.java +++ b/src/com/maxprograms/swordfish/tm/MatchQuality.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.tm; diff --git a/src/com/maxprograms/swordfish/tm/NGrams.java b/src/com/maxprograms/swordfish/tm/NGrams.java index e3e6780..3682cb3 100755 --- a/src/com/maxprograms/swordfish/tm/NGrams.java +++ b/src/com/maxprograms/swordfish/tm/NGrams.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.tm; diff --git a/src/com/maxprograms/swordfish/tm/RemoteDatabase.java b/src/com/maxprograms/swordfish/tm/RemoteDatabase.java index 9b42067..80e67e1 100644 --- a/src/com/maxprograms/swordfish/tm/RemoteDatabase.java +++ b/src/com/maxprograms/swordfish/tm/RemoteDatabase.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.tm; diff --git a/src/com/maxprograms/swordfish/tm/TMUtils.java b/src/com/maxprograms/swordfish/tm/TMUtils.java index cea3cd4..938c400 100644 --- a/src/com/maxprograms/swordfish/tm/TMUtils.java +++ b/src/com/maxprograms/swordfish/tm/TMUtils.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.tm; diff --git a/src/com/maxprograms/swordfish/tm/TU.java b/src/com/maxprograms/swordfish/tm/TU.java index bfd14bf..2236fc7 100755 --- a/src/com/maxprograms/swordfish/tm/TU.java +++ b/src/com/maxprograms/swordfish/tm/TU.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.tm; diff --git a/src/com/maxprograms/swordfish/tm/TuData.java b/src/com/maxprograms/swordfish/tm/TuData.java index 196179f..a0b5c3d 100755 --- a/src/com/maxprograms/swordfish/tm/TuData.java +++ b/src/com/maxprograms/swordfish/tm/TuData.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.tm; diff --git a/src/com/maxprograms/swordfish/tm/TuDatabase.java b/src/com/maxprograms/swordfish/tm/TuDatabase.java index 703dd1f..d13469d 100755 --- a/src/com/maxprograms/swordfish/tm/TuDatabase.java +++ b/src/com/maxprograms/swordfish/tm/TuDatabase.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.tm; diff --git a/src/com/maxprograms/swordfish/tm/Tuv.java b/src/com/maxprograms/swordfish/tm/Tuv.java index 54ed64f..7ec1ab2 100755 --- a/src/com/maxprograms/swordfish/tm/Tuv.java +++ b/src/com/maxprograms/swordfish/tm/Tuv.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.tm; diff --git a/src/com/maxprograms/swordfish/tmx/TMXContentHandler.java b/src/com/maxprograms/swordfish/tmx/TMXContentHandler.java index e884bc2..a5b3eea 100644 --- a/src/com/maxprograms/swordfish/tmx/TMXContentHandler.java +++ b/src/com/maxprograms/swordfish/tmx/TMXContentHandler.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.tmx; diff --git a/src/com/maxprograms/swordfish/tmx/TMXReader.java b/src/com/maxprograms/swordfish/tmx/TMXReader.java index c93b20b..98e997d 100644 --- a/src/com/maxprograms/swordfish/tmx/TMXReader.java +++ b/src/com/maxprograms/swordfish/tmx/TMXReader.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.tmx; diff --git a/src/com/maxprograms/swordfish/tmx/TMXResolver.java b/src/com/maxprograms/swordfish/tmx/TMXResolver.java index f652050..ce99994 100644 --- a/src/com/maxprograms/swordfish/tmx/TMXResolver.java +++ b/src/com/maxprograms/swordfish/tmx/TMXResolver.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.tmx; diff --git a/src/com/maxprograms/swordfish/xliff/Compression.java b/src/com/maxprograms/swordfish/xliff/Compression.java index 1f55057..b0c97a6 100644 --- a/src/com/maxprograms/swordfish/xliff/Compression.java +++ b/src/com/maxprograms/swordfish/xliff/Compression.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.xliff; diff --git a/src/com/maxprograms/swordfish/xliff/DifferenceTagger.java b/src/com/maxprograms/swordfish/xliff/DifferenceTagger.java index a173f37..c100f02 100755 --- a/src/com/maxprograms/swordfish/xliff/DifferenceTagger.java +++ b/src/com/maxprograms/swordfish/xliff/DifferenceTagger.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.xliff; diff --git a/src/com/maxprograms/swordfish/xliff/Skeletons.java b/src/com/maxprograms/swordfish/xliff/Skeletons.java index b6f3fe7..036c060 100644 --- a/src/com/maxprograms/swordfish/xliff/Skeletons.java +++ b/src/com/maxprograms/swordfish/xliff/Skeletons.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.xliff; diff --git a/src/com/maxprograms/swordfish/xliff/XliffStore.java b/src/com/maxprograms/swordfish/xliff/XliffStore.java index 4af58c6..98d7e0f 100644 --- a/src/com/maxprograms/swordfish/xliff/XliffStore.java +++ b/src/com/maxprograms/swordfish/xliff/XliffStore.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.xliff; diff --git a/src/com/maxprograms/swordfish/xliff/XliffUtils.java b/src/com/maxprograms/swordfish/xliff/XliffUtils.java index a6431ea..6538bcd 100644 --- a/src/com/maxprograms/swordfish/xliff/XliffUtils.java +++ b/src/com/maxprograms/swordfish/xliff/XliffUtils.java @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ package com.maxprograms.swordfish.xliff; diff --git a/src/module-info.java b/src/module-info.java index 68b19b0..1b836d3 100644 --- a/src/module-info.java +++ b/src/module-info.java @@ -1,21 +1,15 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ module swordfish { exports com.maxprograms.swordfish; diff --git a/swordfish.pdf b/swordfish.pdf index 330d739..cddbb01 100644 Binary files a/swordfish.pdf and b/swordfish.pdf differ diff --git a/ts/App.ts b/ts/App.ts index 61949f8..e8bfbe5 100644 --- a/ts/App.ts +++ b/ts/App.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ import { Buffer } from "buffer"; import { execFileSync, spawn, ChildProcessWithoutNullStreams } from "child_process"; @@ -1848,6 +1841,7 @@ class Swordfish { res.setEncoding('utf-8'); if (res.statusCode != 200) { error('sendRequest() error: ' + res.statusMessage); + return; } let rawData: string = ''; res.on('data', (chunk: string) => { @@ -1905,8 +1899,8 @@ class Swordfish { let title = ''; switch (type) { case 'Swordfish': - licenseFile = 'file://' + this.path.join(app.getAppPath(), 'html', 'licenses', 'license.txt'); - title = 'Swordfish License'; + licenseFile = 'file://' + this.path.join(app.getAppPath(), 'html', 'licenses', 'EclipsePublicLicense1.0.html'); + title = 'Eclipse Public License 1.0'; break; case "electron": licenseFile = 'file://' + this.path.join(app.getAppPath(), 'html', 'licenses', 'electron.txt'); diff --git a/ts/Main.ts b/ts/Main.ts index f519c12..2bf2260 100644 --- a/ts/Main.ts +++ b/ts/Main.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class Main { diff --git a/ts/about.ts b/ts/about.ts index ea8caa1..e667268 100644 --- a/ts/about.ts +++ b/ts/about.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class About { diff --git a/ts/addFile.ts b/ts/addFile.ts index 8dc9e51..ce0b9b0 100644 --- a/ts/addFile.ts +++ b/ts/addFile.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class AddFile { diff --git a/ts/addGlossary.ts b/ts/addGlossary.ts index 79efd72..97a8dab 100644 --- a/ts/addGlossary.ts +++ b/ts/addGlossary.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class AddGlossary { diff --git a/ts/addMemory.ts b/ts/addMemory.ts index 9ece7cd..5199037 100644 --- a/ts/addMemory.ts +++ b/ts/addMemory.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class AddMemory { diff --git a/ts/addNote.ts b/ts/addNote.ts index 3afda03..d31b19a 100644 --- a/ts/addNote.ts +++ b/ts/addNote.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class AddNote { diff --git a/ts/addProject.ts b/ts/addProject.ts index 4964f72..f36da96 100644 --- a/ts/addProject.ts +++ b/ts/addProject.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class AddProject { diff --git a/ts/addTerm.ts b/ts/addTerm.ts index d19add4..0c7c851 100644 --- a/ts/addTerm.ts +++ b/ts/addTerm.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class AddTerm { diff --git a/ts/applyTm.ts b/ts/applyTm.ts index 9c4cb1e..526be59 100644 --- a/ts/applyTm.ts +++ b/ts/applyTm.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class ApplyTM { diff --git a/ts/browseDatabases.ts b/ts/browseDatabases.ts index 89346d6..9907167 100644 --- a/ts/browseDatabases.ts +++ b/ts/browseDatabases.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class Database { id: string; diff --git a/ts/changeCase.ts b/ts/changeCase.ts index fb3ce45..dd9d064 100644 --- a/ts/changeCase.ts +++ b/ts/changeCase.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class ChangeCase { diff --git a/ts/concordanceSearch.ts b/ts/concordanceSearch.ts index 7b38c9a..2f113f9 100644 --- a/ts/concordanceSearch.ts +++ b/ts/concordanceSearch.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class ConcordanceSearch { diff --git a/ts/defaultLangs.ts b/ts/defaultLangs.ts index ab15eb5..aa500c7 100644 --- a/ts/defaultLangs.ts +++ b/ts/defaultLangs.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class DefaultLanguages { diff --git a/ts/divider.ts b/ts/divider.ts index 04fe9e9..5c89547 100644 --- a/ts/divider.ts +++ b/ts/divider.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class VerticalSplit { @@ -33,6 +26,7 @@ class VerticalSplit { this.left = document.createElement('div'); this.left.style.width = '50%'; + this.left.style.minWidth = '4px'; parent.appendChild(this.left); this.divider = document.createElement('div'); @@ -41,28 +35,41 @@ class VerticalSplit { this.divider.addEventListener('dragstart', (event: DragEvent) => { this.dragStart(event); }); - this.divider.addEventListener('dragend', (event) => { + this.divider.addEventListener('drag', (event: DragEvent) => { + this.drag(event); + }) + this.divider.addEventListener('dragend', (event: DragEvent) => { this.dragEnd(event); }); parent.appendChild(this.divider); this.right = document.createElement('div'); this.right.style.width = '50%'; + this.right.style.minWidth = '4px'; parent.appendChild(this.right); - let config: MutationObserverInit = { attributes: true, childList: false, subtree: false }; + let config: any = { attributes: true, childList: false, subtree: false }; let observer = new MutationObserver((mutationsList) => { for (let mutation of mutationsList) { if (mutation.type === 'attributes') { - this.left.style.height = parent.clientHeight + 'px'; - this.right.style.height = parent.clientHeight + 'px'; - let width = parent.clientWidth - this.divider.clientWidth; - this.left.style.width = (width * this.weights[0] / (this.weights[0] + this.weights[1])) + 'px'; - this.right.style.width = (width * this.weights[1] / (this.weights[0] + this.weights[1])) + 'px'; + this.resize(parent) } } }); observer.observe(parent, config); + setTimeout(() => { + this.resize(parent); + }); + } + + resize(parent: HTMLDivElement): void { + this.left.style.height = parent.clientHeight + 'px'; + this.right.style.height = parent.clientHeight + 'px'; + let width = parent.clientWidth - this.divider.clientWidth; + let leftWidth: number = Math.round(width * this.weights[0] / (this.weights[0] + this.weights[1])); + let rightWidth = width - leftWidth; + this.left.style.width = leftWidth + 'px'; + this.right.style.width = rightWidth + 'px'; } setWeights(weights: number[]): void { @@ -79,218 +86,27 @@ class VerticalSplit { return this.right; } - dragStart(ev: DragEvent) { + dragStart(ev: DragEvent): void { this.currentSum = this.left.clientWidth + this.right.clientWidth; } - dragEnd(ev: DragEvent) { - let leftWidth: number = this.left.clientWidth + ev.offsetX; - if (leftWidth < 5) { - leftWidth = 5; + drag(ev: DragEvent): void { + if (ev.clientX === 0 && ev.clientY === 0) { + return; } - let rightWidth: number = this.currentSum - leftWidth; + var leftWidth: number = this.left.clientWidth + ev.offsetX; + var rightWidth: number = this.currentSum - leftWidth; this.left.style.width = leftWidth + 'px'; this.right.style.width = rightWidth + 'px'; this.weights = [leftWidth, rightWidth]; } -} - -class ThreeVerticalPanels { - - left: HTMLDivElement; - leftDivider: HTMLDivElement; - center: HTMLDivElement; - rightDivider: HTMLDivElement; - right: HTMLDivElement; - - leftWidth: number; - centerWidth: number; - rightWidth: number; - - weights: number[]; - - constructor(parent: HTMLDivElement) { - parent.style.display = 'flex'; - parent.style.flexDirection = 'row'; - - this.weights = [33.3, 33.3, 33.3]; - - this.left = document.createElement('div'); - this.left.style.width = '33%'; - parent.appendChild(this.left); - - this.leftDivider = document.createElement('div'); - this.leftDivider.classList.add('hdivider'); - this.leftDivider.draggable = true; - this.leftDivider.addEventListener('dragstart', () => { - this.dragStart(); - }); - this.leftDivider.addEventListener('dragend', (event) => { - this.leftDragEnd(event); - }); - parent.appendChild(this.leftDivider); - - this.center = document.createElement('div'); - this.center.style.width = '33%'; - parent.appendChild(this.center); - - this.rightDivider = document.createElement('div'); - this.rightDivider.classList.add('hdivider'); - this.rightDivider.draggable = true; - this.rightDivider.addEventListener('dragstart', () => { - this.dragStart(); - }); - this.rightDivider.addEventListener('dragend', (event) => { - this.rightDragEnd(event); - }); - parent.appendChild(this.rightDivider); - - this.right = document.createElement('div'); - this.right.style.width = '33%'; - parent.appendChild(this.right); - - let config: MutationObserverInit = { attributes: true, childList: false, subtree: false }; - let observer = new MutationObserver((mutationsList) => { - for (let mutation of mutationsList) { - if (mutation.type === 'attributes') { - this.left.style.height = parent.clientHeight + 'px'; - this.center.style.height = parent.clientHeight + 'px'; - this.right.style.height = parent.clientHeight + 'px'; - let width = parent.clientWidth - this.leftDivider.clientWidth - this.rightDivider.clientWidth; - this.left.style.width = (width * this.weights[0] / (this.weights[0] + this.weights[1] + this.weights[2])) + 'px'; - this.center.style.width = (width * this.weights[1] / (this.weights[0] + this.weights[1] + this.weights[2])) + 'px'; - this.right.style.width = (width * this.weights[3] / (this.weights[0] + this.weights[1] + this.weights[2])) + 'px'; - } - } - }); - observer.observe(parent, config); - } - - setWeights(weights: number[]): void { - this.weights = weights; - this.left.style.width = weights[0] + '%'; - this.center.style.width = weights[1] + '%'; - this.right.style.width = weights[2] + '%'; - } - - leftPanel(): HTMLDivElement { - return this.left; - } - - centerPanel(): HTMLDivElement { - return this.center; - } - - rightPanel(): HTMLDivElement { - return this.right; - } - - dragStart() { - this.leftWidth = this.left.clientWidth; - this.centerWidth = this.center.clientWidth; - this.rightWidth = this.right.clientWidth; - } - - leftDragEnd(ev: DragEvent) { - let sum = this.leftWidth + this.centerWidth + this.rightWidth; - this.leftWidth = this.leftWidth + ev.offsetX; - if (this.leftWidth < 5) { - this.leftWidth = 5; - } - this.centerWidth = sum - this.leftWidth - this.rightWidth; - this.left.style.width = this.leftWidth + 'px'; - this.center.style.width = this.centerWidth + 'px'; - this.weights = [this.leftWidth, this.centerWidth, this.rightWidth]; - } - - rightDragEnd(ev: DragEvent) { - let sum = this.leftWidth + this.centerWidth + this.rightWidth; - this.centerWidth = this.centerWidth + ev.offsetX; - if (this.centerWidth < 5) { - this.centerWidth = 5; - } - this.rightWidth = sum - this.leftWidth - this.centerWidth; - this.center.style.width = this.centerWidth + 'px'; - this.right.style.width = this.rightWidth + 'px'; - this.weights = [this.leftWidth, this.centerWidth, this.rightWidth]; - } -} - -class HorizontalSplit { - - top: HTMLDivElement; - divider: HTMLDivElement; - bottom: HTMLDivElement; - weights: number[]; - currentSum: number; - - constructor(parent: HTMLDivElement) { - parent.style.display = 'flex'; - parent.style.flexDirection = 'column'; - - this.weights = [50, 50]; - - this.top = document.createElement('div'); - this.top.style.height = '50%'; - parent.appendChild(this.top); - - this.divider = document.createElement('div'); - this.divider.classList.add('vdivider'); - this.divider.draggable = true; - this.divider.addEventListener('dragstart', (event: DragEvent) => { - this.dragStart(event); - }); - this.divider.addEventListener('dragend', (event: DragEvent) => { - this.dragEnd(event); - }); - parent.appendChild(this.divider); - - this.bottom = document.createElement('div'); - this.bottom.style.height = '50%'; - parent.appendChild(this.bottom); - - let config: MutationObserverInit = { attributes: true, childList: false, subtree: false }; - let observer = new MutationObserver((mutationsList) => { - for (let mutation of mutationsList) { - if (mutation.type === 'attributes') { - this.top.style.width = parent.clientWidth + 'px'; - this.bottom.style.width = parent.clientWidth + 'px'; - let height = parent.clientHeight - this.divider.clientHeight; - this.top.style.height = (height * this.weights[0] / (this.weights[0] + this.weights[1])) + 'px'; - this.bottom.style.height = (height * this.weights[1] / (this.weights[0] + this.weights[1])) + 'px'; - } - } - }); - observer.observe(parent, config); - } - setWeights(weights: number[]): void { - this.weights = weights; - this.top.style.height = weights[0] + '%'; - this.bottom.style.height = weights[1] + '%'; - } - - topPanel(): HTMLDivElement { - return this.top; - } - - bottomPanel(): HTMLDivElement { - return this.bottom; - } - - dragStart(ev: DragEvent) { - this.currentSum = this.top.clientHeight + this.bottom.clientHeight; - } - - dragEnd(ev: DragEvent) { - let topHeight: number = this.top.clientHeight + ev.offsetY; - if (topHeight < 5) { - topHeight = 5; - } - let bottomHeight: number = this.currentSum - topHeight; - this.top.style.height = topHeight + 'px'; - this.bottom.style.height = bottomHeight + 'px'; - this.weights = [topHeight, bottomHeight]; + dragEnd(ev: DragEvent): void { + var leftWidth: number = this.left.clientWidth + ev.offsetX; + var rightWidth: number = this.currentSum - leftWidth; + this.left.style.width = leftWidth + 'px'; + this.right.style.width = rightWidth + 'px'; + this.weights = [leftWidth, rightWidth]; } } @@ -316,6 +132,7 @@ class ThreeHorizontalPanels { this.top = document.createElement('div'); this.top.style.height = '33%'; + this.top.style.minHeight = '4px'; parent.appendChild(this.top); this.topDivider = document.createElement('div'); @@ -324,6 +141,9 @@ class ThreeHorizontalPanels { this.topDivider.addEventListener('dragstart', () => { this.dragStart(); }); + this.topDivider.addEventListener('drag', (event: DragEvent) => { + this.topDrag(event); + }) this.topDivider.addEventListener('dragend', (event: DragEvent) => { this.topDragEnd(event); }); @@ -331,6 +151,7 @@ class ThreeHorizontalPanels { this.center = document.createElement('div'); this.center.style.height = '33%'; + this.center.style.minHeight = '4px'; parent.appendChild(this.center); this.bottomDivider = document.createElement('div'); @@ -339,6 +160,9 @@ class ThreeHorizontalPanels { this.bottomDivider.addEventListener('dragstart', () => { this.dragStart(); }); + this.bottomDivider.addEventListener('drag', (event: DragEvent) => { + this.bottomDrag(event); + }); this.bottomDivider.addEventListener('dragend', (event: DragEvent) => { this.bottomDragEnd(event); }); @@ -346,23 +170,36 @@ class ThreeHorizontalPanels { this.bottom = document.createElement('div'); this.bottom.style.height = '33%'; + this.bottom.style.minHeight = '4px'; parent.appendChild(this.bottom); let config: any = { attributes: true, childList: false, subtree: false }; let observer = new MutationObserver((mutationsList) => { for (let mutation of mutationsList) { if (mutation.type === 'attributes') { - this.top.style.width = parent.clientWidth + 'px'; - this.center.style.width = parent.clientWidth + 'px'; - this.bottom.style.width = parent.clientWidth + 'px'; - let height = parent.clientHeight - this.topDivider.clientHeight - this.bottomDivider.clientHeight; - this.top.style.height = (height * this.weights[0] / (this.weights[0] + this.weights[1] + this.weights[2])) + 'px'; - this.center.style.height = (height * this.weights[1] / (this.weights[0] + this.weights[1] + this.weights[2])) + 'px'; - this.bottom.style.height = (height * this.weights[3] / (this.weights[0] + this.weights[1] + this.weights[2])) + 'px'; + setTimeout(() => { + this.resize(parent); + }); } } }); observer.observe(parent, config); + setTimeout(() => { + this.resize(parent); + }); + } + + resize(parent: HTMLDivElement): void { + this.top.style.width = parent.clientWidth + 'px'; + this.center.style.width = parent.clientWidth + 'px'; + this.bottom.style.width = parent.clientWidth + 'px'; + let height = parent.clientHeight - this.topDivider.clientHeight - this.bottomDivider.clientHeight; + let top: number = Math.round(height * this.weights[0] / (this.weights[0] + this.weights[1] + this.weights[2])); + let center: number = Math.round(height * this.weights[1] / (this.weights[0] + this.weights[1] + this.weights[2])); + let bottom: number = height - top - center; + this.top.style.height = top + 'px'; + this.center.style.height = center + 'px'; + this.bottom.style.height = bottom + 'px'; } setWeights(weights: number[]): void { @@ -384,31 +221,49 @@ class ThreeHorizontalPanels { return this.bottom; } - dragStart() { + dragStart(): void { this.topHeight = this.top.clientHeight; this.centerHeight = this.center.clientHeight; this.bottomHeight = this.bottom.clientHeight; } - topDragEnd(event: DragEvent) { + topDrag(event: DragEvent): void { + if (event.clientX === 0 && event.clientY === 0) { + return; + } let sum = this.topHeight + this.centerHeight + this.bottomHeight; this.topHeight = this.topHeight + event.offsetY; - if (this.topHeight < 5) { - this.topHeight = 5; - } this.centerHeight = sum - this.topHeight - this.bottomHeight; this.top.style.height = this.topHeight + 'px'; this.center.style.height = this.centerHeight + 'px'; this.weights = [this.topHeight, this.centerHeight, this.bottomHeight]; } + topDragEnd(event: DragEvent): void { + let sum = this.topHeight + this.centerHeight + this.bottomHeight; + this.topHeight = this.topHeight + event.offsetY; + this.centerHeight = sum - this.topHeight - this.bottomHeight; + this.top.style.height = this.topHeight + 'px'; + this.center.style.height = this.centerHeight + 'px'; + this.weights = [this.topHeight, this.centerHeight, this.bottomHeight]; + } - bottomDragEnd(event: DragEvent) { + bottomDrag(event: DragEvent): void { + if (event.clientX === 0 && event.clientY === 0) { + return; + } + let sum = this.topHeight + this.centerHeight + this.bottomHeight; + this.centerHeight = this.centerHeight + event.offsetY; + this.bottomHeight = sum - this.topHeight - this.centerHeight; + this.center.style.height = this.centerHeight + 'px'; + this.bottom.style.height = this.bottomHeight + 'px'; + this.weights = [this.topHeight, this.centerHeight, this.bottomHeight]; + + } + + bottomDragEnd(event: DragEvent): void { let sum = this.topHeight + this.centerHeight + this.bottomHeight; this.centerHeight = this.centerHeight + event.offsetY; - if (this.centerHeight < 5) { - this.centerHeight = 5; - } this.bottomHeight = sum - this.topHeight - this.centerHeight; this.center.style.height = this.centerHeight + 'px'; this.bottom.style.height = this.bottomHeight + 'px'; diff --git a/ts/filterSegments.ts b/ts/filterSegments.ts index 81603f4..1f141b6 100644 --- a/ts/filterSegments.ts +++ b/ts/filterSegments.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class FilterSegments { diff --git a/ts/gettingStarted.ts b/ts/gettingStarted.ts index e84d6f9..8322478 100644 --- a/ts/gettingStarted.ts +++ b/ts/gettingStarted.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class GettingStarted { diff --git a/ts/glossaries.ts b/ts/glossaries.ts index af8b572..dfd9278 100644 --- a/ts/glossaries.ts +++ b/ts/glossaries.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class GlossariesView { @@ -101,7 +94,7 @@ class GlossariesView { this.topBar.appendChild(remoteButton); this.tableContainer = document.createElement('div'); - this.tableContainer.classList.add('divContainer'); + this.tableContainer.classList.add('paddedPanel'); this.container.appendChild(this.tableContainer); let glossariesTable = document.createElement('table'); @@ -138,8 +131,8 @@ class GlossariesView { setSizes(): void { let main: HTMLDivElement = document.getElementById('main') as HTMLDivElement; - this.tableContainer.style.height = (main.clientHeight - this.topBar.clientHeight) + 'px'; - this.tableContainer.style.width = this.container.clientWidth + 'px'; + this.tableContainer.style.height = (main.clientHeight - this.topBar.clientHeight - 16) + 'px'; + this.tableContainer.style.width = (this.container.clientWidth - 16) + 'px'; } watchSizes(): void { diff --git a/ts/goTo.ts b/ts/goTo.ts index dcb58fc..fac1403 100644 --- a/ts/goTo.ts +++ b/ts/goTo.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class GoTo { diff --git a/ts/htmlViewer.ts b/ts/htmlViewer.ts index 529dec5..dca05fe 100644 --- a/ts/htmlViewer.ts +++ b/ts/htmlViewer.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class HtmlViewer { diff --git a/ts/importGlossary.ts b/ts/importGlossary.ts index bf08d1a..5650aae 100644 --- a/ts/importGlossary.ts +++ b/ts/importGlossary.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class ImportGlossary { diff --git a/ts/importTmx.ts b/ts/importTmx.ts index 9d7c4d6..26ad436 100644 --- a/ts/importTmx.ts +++ b/ts/importTmx.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class ImportTMX { diff --git a/ts/importXliff.ts b/ts/importXliff.ts index c188118..fd44105 100644 --- a/ts/importXliff.ts +++ b/ts/importXliff.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class ImportXLIFF { diff --git a/ts/keyboardHandler.ts b/ts/keyboardHandler.ts index b20bb7c..993fb09 100644 --- a/ts/keyboardHandler.ts +++ b/ts/keyboardHandler.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class KeyboardHandler { diff --git a/ts/licenses.ts b/ts/licenses.ts index 0abf92a..30947ce 100644 --- a/ts/licenses.ts +++ b/ts/licenses.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class Licenses { diff --git a/ts/memories.ts b/ts/memories.ts index d06ccbb..9b9df2e 100644 --- a/ts/memories.ts +++ b/ts/memories.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class Memory { id: string; @@ -106,7 +99,7 @@ class MemoriesView { this.topBar.appendChild(remoteButton); this.tableContainer = document.createElement('div'); - this.tableContainer.classList.add('divContainer'); + this.tableContainer.classList.add('paddedPanel'); this.container.appendChild(this.tableContainer); let memoriesTable = document.createElement('table'); @@ -143,8 +136,8 @@ class MemoriesView { setSizes(): void { let main: HTMLDivElement = document.getElementById('main') as HTMLDivElement; - this.tableContainer.style.height = (main.clientHeight - this.topBar.clientHeight) + 'px'; - this.tableContainer.style.width = this.container.clientWidth + 'px'; + this.tableContainer.style.height = (main.clientHeight - this.topBar.clientHeight - 16) + 'px'; + this.tableContainer.style.width = (this.container.clientWidth - 16) + 'px'; } watchSizes(): void { diff --git a/ts/messages.ts b/ts/messages.ts index b6606f9..469f95d 100644 --- a/ts/messages.ts +++ b/ts/messages.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class Messages { diff --git a/ts/mtMatches.ts b/ts/mtMatches.ts index 8c1fbcc..3d0479b 100644 --- a/ts/mtMatches.ts +++ b/ts/mtMatches.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class MtMatches { diff --git a/ts/notes.ts b/ts/notes.ts index e65df79..f368c4a 100644 --- a/ts/notes.ts +++ b/ts/notes.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class Notes { diff --git a/ts/preferences.ts b/ts/preferences.ts index 2341bea..a81904a 100644 --- a/ts/preferences.ts +++ b/ts/preferences.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class Preferences { @@ -700,14 +693,11 @@ class Preferences { populateMtTab(container: HTMLDivElement): void { - let holder: HTMLDivElement = document.createElement('div'); - holder.style.width = '96%'; - holder.style.marginLeft = '2%'; - holder.style.marginTop = '10px'; - holder.style.border = '1px solid var(--tabHolder-background)'; - container.appendChild(holder); - - let mtHolder: TabHolder = new TabHolder(holder, 'mtHolder'); + let div : HTMLDivElement = document.createElement('div'); + div.style.margin = '8px'; + container.appendChild(div); + + let mtHolder: TabHolder = new TabHolder(div, 'mtHolder'); let googleTab: Tab = new Tab('googleTab', 'Google', false); googleTab.getLabel().addEventListener('click', () => { diff --git a/ts/projects.ts b/ts/projects.ts index b864d6d..0c5949c 100644 --- a/ts/projects.ts +++ b/ts/projects.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class SourceFile { file: string; @@ -146,7 +139,7 @@ class ProjectsView { this.topBar.appendChild(exportButton); this.tableContainer = document.createElement('div'); - this.tableContainer.classList.add('divContainer'); + this.tableContainer.classList.add('paddedPanel'); this.container.appendChild(this.tableContainer); this.tableContainer.addEventListener('drop', (event: DragEvent) => { this.dropListener(event, this.tableContainer) }); this.tableContainer.addEventListener('dragover', (event: DragEvent) => { this.dragOverListener(event) }); @@ -191,8 +184,8 @@ class ProjectsView { setSizes(): void { let main: HTMLDivElement = document.getElementById('main') as HTMLDivElement; - this.tableContainer.style.height = (main.clientHeight - this.topBar.clientHeight) + 'px'; - this.tableContainer.style.width = this.container.clientWidth + 'px'; + this.tableContainer.style.height = (main.clientHeight - this.topBar.clientHeight - 16) + 'px'; + this.tableContainer.style.width = (this.container.clientWidth - 16) + 'px'; } watchSizes(): void { diff --git a/ts/replaceText.ts b/ts/replaceText.ts index c4dfd33..f6b80be 100644 --- a/ts/replaceText.ts +++ b/ts/replaceText.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class ReplaceText { diff --git a/ts/serverSettings.ts b/ts/serverSettings.ts index b55497b..dbe6df9 100644 --- a/ts/serverSettings.ts +++ b/ts/serverSettings.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class ServerSettings { diff --git a/ts/sortSegments.ts b/ts/sortSegments.ts index 128ecbc..d563eba 100644 --- a/ts/sortSegments.ts +++ b/ts/sortSegments.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class SortSegments { diff --git a/ts/spellingLangs.ts b/ts/spellingLangs.ts index ec712eb..4687bc9 100644 --- a/ts/spellingLangs.ts +++ b/ts/spellingLangs.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class SpellcheckerLanguages { diff --git a/ts/tabs.ts b/ts/tabs.ts index e31a59a..503a6fa 100644 --- a/ts/tabs.ts +++ b/ts/tabs.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class Tab { diff --git a/ts/tags.ts b/ts/tags.ts index 69a4d24..51c1c2d 100644 --- a/ts/tags.ts +++ b/ts/tags.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class Tags { diff --git a/ts/termSearch.ts b/ts/termSearch.ts index 5731cf3..51f906a 100644 --- a/ts/termSearch.ts +++ b/ts/termSearch.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class TermSearch { diff --git a/ts/termsPanel.ts b/ts/termsPanel.ts index 3cabf4d..66afc20 100644 --- a/ts/termsPanel.ts +++ b/ts/termsPanel.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class Term { srcLang: string; diff --git a/ts/tmMatches.ts b/ts/tmMatches.ts index ab7a3f6..c91dea6 100644 --- a/ts/tmMatches.ts +++ b/ts/tmMatches.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class Match { matchId: string; diff --git a/ts/translation.ts b/ts/translation.ts index 7e6328b..ea8e316 100644 --- a/ts/translation.ts +++ b/ts/translation.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class SegmentId { file: string; @@ -61,7 +54,6 @@ class TranslationView { rowsObserver: MutationObserver; mainArea: HTMLDivElement; - filesArea: HTMLDivElement; translationArea: HTMLDivElement; rightPanel: HTMLDivElement; segmentsArea: HTMLDivElement; @@ -146,7 +138,6 @@ class TranslationView { let verticalPanels: VerticalSplit = new VerticalSplit(this.mainArea); verticalPanels.setWeights([75, 25]); - this.filesArea = verticalPanels.leftPanel(); this.translationArea = verticalPanels.leftPanel(); this.translationArea.style.height = '100%'; @@ -443,7 +434,7 @@ class TranslationView { this.topBar.appendChild(mergeButton); this.sortButton = document.createElement('a'); - this.sortButton.innerHTML = '' + + this.sortButton.innerHTML = '' + 'Sort Segments'; this.sortButton.className = 'tooltip'; this.sortButton.style.marginLeft = '20px'; @@ -453,7 +444,7 @@ class TranslationView { this.topBar.appendChild(this.sortButton); this.filterButton = document.createElement('a'); - this.filterButton.innerHTML = '' + + this.filterButton.innerHTML = '' + 'Filter Segments'; this.filterButton.className = 'tooltip'; this.filterButton.addEventListener('click', () => { @@ -674,15 +665,19 @@ class TranslationView { } buildTranslationArea(): void { + + let leftPanel: HTMLDivElement = document.createElement('div'); + leftPanel.classList.add('leftPaddedPanel'); + this.translationArea.appendChild(leftPanel); + let tableContainer: HTMLDivElement = document.createElement('div'); tableContainer.classList.add('divContainer'); tableContainer.classList.add('fill_width'); - this.translationArea.appendChild(tableContainer); + leftPanel.appendChild(tableContainer); let table: HTMLTableElement = document.createElement('table'); table.classList.add('stripes'); table.classList.add('zoomable'); - table.style.width = 'calc(100% - 2px)'; table.style.tableLayout = 'fixed'; tableContainer.appendChild(table); @@ -711,7 +706,7 @@ class TranslationView { tr.appendChild(this.matchTh); this.finalTh = document.createElement('th'); - this.finalTh.innerHTML = TranslationView.SVG_FINAL; + this.finalTh.innerHTML = ''; tr.appendChild(this.finalTh); this.targetTh = document.createElement('th'); @@ -724,7 +719,7 @@ class TranslationView { this.statusArea = document.createElement('div'); this.statusArea.classList.add('toolbar'); this.statusArea.style.borderTopColor = 'var(--accent-color)'; - this.translationArea.appendChild(this.statusArea); + leftPanel.appendChild(this.statusArea); let firstLink: HTMLAnchorElement = document.createElement('a'); firstLink.classList.add('tooltip'); @@ -846,8 +841,8 @@ class TranslationView { this.rowsObserver = new MutationObserver((mutationsList) => { for (let mutation of mutationsList) { if (mutation.type === 'attributes') { - tableContainer.style.height = (this.translationArea.clientHeight - this.statusArea.clientHeight) + 'px'; - tableContainer.style.width = this.translationArea.clientWidth + 'px'; + tableContainer.style.height = (leftPanel.clientHeight - this.statusArea.clientHeight) + 'px'; + tableContainer.style.width = leftPanel.clientWidth + 'px'; this.setColumnWidths(); } @@ -892,61 +887,104 @@ class TranslationView { } buildRightSide(): void { - let horizontalSplit: ThreeHorizontalPanels = new ThreeHorizontalPanels(this.rightPanel); + let panelsContainer: HTMLDivElement = document.createElement('div'); + panelsContainer.classList.add('rightPaddedPanel'); + this.rightPanel.appendChild(panelsContainer); + + let config: any = { attributes: true, childList: false, subtree: false }; + let observer = new MutationObserver((mutationsList) => { + for (let mutation of mutationsList) { + if (mutation.type === 'attributes') { + panelsContainer.style.height = this.rightPanel.clientHeight + 'px'; + panelsContainer.style.width = this.rightPanel.clientWidth + 'px'; + } + } + }); + observer.observe(this.rightPanel, config); + + let horizontalSplit: ThreeHorizontalPanels = new ThreeHorizontalPanels(panelsContainer); + + this.createMemoryArea(horizontalSplit.topPanel()); + this.createTermsArea(horizontalSplit.bottomPanel()); + this.createMachineArea(horizontalSplit.centerPanel()); + } + + createMemoryArea(topPanel: HTMLDivElement): void { + this.memoryArea = topPanel; + + let panelsContainer: HTMLDivElement = document.createElement('div'); + panelsContainer.classList.add('topPaddedPanel'); + this.memoryArea.appendChild(panelsContainer); - this.memoryArea = horizontalSplit.topPanel(); let memoryTitle: HTMLDivElement = document.createElement('div'); memoryTitle.classList.add('titlepanel'); memoryTitle.innerText = 'Translation Memory'; - this.memoryArea.appendChild(memoryTitle); + panelsContainer.appendChild(memoryTitle); let matchesContainer: HTMLDivElement = document.createElement('div'); matchesContainer.classList.add('fill_width'); - this.memoryArea.appendChild(matchesContainer); + panelsContainer.appendChild(matchesContainer); this.tmMatches = new TmMatches(matchesContainer, this.projectId); let config: MutationObserverInit = { attributes: true, childList: false, subtree: false }; let observer: MutationObserver = new MutationObserver((mutationsList) => { for (let mutation of mutationsList) { if (mutation.type === 'attributes') { - matchesContainer.style.height = (this.memoryArea.clientHeight - memoryTitle.clientHeight) + 'px'; + matchesContainer.style.height = (panelsContainer.clientHeight - memoryTitle.clientHeight) + 'px'; } } }); observer.observe(this.memoryArea, config); + } + + createMachineArea(centerPanel: HTMLDivElement): void { + this.machineArea = centerPanel; + + let panelsContainer: HTMLDivElement = document.createElement('div'); + panelsContainer.classList.add('centerPaddedPanel'); + this.machineArea.appendChild(panelsContainer); - this.machineArea = horizontalSplit.centerPanel(); let machineTitle: HTMLDivElement = document.createElement('div'); machineTitle.classList.add('titlepanel'); machineTitle.innerText = 'Machine Translation'; - this.machineArea.appendChild(machineTitle); + panelsContainer.appendChild(machineTitle); let mtContainer: HTMLDivElement = document.createElement('div'); mtContainer.classList.add('fill_width'); - this.machineArea.appendChild(mtContainer); + panelsContainer.appendChild(mtContainer); this.mtMatches = new MtMatches(mtContainer, this.projectId); - observer = new MutationObserver((mutationsList) => { + let config: MutationObserverInit = { attributes: true, childList: false, subtree: false }; + let observer: MutationObserver = new MutationObserver((mutationsList) => { for (let mutation of mutationsList) { if (mutation.type === 'attributes') { - mtContainer.style.height = (this.machineArea.clientHeight - machineTitle.clientHeight) + 'px'; + mtContainer.style.height = (panelsContainer.clientHeight - machineTitle.clientHeight) + 'px'; } } }); observer.observe(this.machineArea, config); + } + + createTermsArea(bottomPanel: HTMLDivElement): void { + this.termsArea = bottomPanel; + + let panelsContainer: HTMLDivElement = document.createElement('div'); + panelsContainer.classList.add('bottomPaddedPanel'); + this.termsArea.appendChild(panelsContainer); - this.termsArea = horizontalSplit.bottomPanel(); let termsTitle: HTMLDivElement = document.createElement('div'); termsTitle.classList.add('titlepanel'); termsTitle.innerText = 'Terms'; - this.termsArea.appendChild(termsTitle); + panelsContainer.appendChild(termsTitle); + let termsContainer: HTMLDivElement = document.createElement('div'); termsContainer.classList.add('fill_width'); - this.termsArea.appendChild(termsContainer); + panelsContainer.appendChild(termsContainer); this.termsPanel = new TermsPanel(termsContainer, this.projectId); - observer = new MutationObserver((mutationsList) => { + let config: MutationObserverInit = { attributes: true, childList: false, subtree: false }; + let observer: MutationObserver = new MutationObserver((mutationsList) => { for (let mutation of mutationsList) { if (mutation.type === 'attributes') { - termsContainer.style.height = (this.termsArea.clientHeight - termsTitle.clientHeight) + 'px'; + termsContainer.style.height = (panelsContainer.clientHeight - termsTitle.clientHeight) + 'px'; } } }); diff --git a/ts/updates.ts b/ts/updates.ts index 2d59922..176811a 100644 --- a/ts/updates.ts +++ b/ts/updates.ts @@ -1,21 +1,14 @@ -/***************************************************************************** -Copyright (c) 2007-2021 - Maxprograms, http://www.maxprograms.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to compile, -modify and use the Software in its executable form without restrictions. - -Redistribution of this Software or parts of it in any form (source code or -executable binaries) requires prior written permission from Maxprograms. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*****************************************************************************/ +/******************************************************************************* + * Copyright (c) 2007-2021 Maxprograms. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/org/documents/epl-v10.html + * + * Contributors: + * Maxprograms - initial API and implementation + *******************************************************************************/ class Updates {