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