Kevin Ruland
e099a6264a
Merged changes from Release-12.09-redo tag.
2012-09-19 13:37:58 +00:00
Kevin Ruland
6a6f926e45
Rework the loading workflow to be more natural and fix some nasty bugs. Make the dialogs more localizable by extracting strings into resources.
2012-08-22 02:43:18 +00:00
Kevin Ruland
ebf2bdd5bd
Only show a few important events by default.
2012-08-10 21:13:41 +00:00
Kevin Ruland
2ad8310a3c
Have the SimulationPlotConfigDialog be populated with the currently selected items.
2012-08-10 20:56:38 +00:00
Kevin Ruland
65074713cc
The only way I found to get the exp4j classes to be built and included in the apk was to have it reside in the libs directory. Unfortunately this means it is committed twice in the repository now.
...
Added the CustomExpressionSimulationListener to the simulation in SimulationService.
Excluded OSXStartup from the build.
2012-08-09 15:55:13 +00:00
Kevin Ruland
a5c3c1ac76
Rework the CustomExpression evaluation to use SimulationListeners. Removed the OpenRocketDocument member variable from the Simulation object.
2012-08-08 02:24:40 +00:00
Kevin Ruland
2b802c2f7d
Make preset favorites per component type. That is, a single preset can be a favorite for Tube Couplers, but not be a favorite for Body Tubes.
2012-08-07 16:31:00 +00:00
Kevin Ruland
1eb8f3203f
Added way to delete motor configurations through long click in the configurations tab.
2012-07-25 21:26:40 +00:00
Kevin Ruland
e73c5500a5
Changed order of motors to be by total impulse. This seems like a more natural and understandable ordering given that designation may have leading numbers (CTI).
2012-07-25 21:25:44 +00:00
Kevin Ruland
009569cf74
Fix fence post bug which happens when a motor config is removed from the rocket while still used by a simulation.
2012-07-25 21:24:19 +00:00
Kevin Ruland
bf692096fd
Removed dead class.
2012-07-25 21:23:10 +00:00
Kevin Ruland
51f98b71aa
Froyo had troubles with the old table layout. Changed instead to the same layout style as used in the simulation edit/run dialog. Added a localizable title string.
2012-07-19 14:44:39 +00:00
Kevin Ruland
5603cda3ce
Explicitly allow the dialog to be dismissed with touching outside.
2012-07-19 14:40:57 +00:00
Kevin Ruland
4d7a585ca7
Froyo doesn't support SharedPreferences.Editor.apply(). Need to use commit() instead.
2012-07-19 14:38:53 +00:00
Kevin Ruland
056f28e21f
Sort on the group query.
2012-07-18 17:56:48 +00:00
Kevin Ruland
5c854fd4c1
Fix url problems - bad host name, and bad servlet path - introduced by froyo merge.
2012-07-18 15:48:51 +00:00
Kevin Ruland
19b33d1583
Added a comment about Froyo's troubles.
2012-07-18 14:59:24 +00:00
Kevin Ruland
c6a9f17179
Merge branches/froyo_12.03 to head.
2012-07-18 14:42:27 +00:00
Kevin Ruland
ae8e9c9d13
Only auto save when saving is enabled (to prevent the possible race condition).
2012-07-13 14:04:46 +00:00
Kevin Ruland
bde3ea3701
Revised the notification mechanism for background processes (simulations) to use LocalBroadcastManager instead of the Handler tricks.
2012-07-10 03:40:44 +00:00
Kevin Ruland
568b7aeb5d
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.
2012-07-10 03:08:03 +00:00
Kevin Ruland
d7d647d47d
Implement a primitive thread safety mechanism to prohibit saving a rocket while simulation execution is pending.
2012-07-09 02:51:15 +00:00
Kevin Ruland
be947067d1
Removed unnecessary override.
2012-07-03 16:26:01 +00:00
Kevin Ruland
0691153b51
If the filename doesn't end in .ork, append .ork to indicate the saved file is ork format. This application doesn't attempt to save Rocsim files.
2012-07-03 02:55:46 +00:00
Kevin Ruland
dcb08b005b
If the simulation doesn't have data, open the edit dialog instead of issuing a warning.
2012-07-03 02:54:54 +00:00
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
b835dd08b4
Added dialog to load new file when the current file is modified.
2012-07-02 02:15:34 +00:00
Kevin Ruland
cb601364d0
Some more renaming of menu options and strings so they are more consistent.
2012-07-01 02:06:32 +00:00
Kevin Ruland
a219eb0409
Removed unused import.
2012-06-30 19:27:48 +00:00
Kevin Ruland
75d6440892
Localize some strings.
2012-06-30 19:24:48 +00:00
Kevin Ruland
bb64a32d34
Refactor. Rename SimulationSeriesDialog to SimulationPlotConfigDialog. Change names of layouts accordingly.
2012-06-30 19:16:34 +00:00
Kevin Ruland
c5122ebef5
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.
2012-06-30 19:08:13 +00:00
Kevin Ruland
3f957e56d3
Removed unnecessary override.
2012-06-30 19:03:04 +00:00
Kevin Ruland
9eed1653fb
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.
2012-06-27 02:58:53 +00:00
Kevin Ruland
5aa691c2ab
Refactored by moving the Simulations fragment and SimulationEditFragment from net.sf.openrocket.android.rocket to net.sf.openrocket.android.simulation.
2012-06-26 18:30:06 +00:00
Kevin Ruland
5ae62a2db2
Implement color indicators (green, yellow, red) for the Simulation Status in the Simulations list. This makes the list more like that on OR desktop.
2012-06-26 18:26:06 +00:00
Kevin Ruland
45838387bc
After saving, invalidate the menu so the save icon disappears.
2012-06-26 18:11:43 +00:00
Kevin Ruland
294aa177c4
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.
2012-06-25 18:30:41 +00:00
Kevin Ruland
bbec3f7dbd
2012-06-25 02:28:05 +00:00
Kevin Ruland
3390179658
Use a drop down resource so the items are a little easier to select.
2012-06-24 22:48:09 +00:00
Kevin Ruland
98674f5917
Mark all stages active in the default configuration so the length gets computed correctly.
2012-06-24 22:47:33 +00:00
Kevin Ruland
b72e425d6d
Use the new conversion utilities for delays. This fixes the problems with Plugged delays showing up as large numbers.
2012-06-22 02:12:48 +00:00
Kevin Ruland
513e5ed9d1
Add some additional utilities for working with delays.
2012-06-22 02:11:37 +00:00
Kevin Ruland
1b9f514dc7
Don't allow editing the "no motor" configuration since it cannot be editied.
2012-06-22 02:09:38 +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
eb1c257ab5
When saving the ork file, save all the simulation data.
2012-06-18 20:59:34 +00:00
Kevin Ruland
64cb6b3040
Fire the simulation changed message when resumed so any background simulation execution results are displayed.
2012-06-18 02:51:04 +00:00
Kevin Ruland
bdb8298979
Change around the handling for navigation from the action bar.
2012-06-18 01:48:17 +00:00
Kevin Ruland
cfac7dcc81
Fix the delay entry handling.
2012-06-18 01:47:21 +00:00
Kevin Ruland
0b6810946c
moveOnToViewer() actually calls finish(). So just return here.
2012-06-15 14:10:39 +00:00