Added inference of Rocksim shock cords to try to be a little more predictive when a Rocksim file uses a buggy shock
cord from their component database.
Added an AttachedPartsHandler. This should automatically utilize future OR design functionality such as attaching
fins to a Transition with no changes required to the Rocksim parsing logic.
Fix behavior when cancelling a failure to open an Ork file. This had finished the activity when it was its own activity. Now it just cancels the dialog.
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.
kruland2607 [Sat, 30 Jun 2012 19:08:13 +0000 (19:08 +0000)]
Show events and times on the chart. The achartengine needs some work to get the labels in a better place. Enhance the SimulationSeriesDialog to allow selection of events.
kruland2607 [Thu, 28 Jun 2012 02:46:21 +0000 (02:46 +0000)]
Pulled in source for achartengine 1.0.0 because there are a number of bugs in it which are not being fixed. http://achartengine.googlecode.com/svn is original source.
kruland2607 [Wed, 27 Jun 2012 02:58:53 +0000 (02:58 +0000)]
Added threaded loader to ComponentPresetDatabase following the pattern in ThrustCurveMotorDatabase. Moved the wait into the background thread so the UI starts much faster. Changed the ConcurrentLoadingThrustCurveMotorSetDataBase implementation to have longer timeouts and wait in the background thread.
kruland2607 [Tue, 26 Jun 2012 18:30:06 +0000 (18:30 +0000)]
Refactored by moving the Simulations fragment and SimulationEditFragment from net.sf.openrocket.android.rocket to net.sf.openrocket.android.simulation.
kruland2607 [Mon, 25 Jun 2012 18:30:41 +0000 (18:30 +0000)]
Various fixes which should probably be broken into multiple commits:)
- Changed the way the ProgressDialog is dismissed from using some non-functional reflection code, to using a FragmentTransaction (which works)
- Added code which shows the save button only when the CurrentRocket is modified.
- Broke the save functionality into a Fragment with background Task so it is more reliable.
kruland2607 [Thu, 21 Jun 2012 19:10:06 +0000 (19:10 +0000)]
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.
bkuker [Wed, 20 Jun 2012 00:34:02 +0000 (00:34 +0000)]
Update to the latest 2.0 release candidate of JOGL (Build 57).
Move JOGL Libraries from lib/native to lib/jogl, which is less misleading.
Update .classpath and build.xml with new directory name.
kruland2607 [Mon, 18 Jun 2012 21:02:31 +0000 (21:02 +0000)]
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.
kruland2607 [Fri, 15 Jun 2012 14:13:04 +0000 (14:13 +0000)]
Tweak the main layout for Honeycomb and ICS devices. Added custom layout for these devices running on non-xlarge screens which pushes the title text down below the action bar. Fixed the style for ICS and Honeycomb to properly hide the actionbar but leave the overflow menu button.
kruland2607 [Wed, 13 Jun 2012 16:37:18 +0000 (16:37 +0000)]
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.
kruland2607 [Wed, 13 Jun 2012 16:28:03 +0000 (16:28 +0000)]
Make some usability improvements to the internal file browser. Don't cd when changing the preferred base directory (touching star). Don't put star on root & .. directories.
bkuker [Mon, 11 Jun 2012 20:25:41 +0000 (20:25 +0000)]
JOGL Based support for a 3D view of the rocket.
Change to RocketPanel to add 3D option.
Change to build process to use a Jar-in-Jar technique, not Fat Jar, using the Eclipse projects jar-in-jar loader. (Does not require eclipse!)
richardgraham [Mon, 11 Jun 2012 04:47:49 +0000 (04:47 +0000)]
- Implemented copying of custom expressions to other simulations in expression builder dialog. Note the small changes to various files are to allow simulations access to parent document.
- Switched to unicode char escapes
- Removed dynamic setting of flightdatatype priority
- Now hiding up down arrows in custom expression pane when unusable
- Localized custom expression operator discriptions.
kruland2607 [Wed, 6 Jun 2012 18:03:43 +0000 (18:03 +0000)]
Change OpenRocketComponentSaver unmarshal function to return the whole OpenRocketComponentDTO instead of just the contained components. This gives the ComponentPresetEditor a change to grab the Materials in the file for use in the ui.
kruland2607 [Wed, 6 Jun 2012 12:09:39 +0000 (12:09 +0000)]
Change the semantics of MaterialHolder.getXXXMaterial( Material ), instead of returning the material used as the argument if the material is not in the map, it returns null. This make the methods more similar to standard hash collections.
kruland2607 [Wed, 6 Jun 2012 12:07:18 +0000 (12:07 +0000)]
Explicitly create the writerThread to be an executor with an unbounded linked blocking queue. I have sometimes seen rejected exceptions (which should never happen) using the Executors.newSingleThreadExecutor which makes me doubt the documentation.
kruland2607 [Tue, 5 Jun 2012 18:13:20 +0000 (18:13 +0000)]
Fixed two bugs. When the data in the table was sorted, the incorrect row in the model was being manipulated. Fixed the problem where the derived materials (based on component's mass value) were being placed in the materials list.
bkuker [Mon, 4 Jun 2012 22:50:16 +0000 (22:50 +0000)]
Delete file with problematic name, "staged."
It can not exist on windows while the identical file "staged" also exists.
This file is unreferenced.
It must be here by mistake.
kruland2607 [Mon, 4 Jun 2012 19:02:56 +0000 (19:02 +0000)]
Make separate method for notifySimsChanged since this is useful without creating or deleting a simulation (for example when a simulation is done executing).
richardgraham [Mon, 4 Jun 2012 03:08:29 +0000 (03:08 +0000)]
Fixed issue where symbols / units for FlightDataTypes would not be defined after loading a .ork file with data defined. Data types now figured out from the name when loading .ork file.
Also changed the priority of the data types so that custom expressions show up first.