]> git.gag.com Git - debian/openrocket/commit
Rewrite the simulation graph component. It is now implemented as a fragment with...
authorkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Thu, 26 Jan 2012 15:36:15 +0000 (15:36 +0000)
committerkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Thu, 26 Jan 2012 15:36:15 +0000 (15:36 +0000)
commit49257616b7cb126b121c8c276644b6fc5c0c93b1
tree301b8b781b385f124bca2a4448b58f2cad00f3fc
parent3f87ece891926b66c69f749aa211747f79ed6590
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.

git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@376 180e2498-e6e9-4542-8430-84ac67f01cd8
15 files changed:
android/AndroidManifest.xml
android/res/layout-xlarge-land/openrocketviewer.xml [new file with mode: 0644]
android/res/layout/simulation_detail.xml [deleted file]
android/res/layout/simulation_event_dialog.xml [new file with mode: 0644]
android/res/layout/simulation_graph_activity.xml [new file with mode: 0644]
android/res/layout/simulation_series_dialog.xml [new file with mode: 0644]
android/res/menu/simulation_option_menu.xml
android/src/net/sf/openrocket/android/rocket/OpenRocketViewer.java
android/src/net/sf/openrocket/android/simulation/GraphicalActivity.java [deleted file]
android/src/net/sf/openrocket/android/simulation/SimulationChart.java
android/src/net/sf/openrocket/android/simulation/SimulationEventsDialog.java [new file with mode: 0644]
android/src/net/sf/openrocket/android/simulation/SimulationFragment.java [new file with mode: 0644]
android/src/net/sf/openrocket/android/simulation/SimulationSeriesDialog.java [new file with mode: 0644]
android/src/net/sf/openrocket/android/simulation/SimulationViewActivity.java [new file with mode: 0644]
android/src/net/sf/openrocket/android/simulation/SimulationViewer.java [deleted file]