]> gitweb.fperrin.net Git - GpsPrune.git/blob - tim/prune/FunctionLibrary.java
Version 11, August 2010
[GpsPrune.git] / tim / prune / FunctionLibrary.java
1 package tim.prune;
2
3 import tim.prune.correlate.PhotoCorrelator;
4 import tim.prune.function.*;
5 import tim.prune.function.charts.Charter;
6 import tim.prune.function.compress.CompressTrackFunction;
7 import tim.prune.function.distance.DistanceFunction;
8 import tim.prune.function.edit.PointNameEditor;
9 import tim.prune.function.gpsies.GetGpsiesFunction;
10 import tim.prune.function.gpsies.UploadGpsiesFunction;
11 import tim.prune.function.srtm.LookupSrtmFunction;
12 import tim.prune.load.GpsLoader;
13 import tim.prune.save.GpsSaver;
14 import tim.prune.save.GpxExporter;
15 import tim.prune.save.KmlExporter;
16 import tim.prune.save.PovExporter;
17 import tim.prune.save.SvgExporter;
18
19 /**
20  * Class to provide access to functions
21  */
22 public abstract class FunctionLibrary
23 {
24         public static GenericFunction FUNCTION_GPXEXPORT = null;
25         public static GenericFunction FUNCTION_KMLEXPORT = null;
26         public static PovExporter FUNCTION_POVEXPORT     = null;
27         public static SvgExporter FUNCTION_SVGEXPORT     = null;
28         public static GenericFunction FUNCTION_GPSLOAD  = null;
29         public static GenericFunction FUNCTION_GPSSAVE  = null;
30         public static GenericFunction FUNCTION_SAVECONFIG  = null;
31         public static GenericFunction FUNCTION_EDIT_WAYPOINT_NAME = null;
32         public static RearrangeWaypointsFunction FUNCTION_REARRANGE_WAYPOINTS = null;
33         public static GenericFunction FUNCTION_REARRANGE_PHOTOS = null;
34         public static GenericFunction FUNCTION_COMPRESS = null;
35         public static GenericFunction FUNCTION_LOOKUP_SRTM = null;
36         public static GenericFunction FUNCTION_ADD_TIME_OFFSET  = null;
37         public static GenericFunction FUNCTION_ADD_ALTITUDE_OFFSET  = null;
38         public static GenericFunction FUNCTION_CONVERT_NAMES_TO_TIMES  = null;
39         public static GenericFunction FUNCTION_DELETE_FIELD_VALUES  = null;
40         public static GenericFunction FUNCTION_PASTE_COORDINATES = null;
41         public static GenericFunction FUNCTION_FIND_WAYPOINT = null;
42         public static GenericFunction FUNCTION_DUPLICATE_POINT = null;
43         public static GenericFunction FUNCTION_CORRELATE_PHOTOS = null;
44         public static GenericFunction FUNCTION_ROTATE_PHOTO_LEFT = null;
45         public static GenericFunction FUNCTION_ROTATE_PHOTO_RIGHT = null;
46         public static GenericFunction FUNCTION_IGNORE_EXIF_THUMB = null;
47         public static GenericFunction FUNCTION_CHARTS = null;
48         public static GenericFunction FUNCTION_3D     = null;
49         public static GenericFunction FUNCTION_DISTANCES  = null;
50         public static GenericFunction FUNCTION_FULL_RANGE_DETAILS = null;
51         public static GenericFunction FUNCTION_GET_GPSIES = null;
52         public static GenericFunction FUNCTION_UPLOAD_GPSIES = null;
53         public static GenericFunction FUNCTION_SET_MAP_BG = null;
54         public static GenericFunction FUNCTION_SET_DISK_CACHE = null;
55         public static GenericFunction FUNCTION_SET_PATHS  = null;
56         public static GenericFunction FUNCTION_SET_KMZ_IMAGE_SIZE = null;
57         public static GenericFunction FUNCTION_SET_COLOURS = null;
58         public static GenericFunction FUNCTION_SET_LANGUAGE = null;
59         public static GenericFunction FUNCTION_HELP   = null;
60         public static GenericFunction FUNCTION_SHOW_KEYS = null;
61         public static GenericFunction FUNCTION_ABOUT  = null;
62         public static GenericFunction FUNCTION_CHECK_VERSION  = null;
63
64
65         /**
66          * Initialise library of functions
67          * @param inApp App object to give to functions
68          */
69         public static void initialise(App inApp)
70         {
71                 FUNCTION_GPXEXPORT = new GpxExporter(inApp);
72                 FUNCTION_KMLEXPORT = new KmlExporter(inApp);
73                 FUNCTION_POVEXPORT = new PovExporter(inApp);
74                 FUNCTION_SVGEXPORT = new SvgExporter(inApp);
75                 FUNCTION_GPSLOAD   = new GpsLoader(inApp);
76                 FUNCTION_GPSSAVE   = new GpsSaver(inApp);
77                 FUNCTION_SAVECONFIG = new SaveConfig(inApp);
78                 FUNCTION_EDIT_WAYPOINT_NAME = new PointNameEditor(inApp);
79                 FUNCTION_REARRANGE_WAYPOINTS = new RearrangeWaypointsFunction(inApp);
80                 FUNCTION_REARRANGE_PHOTOS = new RearrangePhotosFunction(inApp);
81                 FUNCTION_COMPRESS = new CompressTrackFunction(inApp);
82                 FUNCTION_LOOKUP_SRTM = new LookupSrtmFunction(inApp);
83                 FUNCTION_ADD_TIME_OFFSET = new AddTimeOffset(inApp);
84                 FUNCTION_ADD_ALTITUDE_OFFSET = new AddAltitudeOffset(inApp);
85                 FUNCTION_CONVERT_NAMES_TO_TIMES = new ConvertNamesToTimes(inApp);
86                 FUNCTION_DELETE_FIELD_VALUES = new DeleteFieldValues(inApp);
87                 FUNCTION_PASTE_COORDINATES = new PasteCoordinates(inApp);
88                 FUNCTION_FIND_WAYPOINT = new FindWaypoint(inApp);
89                 FUNCTION_DUPLICATE_POINT = new DuplicatePoint(inApp);
90                 FUNCTION_CORRELATE_PHOTOS = new PhotoCorrelator(inApp);
91                 FUNCTION_ROTATE_PHOTO_LEFT = new RotatePhoto(inApp, false);
92                 FUNCTION_ROTATE_PHOTO_RIGHT = new RotatePhoto(inApp, true);
93                 FUNCTION_IGNORE_EXIF_THUMB = new IgnoreExifThumb(inApp);
94                 FUNCTION_CHARTS = new Charter(inApp);
95                 FUNCTION_3D     = new ShowThreeDFunction(inApp);
96                 FUNCTION_DISTANCES = new DistanceFunction(inApp);
97                 FUNCTION_FULL_RANGE_DETAILS = new FullRangeDetails(inApp);
98                 FUNCTION_GET_GPSIES = new GetGpsiesFunction(inApp);
99                 FUNCTION_UPLOAD_GPSIES = new UploadGpsiesFunction(inApp);
100                 FUNCTION_SET_MAP_BG = new SetMapBgFunction(inApp);
101                 FUNCTION_SET_DISK_CACHE = new DiskCacheConfig(inApp);
102                 FUNCTION_SET_PATHS = new SetPathsFunction(inApp);
103                 FUNCTION_SET_KMZ_IMAGE_SIZE = new SetKmzImageSize(inApp);
104                 FUNCTION_SET_COLOURS = new SetColours(inApp);
105                 FUNCTION_SET_LANGUAGE = new SetLanguage(inApp);
106                 FUNCTION_HELP   = new HelpScreen(inApp);
107                 FUNCTION_SHOW_KEYS = new ShowKeysScreen(inApp);
108                 FUNCTION_ABOUT  = new AboutScreen(inApp);
109                 FUNCTION_CHECK_VERSION= new CheckVersionScreen(inApp);
110         }
111 }