29 Commits

Author SHA1 Message Date
Kevin Ruland
e099a6264a Merged changes from Release-12.09-redo tag. 2012-09-19 13:37:58 +00:00
Kevin Ruland
a44e1c3df8 Use dialog style for the download form. 2012-07-18 17:58:19 +00:00
Kevin Ruland
c6a9f17179 Merge branches/froyo_12.03 to head. 2012-07-18 14:42:27 +00:00
Kevin Ruland
077147d5d1 Use a different approach to prevent ForceClose after the application has been put to sleep for a long period of time. Each of the fragments in the Viewer will do their setup in onResume instead of in onCreateView. Further, the ProgressDialogFragment used in the OpenRocketLoaderFragment now exposes a dismissAllowStateLoss method so the dialog can be dismissed if the application is put in the background while loading. 2012-06-21 19:10:06 +00:00
Kevin Ruland
4d7d6455c9 Mark the OpenRocketViewer activity as finishOnTaskLaunch so when the application is restarted from the launcher, it goes to the Main activity which can test if the application has been unloaded from memory. 2012-06-18 21:02:31 +00:00
Kevin Ruland
1f0bcf6730 Change the initial screen handling and add file load to OpenRocketViewer activity. The OpenRocketLoaderActivity is now used as a base class for the OpenRocketViewer and Main activities. These activities now share the code used for loading ork files. The OpenRocketLoaderActivity no longer is registered in the manifest because it is not a real activity any more. The OpenRocketViewer activity now has a menu item for "load" to load a new model. The Main activity uses finish() when it transfers control to the OpenRocketViewer thus removing it from the back stack. Further, if the Main activity detects that the Application contains a rocket, it will automatically forward to the OpenRocketViewer. 2012-06-13 16:37:18 +00:00
Kevin Ruland
0250f29f26 Added local foreground service which runs simulations. Wired into the SimulationEditFragment. 2012-06-04 19:16:27 +00:00
Kevin Ruland
62fe67faa0 Use the dialog theme for the file browser because it looks better on tablets. 2012-05-25 20:46:00 +00:00
Kevin Ruland
743ba0f57d Change to using ActionBarSherlock for the action bar compatibility. 2012-05-23 19:45:27 +00:00
Kevin Ruland
6185091ee1 Remove the android:debuggable attribute. This attribute will be automatically set correctly when one does a release build from eclipse. 2012-05-22 19:13:12 +00:00
Kevin Ruland
34b6151596 Turn off debugging and logging in preparation for a release. 2012-03-14 01:31:56 +00:00
Kevin Ruland
a5d982aa4e Have the star field visible under the actionbar in ICS and Honeycomb devices. 2012-03-14 01:29:43 +00:00
Kevin Ruland
0165840233 Failed to commit the AndroidManifest.xml when I changed the main and openrocketloader classes to use ActionBarFragmentActivity. 2012-02-26 00:27:14 +00:00
Kevin Ruland
0f7a05b95b Many style and navigation changes. Pulled in ActionBarCompat from Android sample sources to provide an action bar paradigm on pre-gingerbread devices. Changed the OpenRocket Viewer activity to use a viewpager with sliding tabs since it looks much nicer. Updated to the newest android-support-v4 jar. 2012-02-11 20:17:39 +00:00
Kevin Ruland
3f37586278 Rework the motor browser functionality to make it more tablet friendly. 2012-02-06 01:31:51 +00:00
Kevin Ruland
d8d9f499b7 Rewrite MotorBrowser to use a fragment for the list. This is the first step in making this portion of the application look and operate better on tables. 2012-01-30 03:48:42 +00:00
Kevin Ruland
90f2dcadfc Rewrite the simulation graph component. It is now implemented as a fragment with a menu to configure the serieses and display a list of the flight events.
SimulationChart now implements a flyweight pattern containing the simulationId so it can be serialized allows the os to pause the application and restore most of the state of the graph.  Currently the selected serieses are not persisted so the graph gets reset to the default.

The simulation view is operated in two different modes.  On tablets in landscape the graph appears in the right sidepane and the list on the left.  When a new simulation is selected, the old graph is pushed to the back stack.  When in portrait mode or on smaller sceens, the simluation graph is in a separate activity.
2012-01-26 15:36:15 +00:00
Kevin Ruland
0560556ba2 Removed the title bar from the OpenRocketLoaderActivity so it looks just like the main screen. 2012-01-26 01:02:58 +00:00
Kevin Ruland
27acc364ec Rename the class OpenRocketLoader to OpenRocketLoaderActivity to prevent confusion with the core's OpenRocketLoader. 2012-01-26 00:56:18 +00:00
Kevin Ruland
8603cbeff5 Various changes to android application. Separate the loading of an ork file into the OpenRocketLoader activity. Changed OpenRocketViewer to use Fragments for each of the tab contents. Added Component, Overview and Simulations fragments for the tabs in OpenRocketViewer. Modified the graphics on the UI. Have the PreferencesActivity pack the changed preferences into the application onStop(). 2012-01-22 02:44:17 +00:00
Kevin Ruland
966ab18b07 Added simple file browser functionality used when there are no applications installed to handle this task. 2012-01-13 21:02:12 +00:00
Kevin Ruland
4900b84551 Switch minimum sdk to 9 since OR core uses ArrayDeque which is only available in Android API 9. Note API 9 is Android 2.3 / Gingerbread, but there are no emulators available for this api version. 2012-01-12 19:41:16 +00:00
Kevin Ruland
16334ca53a Added couple of comments and executed eclipse's autoformat. 2012-01-11 14:54:00 +00:00
Kevin Ruland
41daafa8e3 Get rid of timed splash and display a better welcome screen. 2012-01-09 19:00:19 +00:00
Kevin Ruland
d1df3dd35f Change Simulation plotting functionality to use AChartEngine instead of AndroidPlot. AChartEngine has built in zoom and pan though they are currently not used (because they are a little buggy). AChartEngine supports mulitple series plotted on same graph. However, it does not support the plotting of events.
Removed the sliding drawer from the configuration.  Instead a new activity is launched containing the plot.
2012-01-06 03:12:27 +00:00
Kevin Ruland
e9fec4ea37 Fixup the intent filters for the OpenRocketViewer activity. It's not pretty but it was the only way I could find which would convince the file browser to show the OR icon with the file and be able to launch the activity correctly. 2012-01-04 05:30:50 +00:00
Kevin Ruland
0970409101 Added custom launcher icon for application. 2012-01-03 18:44:48 +00:00
Kevin Ruland
dc488e2f58 Checkpoint commit of android functionality. Application currently consists of simple Main activity which does nothing but allows for bootstrapping of debugger. In future Main activity will go away. OpenRocketViewer activity which loads an ork file and displays a list of the simulations. And Simulation activity which is used to plot simulation results.
Also included is a Motor sqlite database which is populated from thrustcurve downloads.  Includes primitive thrustcurve plotting system.  This will soon be wired into the openrocket application to supply motors for simulation execution.
2012-01-03 02:20:10 +00:00
Kevin Ruland
a10bfbe72d Added android project baggage. Using svn:external on the android directory for pulling in the main source directory ../src 2011-12-24 00:38:22 +00:00