Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions SnapTea.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="teavm-jso" />
<orderEntry type="module" module-name="teavm-jso-apis" />
<orderEntry type="module" module-name="SnapKit" />
</component>
</module>
43 changes: 43 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.reportmill</groupId>
<artifactId>SnapTea</artifactId>
<version>1.0-SNAPSHOT</version>

<dependencies>
<dependency>
<groupId>org.teavm</groupId>
<artifactId>teavm-jso</artifactId>
<version>1.1.1-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.teavm</groupId>
<artifactId>teavm-jso-apis</artifactId>
<version>1.1.1-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>com.reportmill</groupId>
<artifactId>SnapKit</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
File renamed without changes.
12 changes: 11 additions & 1 deletion src/snaptea/TVEnv.java → src/main/java/snaptea/TVEnv.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,17 @@ public void remove(String aKey) { }

/** Returns an int value for given key. */
public int getInt(String aKey, int aDefault) { return aDefault; }


@Override
public float getFloat(String aKey, float aDefault) {
return 0;
}

@Override
public boolean getBoolean(String aKey, boolean aDefault) {
return false;
}

/** Returns the currently set prefs keys. */
public String[] getKeys() { return new String[0]; }

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package snaptea;
import org.teavm.jso.dom.html.*;
import org.teavm.jso.dom.xml.Element;
import org.teavm.jso.dom.xml.NodeList;
import snap.gfx.Insets;
import snap.util.*;
import snap.view.*;
Expand Down Expand Up @@ -70,8 +72,11 @@ public void hide()
// Add canvas
HTMLDocument doc = HTMLDocument.current();
HTMLBodyElement body = doc.getBody();
body.removeChild(canvas);


if(doc.getElementsByTagName("canvas").getLength() > 1){
body.removeChild(canvas);
}

// Add to screen
TVScreen screen = TVScreen.get();
screen.hideWindow(_win);
Expand Down
File renamed without changes.
File renamed without changes.