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

230
.gitignore vendored
View File

@ -1,46 +1,173 @@
*.class #################
## Eclipse
#################
# Mobile Tools for Java (J2ME) *.pydevproject
.mtj.tmp/ .project
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath
# Package Files # # External tool builders
*.jar .externalToolBuilders/
*.war
*.ear
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml # Locally stored "Eclipse launch configurations"
hs_err_pid* *.launch
# ========================= # CDT-specific
# Operating System Files .cproject
# =========================
# OSX # PDT-specific
# ========================= .buildpath
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r #################
Icon ## Visual Studio
#################
# Thumbnails ## Ignore Visual Studio temporary files, build results, and
._* ## files generated by popular Visual Studio add-ons.
# Files that might appear on external disk # User-specific files
.Spotlight-V100 *.suo
.Trashes *.user
*.sln.docstates
# Directories potentially created on remote AFP share # Build results
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
# Windows [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 # Windows image file caches
Thumbs.db Thumbs.db
@ -52,8 +179,37 @@ Desktop.ini
# Recycle Bin used on file shares # Recycle Bin used on file shares
$RECYCLE.BIN/ $RECYCLE.BIN/
# Windows Installer files # Mac crap
*.cab .DS_Store
*.msi
*.msm
*.msp #############
## Python
#############
*.py[co]
# Packages
*.egg
*.egg-info
dist/
build/
eggs/
parts/
var/
sdist/
develop-eggs/
.installed.cfg
# Installer logs
pip-log.txt
# Unit test / coverage reports
.coverage
.tox
#Translations
*.mo
#Mr Developer
.mr.developer.cfg

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;