Kevin Ruland
4958f252ef
Use ActivityHelpers.goHome instead of finish() when the home button is pressed.
2012-02-23 17:38:46 +00:00
Kevin Ruland
466cd66461
Added helper function to correctly implement goHome action. Uses FLAG_ACTIVITY_CLEAR_TOP to remove all activities in between.
2012-02-23 17:38:17 +00:00
Kevin Ruland
6c4e3c6bcd
Rewrite BurnPlotFragment to use AChartEngine for plotting instead of Androidplot.
2012-02-23 17:36:15 +00:00
Kevin Ruland
31c69313fb
Remove unused import.
2012-02-23 17:34:43 +00:00
Kevin Ruland
60b1477c26
Revise the download and match logic so more motors are downloaded correctly. The DownloadResponse now holds on to all the results supplied from Thrustcurve so we can process them a little better. The TCMissingMotorDownloadAction chooses the motor which has the best match (giving preference to matching digest, desgination and finally RockSim files). The TCSearchAction records into the database all the motors which have a unique designation.
2012-02-21 02:55:33 +00:00
Kevin Ruland
f72a2fe02e
if there are no motors in the db, display a dialog.
2012-02-21 02:44:27 +00:00
Kevin Ruland
6a5dee579f
Remove all the zoom & pan stuff because it didn't work well. Change the line color to GREEN so it just blends into the fill.
2012-02-21 02:43:04 +00:00
Kevin Ruland
00e1f817e3
Check if the directory is readable. If it is not, then display a dialog. Try to show the previous directory selected, but if that cannot be, just exit.
2012-02-21 02:42:08 +00:00
Kevin Ruland
58d89c7c27
If there is no branch data in a simulation, display a dialog and don't try to show anything.
2012-02-21 02:41:02 +00:00
Kevin Ruland
b1891e1dc1
Only create the motor list fragment once. If it already exists, don't create it again. This was causing problems during orientation change by creating multiple overlapping lists.
2012-02-17 22:10:28 +00:00
Kevin Ruland
8e845590a8
We cannot use the designation directly in the search. For some manufacturers (CTI), the designation provided in the burn file is not at all consistent with the designation stored in the thrustcurve.org main database. Instead we pull out what looks like the common name using a regular expression and use that.
2012-02-16 19:25:28 +00:00
Kevin Ruland
178755ca90
When downloading burn files, prefer RockSim formatted files of RASP since they appear to be better. In particular there is a RASP file for the AeroTech G76 which contains the incorrect motor designation of G72.
2012-02-16 19:24:12 +00:00
Kevin Ruland
597d4bec6a
Roll back previous change. It was not correct. The underlying problem was the dialog was being dismissed twice when using the TCMissingMotorDownloadAction.
2012-02-16 19:23:03 +00:00
Kevin Ruland
621938dc56
Populate the warning dialog with the messages. Fix the onCLick and onCancel to not finish the activity but instead make the workflow move on to the viewer.
2012-02-16 19:22:19 +00:00
Kevin Ruland
f5d3884ce9
Populate the warning dialog with the messages. Fix the onCLick and onCancel to not finish the activity but instead make the workflow move on to the viewer.
2012-02-16 19:21:55 +00:00
Kevin Ruland
4add9a88f4
Can't dismiss a nonvisible dialog.
2012-02-16 14:52:15 +00:00
Kevin Ruland
1cde36a461
Fix NPE in logging message.
2012-02-15 03:31:08 +00:00
Kevin Ruland
b8899899f8
Switch to GeneralRocketLoader so the app can load compressed ork files. Added dialog containing exception message when loading fails.
2012-02-15 03:25:29 +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
844f2de727
Use our own simple_spinner_item layout so we can style it more easily.
2012-02-12 16:29:48 +00:00
Kevin Ruland
0f7a05b95b
Many style and navigation changes. Pulled in ActionBarCompat from Android sample sources to provide an action bar paradigm on pre-gingerbread devices. Changed the OpenRocket Viewer activity to use a viewpager with sliding tabs since it looks much nicer. Updated to the newest android-support-v4 jar.
2012-02-11 20:17:39 +00:00
Kevin Ruland
737ede90a7
Removed some unneeded code in MotorListFragment. Use startActivityForResult when starting the TCQueryAction so the MotorBrowserActivity knows when it is finished. The MotorBrowserActivity uses the onActivityResult to refresh the data in the fragment.
2012-02-10 02:46:11 +00:00
Kevin Ruland
40c6999bb0
Remove an unneeded FrameLayout in the ExpandableListFragment layout.
2012-02-10 02:28:54 +00:00
Kevin Ruland
81cb5abcb1
Rewrite the ThrustCurve search and download process to be orientation friendly.
2012-02-09 04:04:29 +00:00
Kevin Ruland
21fb67f8d2
Second checkpoint commit of OpenRocketLoader to make it orientation change safe. Changed Main.java to register onclick listeners in java instead of the layout. Store the WarningSet in Application so it doesn't need to be serialized if the OpenRocketLoaderActivity is recreated during an orientation change. Fix the MissingMotorDialogFragment to only have the string and not the whole WarningSet. Finally completely rewrote the OpenRocketLoaderTask into a Fragment managing its own dialog.
2012-02-08 02:32:27 +00:00
Kevin Ruland
4780fb36b0
Second checkpoint commit of OpenRocketLoader to make it orientation change safe. Changed Main.java to register onclick listeners in java instead of the layout. Store the WarningSet in Application so it doesn't need to be serialized if the OpenRocketLoaderActivity is recreated during an orientation change. Fix the MissingMotorDialogFragment to only have the string and not the whole WarningSet. Finally completely rewrote the OpenRocketLoaderTask into a Fragment managing its own dialog.
2012-02-08 02:22:45 +00:00
Kevin Ruland
3f37586278
Rework the motor browser functionality to make it more tablet friendly.
2012-02-06 01:31:51 +00:00
Kevin Ruland
ad86008f28
Removed a bunch of old commented out code.
2012-02-06 01:26:43 +00:00
Kevin Ruland
9b56d151d2
Changed cursor management after seeing problems in Honeycomb. Stop using managed cursors and use changeCursor.
2012-02-05 02:47:25 +00:00
Kevin Ruland
125162bcbe
Checkpoint commit adding missing motor download workflow.
2012-02-05 02:01:12 +00:00
Kevin Ruland
ae34a951a6
Refactor TCQueryAction so it can be used from the motor browser or when resolving missing motors.
2012-02-05 02:00:00 +00:00
Kevin Ruland
9def115330
Fix menus when simulations are displayed and the device is rotated. The preference menu is controlled in the SimulationViewActivity instead of the Fragment. The activity now replaces the fragment instead of adding it.
2012-02-05 01:53:43 +00:00
Kevin Ruland
d3b59e68cc
Clean up imports.
2012-02-05 01:41:23 +00:00
Kevin Ruland
512a82f4c1
Change database name.
2012-02-03 15:02:04 +00:00
Kevin Ruland
b0f4f25ba2
Improved message provided during progress.
2012-02-03 01:38:50 +00:00
Kevin Ruland
d84e03e921
Fixed problem with logging when a single String is used for a literal not a MessageFormat template string.
2012-02-03 01:38:09 +00:00
Kevin Ruland
616dd8c1a7
Fix up the unit preferences correctly. The preferences now show the current setting and when they are changed, the overview and simulations lists are updated.
2012-02-02 02:49:44 +00:00
Kevin Ruland
9e05cfeb29
Change all calls to android.util.Log to use the AndroidLogWrapper class since it provides the ability to turn off all logging - which is desirable when making a apk for distribution.
2012-02-01 02:44:37 +00:00
Kevin Ruland
d8d9f499b7
Rewrite MotorBrowser to use a fragment for the list. This is the first step in making this portion of the application look and operate better on tables.
2012-01-30 03:48:42 +00:00
Sampo Niskanen
510adee8c7
motor loading refactoring
2012-01-29 18:15:33 +00:00
Kevin Ruland
aa9259be6e
Fix npe when one uses the back button to get rid of the query instead of executing a query.
2012-01-29 02:46:43 +00:00
Kevin Ruland
90f2dcadfc
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.
2012-01-26 15:36:15 +00:00
Kevin Ruland
27acc364ec
Rename the class OpenRocketLoader to OpenRocketLoaderActivity to prevent confusion with the core's OpenRocketLoader.
2012-01-26 00:56:18 +00:00
Kevin Ruland
787407fae4
Fix import after OpenRocketLoader was repackaged.
2012-01-26 00:55:08 +00:00
Kevin Ruland
d2fa55fb74
Refactor the Query & Download thread and progress management out of TCQueryActivity to allow for more reuse.
2012-01-25 17:58:52 +00:00
Kevin Ruland
2fc45af6e0
Define a callback interface in the Simulation list fragment which is called with the simulation id that is selected. Implement this interface in the OpenRocketViewer which then invokes the Intent for the SimulationViewer.
2012-01-25 17:35:46 +00:00
Kevin Ruland
1d127a0162
Modify the OpenRocketTask to send both the WarningSet and OpenRocketDocument back and display a dialog when there are warnings. The dialog is only partially implemented.
2012-01-25 17:33:22 +00:00
Sampo Niskanen
bd8e82c1d2
motor updates
2012-01-23 19:07:36 +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
398f302dfc
Change handling of Motor Digests. The computed digest value is now stored as a member variable in the ThrustCurveMotor and avaliable through the getDigest() method. getDigest() was added to the Motor interface. All references to MotorDigest.digestMotor() were removed from the application.
...
The android db now stores the digest. Also changed persistance mechanism for delays to store as comma delimited string.
The TestMotorLoader is now failing because the digests have changed.
2012-01-15 02:46:13 +00:00