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
Kevin Ruland
a896c5a87c
Register the handler object in onResume so the application can restart correctly.
2012-06-15 14:09:55 +00:00
Kevin Ruland
0461ea5ced
Rework the loader activity base class so it is compatible with ICS.
2012-06-14 13:17:55 +00:00
Kevin Ruland
8b66af7441
Changed due to Simulation api change.
2012-06-13 16:41:02 +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
72ce4f8468
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.
2012-06-13 16:28:03 +00:00
Kevin Ruland
274f646124
Tweak the style for the main and loader activities so the action bar is transparent expect for the overflow button. This looks much nicer on ICS.
2012-06-05 13:57:37 +00:00
Kevin Ruland
ad265733bd
Change to inherit from Sherlock classes.
2012-06-05 13:47:15 +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
63290b98e4
Use sendMessage instead of dispatchMessage so the message can be sent from a different thread.
2012-06-04 19:12:57 +00:00
Kevin Ruland
5faec59816
Make separate method for notifySimsChanged since this is useful without creating or deleting a simulation (for example when a simulation is done executing).
2012-06-04 19:02:56 +00:00
Kevin Ruland
bedcf4ecb5
Fix a bug where the motor configuration was not being pulled correctly. It is stored in the options.
2012-06-04 18:59:45 +00:00
Kevin Ruland
d103ac1d05
Refactor the RocketDocument and corresponding data and methods out of Application and into CurrentRocketHolder and CurrentRocket.
2012-06-02 04:47:18 +00:00
Kevin Ruland
cb8faf376e
Checkpoint commit with many different changes. Made the Configuration and Simulation "add" buttons to be action bar items. Added Handler to act as a listener mechansims so the OpenRocketViewer can update fragments when the rocket is modified. Added MotorConfigSpinner as custom View which is more usable than MotorConfigSpinnerAdapter.
2012-06-02 04:06:02 +00:00
Kevin Ruland
905c7f740a
Pull TreeListView from main source and include from library instead.
2012-05-27 12:57:57 +00:00
Kevin Ruland
8d8ef35835
Remove unused imports.
2012-05-26 01:50:14 +00:00
Kevin Ruland
a6a5eff5b6
Simplify the spinner styling.
2012-05-25 20:45:13 +00:00
Kevin Ruland
9a54fbdb88
Correctly change configurations without changing the default configuration id. Also, select in the spinner the default configuration when constructed.
2012-05-25 18:41:53 +00:00
Kevin Ruland
e754dab0ca
Variety of changes based on suggestions from ADT Lint. Includes removing extra drawables left about after switching to ActionBarSherlock. Layout changes for speed improvements. etc.
2012-05-23 21:20:46 +00:00
Kevin Ruland
743ba0f57d
Change to using ActionBarSherlock for the action bar compatibility.
2012-05-23 19:45:27 +00:00
Kevin Ruland
02d9954ff1
Added Configuration tab to the rocket viewer which displays all the motor configurations and allows one to create a new motor configuration.
2012-05-22 19:34:11 +00:00
Kevin Ruland
b9594c5ef8
Comment on the bug which clears the default configuration for a model.
2012-05-22 18:37:25 +00:00