7 Commits

Author SHA1 Message Date
Kevin Ruland
fed956e2b0 Implement autosave rockets. Controlled by preference. When preference is set, the rocket is automatically saved when simulation changed events are fired. This is really too often since addSimulation should not cause rocket to be saved. 2012-07-02 21:40:14 +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
ff05c2b499 Rework the filebrowser some to add some functionality. A "hidden" preference now stores the default directory to open. This directory is marked with a gold star. To change the default directory, you touch on a star. Added icon for directories. Added preference to control if only ork files are shown in the file browser. Changed the sort order to do the fancy "logical" sort to compare number components numerically. 2012-02-14 18:33:31 +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
6e849bcf30 Add preference selection for Distance and Velocity. 2012-01-14 02:42:21 +00:00
Kevin Ruland
10dd89f569 Change OpenRocketViewer to tab layout with three tabs: overview, components, and simulations. Overview is populated with some high level data about the rocket - length, mass, cg, etc. Components will be populated with the tree of rocket components. Simulations contains the list of stored simulations.
Added length and mass preferences and wired into the application object initialization of the OpenRocket UnitGroup statics.

There is currently an issue in the Simulation list in that the motors are not being displayed.  This is because currently the motor dao is not wired into the application.
2012-01-08 00:53:35 +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