Now called Viewer!

master
Marcus Gosselin 2014-10-08 17:32:45 -04:00
parent d7d116578d
commit ad0483829b
4 changed files with 219 additions and 66 deletions

264
.gitignore vendored
View File

@ -1,59 +1,215 @@
*.class #################
## Eclipse
# Mobile Tools for Java (J2ME) #################
.mtj.tmp/
*.pydevproject
# Package Files # .project
*.jar .metadata
*.war bin/
*.ear tmp/
*.tmp
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml *.bak
hs_err_pid* *.swp
*~.nib
# ========================= local.properties
# Operating System Files .classpath
# ========================= .settings/
.loadpath
# OSX
# ========================= # External tool builders
.externalToolBuilders/
# Locally stored "Eclipse launch configurations"
*.launch
# CDT-specific
.cproject
# PDT-specific
.buildpath
#################
## Visual Studio
#################
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.sln.docstates
# Build results
[Dd]ebug/
[Rr]elease/
x64/
build/
[Bb]in/
[Oo]bj/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.log
*.scc
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile
# Visual Studio profiler
*.psess
*.vsp
*.vspx
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# NCrunch
*.ncrunch*
.*crunch*.local.xml
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.Publish.xml
*.pubxml
# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
#packages/
# Windows Azure Build Output
csx
*.build.csdef
# Windows Store app package directory
AppPackages/
# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.[Pp]ublish.xml
*.pfx
*.publishsettings
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
# SQL Server files
App_Data/*.mdf
App_Data/*.ldf
#############
## Windows detritus
#############
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Mac crap
.DS_Store .DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails #############
._* ## Python
#############
# Files that might appear on external disk *.py[co]
.Spotlight-V100
.Trashes
# Directories potentially created on remote AFP share # Packages
.AppleDB *.egg
.AppleDesktop *.egg-info
Network Trash Folder dist/
Temporary Items build/
.apdisk eggs/
parts/
# Windows var/
# ========================= sdist/
develop-eggs/
# Windows image file caches .installed.cfg
Thumbs.db
ehthumbs.db # Installer logs
pip-log.txt
# Folder config file
Desktop.ini # Unit test / coverage reports
.coverage
# Recycle Bin used on file shares .tox
$RECYCLE.BIN/
#Translations
# Windows Installer files *.mo
*.cab
*.msi #Mr Developer
*.msm .mr.developer.cfg
*.msp

View File

@ -67,10 +67,7 @@ public class Item {
thumbnail = (getScaledImageFill(image, 80, 80)); thumbnail = (getScaledImageFill(image, 80, 80));
path = file.getAbsolutePath(); path = file.getAbsolutePath();
// discard it as it won't fit the screen.
if (!(((double) image.getWidth() / image.getHeight()) <= (4 / 3d))) {
seemsLegit = false;
}
name = ""; name = "";

View File

@ -1,4 +1,4 @@
import MAndApps.Engine; import MAndEngine.Engine;
public class Main { public class Main {
@ -8,7 +8,7 @@ public class Main {
public Main() { public Main() {
Engine engine = new Engine(new String[] {"Settings"}, false); Engine engine = new Engine(new String[] {"Viewer"}, false);
engine.run(); engine.run();
} }
} }

View File

@ -1,6 +1,6 @@
import static MAndApps.Engine.ANIMATION_CONSTANT; import static MAndEngine.Engine.ANIMATION_CONSTANT;
import java.awt.AlphaComposite; import java.awt.AlphaComposite;
import java.awt.Color; import java.awt.Color;
@ -10,12 +10,12 @@ import java.awt.event.KeyEvent;
import java.io.File; import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
import MAndApps.AppHelper; import MAndEngine.AppHelper;
import MAndApps.BasicApp; import MAndEngine.BasicApp;
import MAndApps.Engine; import MAndEngine.Engine;
import MAndApps.Variable; import MAndEngine.Variable;
public class Settings implements BasicApp { public class Viewer implements BasicApp {
private static final int WIDTH = 800, HEIGHT = 600; private static final int WIDTH = 800, HEIGHT = 600;