]> gitweb.fperrin.net Git - GpsPrune.git/blob - tim/prune/FunctionLibrary.java
Version 8, September 2009
[GpsPrune.git] / tim / prune / FunctionLibrary.java
1 package tim.prune;
2
3 import tim.prune.correlate.PhotoCorrelator;
4 import tim.prune.function.AboutScreen;
5 import tim.prune.function.AddAltitudeOffset;
6 import tim.prune.function.AddTimeOffset;
7 import tim.prune.function.CheckVersionScreen;
8 import tim.prune.function.FindWaypoint;
9 import tim.prune.function.HelpScreen;
10 import tim.prune.function.RearrangeWaypointsFunction;
11 import tim.prune.function.SaveConfig;
12 import tim.prune.function.SetKmzImageSize;
13 import tim.prune.function.SetMapBgFunction;
14 import tim.prune.function.ShowKeysScreen;
15 import tim.prune.function.ShowThreeDFunction;
16 import tim.prune.function.charts.Charter;
17 import tim.prune.function.compress.CompressTrackFunction;
18 import tim.prune.function.distance.DistanceFunction;
19 import tim.prune.function.edit.PointNameEditor;
20 import tim.prune.function.gpsies.GetGpsiesFunction;
21 import tim.prune.function.SetPathsFunction;
22 import tim.prune.load.GpsLoader;
23 import tim.prune.save.GpsSaver;
24 import tim.prune.save.GpxExporter;
25 import tim.prune.save.KmlExporter;
26 import tim.prune.save.PovExporter;
27
28 /**
29  * Class to provide access to functions
30  */
31 public abstract class FunctionLibrary
32 {
33         public static GenericFunction FUNCTION_GPXEXPORT = null;
34         public static GenericFunction FUNCTION_KMLEXPORT = null;
35         public static PovExporter FUNCTION_POVEXPORT     = null;
36         public static GenericFunction FUNCTION_GPSLOAD  = null;
37         public static GenericFunction FUNCTION_GPSSAVE  = null;
38         public static GenericFunction FUNCTION_SAVECONFIG  = null;
39         public static GenericFunction FUNCTION_EDIT_WAYPOINT_NAME = null;
40         public static RearrangeWaypointsFunction FUNCTION_REARRANGE_WAYPOINTS = null;
41         public static GenericFunction FUNCTION_COMPRESS = null;
42         public static GenericFunction FUNCTION_ADD_TIME_OFFSET  = null;
43         public static GenericFunction FUNCTION_ADD_ALTITUDE_OFFSET  = null;
44         public static GenericFunction FUNCTION_FIND_WAYPOINT = null;
45         public static GenericFunction FUNCTION_CORRELATE_PHOTOS = null;
46         public static GenericFunction FUNCTION_CHARTS = null;
47         public static GenericFunction FUNCTION_3D     = null;
48         public static GenericFunction FUNCTION_DISTANCES  = null;
49         public static GenericFunction FUNCTION_GET_GPSIES = null;
50         public static GenericFunction FUNCTION_SET_MAP_BG = null;
51         public static GenericFunction FUNCTION_SET_PATHS  = null;
52         public static GenericFunction FUNCTION_SET_KMZ_IMAGE_SIZE = null;
53         public static GenericFunction FUNCTION_HELP   = null;
54         public static GenericFunction FUNCTION_SHOW_KEYS = null;
55         public static GenericFunction FUNCTION_ABOUT  = null;
56         public static GenericFunction FUNCTION_CHECK_VERSION  = null;
57
58
59         /**
60          * Initialise library of functions
61          * @param inApp App object to give to functions
62          */
63         public static void initialise(App inApp)
64         {
65                 FUNCTION_GPXEXPORT = new GpxExporter(inApp);
66                 FUNCTION_KMLEXPORT = new KmlExporter(inApp);
67                 FUNCTION_POVEXPORT = new PovExporter(inApp);
68                 FUNCTION_GPSLOAD   = new GpsLoader(inApp);
69                 FUNCTION_GPSSAVE   = new GpsSaver(inApp);
70                 FUNCTION_SAVECONFIG = new SaveConfig(inApp);
71                 FUNCTION_EDIT_WAYPOINT_NAME = new PointNameEditor(inApp);
72                 FUNCTION_REARRANGE_WAYPOINTS = new RearrangeWaypointsFunction(inApp);
73                 FUNCTION_COMPRESS = new CompressTrackFunction(inApp);
74                 FUNCTION_ADD_TIME_OFFSET = new AddTimeOffset(inApp);
75                 FUNCTION_ADD_ALTITUDE_OFFSET = new AddAltitudeOffset(inApp);
76                 FUNCTION_FIND_WAYPOINT = new FindWaypoint(inApp);
77                 FUNCTION_CORRELATE_PHOTOS = new PhotoCorrelator(inApp);
78                 FUNCTION_CHARTS = new Charter(inApp);
79                 FUNCTION_3D     = new ShowThreeDFunction(inApp);
80                 FUNCTION_DISTANCES = new DistanceFunction(inApp);
81                 FUNCTION_GET_GPSIES = new GetGpsiesFunction(inApp);
82                 FUNCTION_SET_MAP_BG = new SetMapBgFunction(inApp);
83                 FUNCTION_SET_PATHS = new SetPathsFunction(inApp);
84                 FUNCTION_SET_KMZ_IMAGE_SIZE = new SetKmzImageSize(inApp);
85                 FUNCTION_HELP   = new HelpScreen(inApp);
86                 FUNCTION_SHOW_KEYS = new ShowKeysScreen(inApp);
87                 FUNCTION_ABOUT  = new AboutScreen(inApp);
88                 FUNCTION_CHECK_VERSION= new CheckVersionScreen(inApp);
89         }
90 }