]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/function/IgnoreExifThumb.java
Moved source into separate src directory due to popular request
[GpsPrune.git] / tim / prune / function / IgnoreExifThumb.java
diff --git a/tim/prune/function/IgnoreExifThumb.java b/tim/prune/function/IgnoreExifThumb.java
deleted file mode 100644 (file)
index 8b292e5..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-package tim.prune.function;
-
-import tim.prune.App;
-import tim.prune.DataSubscriber;
-import tim.prune.GenericFunction;
-import tim.prune.UpdateMessageBroker;
-import tim.prune.data.Photo;
-
-/**
- * Class to provide the function to disable the exif thumbnail
- * for the current photo so that the full image must be loaded
- */
-public class IgnoreExifThumb extends GenericFunction
-{
-       /**
-        * Constructor
-        * @param inApp application object for callback
-        */
-       public IgnoreExifThumb(App inApp)
-       {
-               super(inApp);
-       }
-
-       /** Get the name key */
-       public String getNameKey() {
-               return "function.ignoreexifthumb";
-       }
-
-       /**
-        * Begin the function
-        */
-       public void begin()
-       {
-               Photo photo = _app.getTrackInfo().getCurrentPhoto();
-               if (photo != null)
-               {
-                       // no undo necessary, no data being edited
-                       photo.setExifThumbnail(null);
-                       UpdateMessageBroker.informSubscribers(DataSubscriber.PHOTOS_MODIFIED);
-               }
-       }
-}