210 Commits

Author SHA1 Message Date
Kevin Ruland
a6331b7bdd Exclude the exp4j wrapper class from this build. 2012-05-22 18:38:37 +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
Kevin Ruland
4fa4217665 Refactor ExtendedThrustCurveMotor so it extends ThrustCurveMotor instead of delegates to a member variable. This is so when rockets are deserialized from orc files, the ThrustCurveMotors in the Rocket are actually ExtendedThrustCurveMotors. We will use this in the motor configuration editor system. 2012-05-16 06:27:02 +00:00
Kevin Ruland
00696ce7a3 Wire in save for OpenRocketDocument. 2012-05-15 23:01:39 +00:00
Kevin Ruland
00519d820a Remove done todo. This should have been removed long ago when the motor list actually worked with PersistentExpandableListFragment. 2012-05-15 22:59:31 +00:00
Kevin Ruland
bfbab58f51 Rename SimulationFragment to SimulationViewFragment. 2012-05-15 21:11:58 +00:00
Kevin Ruland
33bbc9d65b Add a little padding to make table easier to read. 2012-05-15 21:11:16 +00:00
Kevin Ruland
99d215fdd3 Enhance the Simulation Events Dialog so it shows more like a table with altitude and velocity values as well as time. 2012-05-15 20:58:48 +00:00
Kevin Ruland
fe5b8018de Refactor the Motor Configuration Spinner so it could be reused. 2012-05-15 20:57:01 +00:00
Kevin Ruland
751d1d4c52 Added dummy ComponentPresetDatabase to Application. 2012-05-11 03:23:03 +00:00
Kevin Ruland
d0e0427c0c Added new methods from the Preferences interface for the presets. Android will not support presets so they return nothing. 2012-05-11 03:22:27 +00:00
Kevin Ruland
0eb67f95cb Exclude the plugin and component preset parsers from android build. 2012-05-10 14:49:59 +00:00
Kevin Ruland
34b6151596 Turn off debugging and logging in preparation for a release. 2012-03-14 01:31:56 +00:00
Kevin Ruland
a5d982aa4e Have the star field visible under the actionbar in ICS and Honeycomb devices. 2012-03-14 01:29:43 +00:00
Kevin Ruland
1784665ffd Added a version string to the main layout. 2012-02-29 18:13:20 +00:00
Kevin Ruland
5198c9e53c Trimmed off some of the additional margin on the bottom and right side. 2012-02-29 18:11:41 +00:00
Kevin Ruland
84e3156cb9 Update the text and make clickable hypertext. 2012-02-29 17:55:35 +00:00
Kevin Ruland
e094a43c45 Only keep the motor if it was parsed correctly. 2012-02-26 14:59:59 +00:00
Kevin Ruland
ab74e44013 Added mm to browser group labels when set to diameter. 2012-02-26 00:31:19 +00:00
Kevin Ruland
0165840233 Failed to commit the AndroidManifest.xml when I changed the main and openrocketloader classes to use ActionBarFragmentActivity. 2012-02-26 00:27:14 +00:00
Kevin Ruland
c514314ed3 Added primitive about dialog to all main windows. Added 'donate' button to main. 2012-02-25 03:49:56 +00:00
Kevin Ruland
1c5da14cd2 Attempt to clean up the cursor closed problems by managing the cursor in onResume instead of onAttach. 2012-02-23 17:42:08 +00:00
Kevin Ruland
e73527b733 Use ActivityHelpers.goHome instead of finish() when the home button is pressed. Don't add the burnplot to the back stack so the back arrow just exits the browser activity. 2012-02-23 17:41:23 +00:00
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
204b29bfb5 Extract strings from layout files to prepare better for l10n. 2012-02-23 17:33:15 +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
b91bad8836 Added icon for motor browser menu options. 2012-02-15 03:26:12 +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
3861f21d6d Remove the white textColor style from the default theme - it was just causing trouble. 2012-02-12 16:28:50 +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
62d58398ce Tweak the landscape layout moving the buttons up a little. 2012-02-10 02:27:44 +00:00