mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
Add GPL version 3 license text to About dialog.
This commit is contained in:
@@ -82,12 +82,24 @@ public class HelpMenuPlugin implements IPlugIn {
|
||||
@Override
|
||||
public void processMessage(EventType eventType, Object... params) {}
|
||||
|
||||
|
||||
private static final String LICENSE_TEXT = "<p>This program is free software: you can redistribute it and/or modify" +
|
||||
" it under the terms of the GNU General Public License as published by" +
|
||||
" the Free Software Foundation, either version 3 of the License, or" +
|
||||
" (at your option) any later version.</p>" +
|
||||
"<p>This program is distributed in the hope that it will be useful," +
|
||||
" but WITHOUT ANY WARRANTY; without even the implied warranty of" +
|
||||
" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the" +
|
||||
" GNU General Public License for more details.</p>" +
|
||||
"<p>You should have received a copy of the GNU General Public License" +
|
||||
" along with this program. If not, see <a href=\"https://www.gnu.org/licenses\">https://www.gnu.org/licenses</a>.</p>";
|
||||
private AboutDialog getAboutDialog() {
|
||||
if (aboutDialog == null) {
|
||||
aboutDialog =
|
||||
DialogFactory.getInstance().createAboutDialog("DIY Layout Creator", IconLoader.IconLarge.getIcon(),
|
||||
plugInPort.getCurrentVersionNumber().toString(), "Branislav Stojkovic",
|
||||
"github.com/bancika/diy-layout-creator", "bancika@gmail.com", "");
|
||||
"github.com/bancika/diy-layout-creator", "bancika@gmail.com", LICENSE_TEXT);
|
||||
aboutDialog.setSize(aboutDialog.getSize().width + 30, aboutDialog.getSize().height + 200);
|
||||
}
|
||||
return aboutDialog;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user