diff --git a/.gitignore b/.gitignore index d395e98..b9d6bd9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,59 +1,215 @@ -*.class - -# Mobile Tools for Java (J2ME) -.mtj.tmp/ - -# Package Files # -*.jar -*.war -*.ear - -# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml -hs_err_pid* - -# ========================= -# Operating System Files -# ========================= - -# OSX -# ========================= - +################# +## Eclipse +################# + +*.pydevproject +.project +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.classpath +.settings/ +.loadpath + +# 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 -.AppleDouble -.LSOverride -# Icon must end with two \r -Icon -# Thumbnails -._* +############# +## Python +############# -# Files that might appear on external disk -.Spotlight-V100 -.Trashes +*.py[co] -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk - -# Windows -# ========================= - -# Windows image file caches -Thumbs.db -ehthumbs.db - -# Folder config file -Desktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Windows Installer files -*.cab -*.msi -*.msm -*.msp +# 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 diff --git a/src/Item.java b/src/Item.java index 19026ce..9891eb7 100644 --- a/src/Item.java +++ b/src/Item.java @@ -67,10 +67,7 @@ public class Item { thumbnail = (getScaledImageFill(image, 80, 80)); path = file.getAbsolutePath(); - // discard it as it won't fit the screen. - if (!(((double) image.getWidth() / image.getHeight()) <= (4 / 3d))) { - seemsLegit = false; - } + name = ""; diff --git a/src/Main.java b/src/Main.java index 53ea722..16776de 100644 --- a/src/Main.java +++ b/src/Main.java @@ -1,4 +1,4 @@ -import MAndApps.Engine; +import MAndEngine.Engine; public class Main { @@ -8,7 +8,7 @@ public class Main { public Main() { - Engine engine = new Engine(new String[] {"Settings"}, false); + Engine engine = new Engine(new String[] {"Viewer"}, false); engine.run(); } } diff --git a/src/Settings.java b/src/Viewer.java similarity index 97% rename from src/Settings.java rename to src/Viewer.java index b00bbad..a301052 100644 --- a/src/Settings.java +++ b/src/Viewer.java @@ -1,6 +1,6 @@ -import static MAndApps.Engine.ANIMATION_CONSTANT; +import static MAndEngine.Engine.ANIMATION_CONSTANT; import java.awt.AlphaComposite; import java.awt.Color; @@ -10,12 +10,12 @@ import java.awt.event.KeyEvent; import java.io.File; import java.util.ArrayList; -import MAndApps.AppHelper; -import MAndApps.BasicApp; -import MAndApps.Engine; -import MAndApps.Variable; +import MAndEngine.AppHelper; +import MAndEngine.BasicApp; +import MAndEngine.Engine; +import MAndEngine.Variable; -public class Settings implements BasicApp { +public class Viewer implements BasicApp { private static final int WIDTH = 800, HEIGHT = 600;