kruland2607 [Thu, 21 Jun 2012 19:10:06 +0000 (19:10 +0000)]
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.
bkuker [Wed, 20 Jun 2012 00:34:02 +0000 (00:34 +0000)]
Update to the latest 2.0 release candidate of JOGL (Build 57).
Move JOGL Libraries from lib/native to lib/jogl, which is less misleading.
Update .classpath and build.xml with new directory name.
kruland2607 [Mon, 18 Jun 2012 21:02:31 +0000 (21:02 +0000)]
Mark the OpenRocketViewer activity as finishOnTaskLaunch so when the application is restarted from the launcher, it goes to the Main activity which can test if the application has been unloaded from memory.
kruland2607 [Fri, 15 Jun 2012 14:13:04 +0000 (14:13 +0000)]
Tweak the main layout for Honeycomb and ICS devices. Added custom layout for these devices running on non-xlarge screens which pushes the title text down below the action bar. Fixed the style for ICS and Honeycomb to properly hide the actionbar but leave the overflow menu button.
kruland2607 [Wed, 13 Jun 2012 16:37:18 +0000 (16:37 +0000)]
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.
kruland2607 [Wed, 13 Jun 2012 16:28:03 +0000 (16:28 +0000)]
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.
bkuker [Mon, 11 Jun 2012 20:25:41 +0000 (20:25 +0000)]
JOGL Based support for a 3D view of the rocket.
Change to RocketPanel to add 3D option.
Change to build process to use a Jar-in-Jar technique, not Fat Jar, using the Eclipse projects jar-in-jar loader. (Does not require eclipse!)
richardgraham [Mon, 11 Jun 2012 04:47:49 +0000 (04:47 +0000)]
- Implemented copying of custom expressions to other simulations in expression builder dialog. Note the small changes to various files are to allow simulations access to parent document.
- Switched to unicode char escapes
- Removed dynamic setting of flightdatatype priority
- Now hiding up down arrows in custom expression pane when unusable
- Localized custom expression operator discriptions.
kruland2607 [Wed, 6 Jun 2012 18:03:43 +0000 (18:03 +0000)]
Change OpenRocketComponentSaver unmarshal function to return the whole OpenRocketComponentDTO instead of just the contained components. This gives the ComponentPresetEditor a change to grab the Materials in the file for use in the ui.
kruland2607 [Wed, 6 Jun 2012 12:09:39 +0000 (12:09 +0000)]
Change the semantics of MaterialHolder.getXXXMaterial( Material ), instead of returning the material used as the argument if the material is not in the map, it returns null. This make the methods more similar to standard hash collections.
kruland2607 [Wed, 6 Jun 2012 12:07:18 +0000 (12:07 +0000)]
Explicitly create the writerThread to be an executor with an unbounded linked blocking queue. I have sometimes seen rejected exceptions (which should never happen) using the Executors.newSingleThreadExecutor which makes me doubt the documentation.
kruland2607 [Tue, 5 Jun 2012 18:13:20 +0000 (18:13 +0000)]
Fixed two bugs. When the data in the table was sorted, the incorrect row in the model was being manipulated. Fixed the problem where the derived materials (based on component's mass value) were being placed in the materials list.
bkuker [Mon, 4 Jun 2012 22:50:16 +0000 (22:50 +0000)]
Delete file with problematic name, "staged."
It can not exist on windows while the identical file "staged" also exists.
This file is unreferenced.
It must be here by mistake.
kruland2607 [Mon, 4 Jun 2012 19:02:56 +0000 (19:02 +0000)]
Make separate method for notifySimsChanged since this is useful without creating or deleting a simulation (for example when a simulation is done executing).
richardgraham [Mon, 4 Jun 2012 03:08:29 +0000 (03:08 +0000)]
Fixed issue where symbols / units for FlightDataTypes would not be defined after loading a .ork file with data defined. Data types now figured out from the name when loading .ork file.
Also changed the priority of the data types so that custom expressions show up first.
kruland2607 [Sat, 2 Jun 2012 04:06:02 +0000 (04:06 +0000)]
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.
kruland2607 [Wed, 23 May 2012 21:20:46 +0000 (21:20 +0000)]
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.
kruland2607 [Wed, 23 May 2012 18:19:56 +0000 (18:19 +0000)]
Added ActionBarSherlock v4.0.3 library for use in the android application. ActionBarSherlock is significantly more flexible than the crummy hack of the sample ActionBarCompat which was being used.
kruland2607 [Wed, 23 May 2012 14:47:46 +0000 (14:47 +0000)]
Correct the computation of shape mass in integrate() by computing the mass based on the integrated volume * density instead of using the super.getComponentMass(). super.getComponentMass() includes the mass of the shape as well as the shoulders.
kruland2607 [Wed, 23 May 2012 14:23:01 +0000 (14:23 +0000)]
My assessment of why IntegrationTest was failing was incorrect. After perusing the history I found that in repository revision 599, I introduced changes to the computation of Transition volume which accounted for the volume of the shoulders as well as the body of the transition. This change broke the computation of CG. This commit reverts IntegrationTest and adds some cg tests to SymmetricComponentVolumeTest which contains the values produced by the old code. A future commit will correct SymmetricComponent.getCG and all these tests will work again.
kruland2607 [Tue, 22 May 2012 20:39:29 +0000 (20:39 +0000)]
Fix ComponentCompare and ComponentCompareTest. ComponentCompare needed to not verify the getMotorMounts method which was recently added. ComponentCompareTest needed to extend BaseTestCase so the materials db was initialized.
kruland2607 [Tue, 22 May 2012 18:36:04 +0000 (18:36 +0000)]
Change the textual representation of fractional units to use Unicode superscripts and subscripts. Unfortunately, the default fonts included with iText do not have these characters mapped so we needed to switch to a new true type font DejaVu. Added the DejaVuSerif font definition to the resources and modified the pdf writing process to use this font. Because this font is slightly wider, the column headings in the DesignReport had to be made smaller. Finally, had to modify the ExpressionParser to convert the unicode chars to real digits in order to have the expression parser be able to work with this representation.
kruland2607 [Wed, 16 May 2012 06:27:02 +0000 (06:27 +0000)]
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.