Skip to content

Commit

Permalink
Reimplement bspinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
rihi committed Aug 31, 2023
1 parent 88779ef commit 713ad1a
Show file tree
Hide file tree
Showing 30 changed files with 1,595 additions and 2,923 deletions.
2 changes: 2 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@ BSPSource uses the following libraries:

* [Apache Commons Compress](http://commons.apache.org/compress/)
* [picocli](https://github.com/remkop/picocli)
* [FlatLaf](https://github.com/JFormDesigner/FlatLaf)
* [jSystemThemeDetector](https://github.com/Dansoftowner/jSystemThemeDetector)

which are licensed under the [Apache License version 2.0](http://www.apache.org/licenses/LICENSE-2.0).
16 changes: 16 additions & 0 deletions bspsrc-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,26 @@
<artifactId>ioutils</artifactId>
</dependency>

<!-- Needed for jSystemThemeDetector which uses slf4j-->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
</dependency>

<dependency>
<groupId>info.picocli</groupId>
<artifactId>picocli</artifactId>
</dependency>

<dependency>
<groupId>com.formdev</groupId>
<artifactId>flatlaf</artifactId>
</dependency>

<dependency>
<groupId>com.github.Dansoftowner</groupId>
<artifactId>jSystemThemeDetector</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
2 changes: 1 addition & 1 deletion bspsrc-app/scripts/bspinfo.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@echo off
start <java_path>javaw -cp %~dp0\bspsrc.jar info.ata4.bspsrc.app.info.gui.BspInfoFrame %*
start <java_path>javaw -cp %~dp0\bspsrc.jar info.ata4.bspsrc.app.info.BspInfo %*
2 changes: 1 addition & 1 deletion bspsrc-app/scripts/bspinfo.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
BASEDIR=$(dirname "$0")
<java_path>java -cp "$BASEDIR/bspsrc.jar" info.ata4.bspsrc.app.info.gui.BspInfoFrame $*
<java_path>java -cp "$BASEDIR/bspsrc.jar" info.ata4.bspsrc.app.info.BspInfo $*
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
*/
package info.ata4.bspsrc.app.info.gui;
package info.ata4.bspsrc.app.info;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
*/
package info.ata4.bspsrc.app.info.gui;
package info.ata4.bspsrc.app.info;

import info.ata4.bspsrc.lib.BspFile;
import info.ata4.bspsrc.lib.lump.AbstractLump;
Expand Down
27 changes: 27 additions & 0 deletions bspsrc-app/src/main/java/info/ata4/bspsrc/app/info/BspInfo.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package info.ata4.bspsrc.app.info;

import info.ata4.bspsrc.app.info.gui.BspInfoFrame;
import info.ata4.bspsrc.app.info.gui.models.BspInfoModel;
import info.ata4.bspsrc.app.util.GuiUtil;
import info.ata4.log.LogUtils;

import javax.swing.*;
import java.util.logging.Logger;

public class BspInfo {

private static final Logger L = LogUtils.getLogger();

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
LogUtils.configure();
GuiUtil.setupFlatlaf();

SwingUtilities.invokeLater(() -> {
var frame = new BspInfoFrame(new BspInfoModel());
frame.setVisible(true);
});
}
}
1,246 changes: 0 additions & 1,246 deletions bspsrc-app/src/main/java/info/ata4/bspsrc/app/info/gui/BspInfoFrame.form

This file was deleted.

Loading

0 comments on commit 713ad1a

Please sign in to comment.