Commit Graph

  • 89ff888c27 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. Kevin Ruland 2012-06-06 12:07:18 +00:00
  • 17fa9ae55d Added most recently used design file list to File menu. Doug Pedrick 2012-06-06 02:22:19 +00:00
  • 540097aed4 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. Kevin Ruland 2012-06-05 18:13:20 +00:00
  • fb1262897d Discovered a couple more shape parameter values used in RockSim csv files. Kevin Ruland 2012-06-05 18:10:04 +00:00
  • 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. Kevin Ruland 2012-06-05 13:57:37 +00:00
  • ad265733bd Change to inherit from Sherlock classes. Kevin Ruland 2012-06-05 13:47:15 +00:00
  • 4ca77ba513 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. Bill Kuker 2012-06-04 22:50:16 +00:00
  • 56f157a7a5 Added UnitGroup.fromUnit which delegates to UnitGroup.getDefaultUnit().fromUnit. Kevin Ruland 2012-06-04 19:17:05 +00:00
  • 0250f29f26 Added local foreground service which runs simulations. Wired into the SimulationEditFragment. Kevin Ruland 2012-06-04 19:16:27 +00:00
  • 63290b98e4 Use sendMessage instead of dispatchMessage so the message can be sent from a different thread. Kevin Ruland 2012-06-04 19:12:57 +00:00
  • 5faec59816 Make separate method for notifySimsChanged since this is useful without creating or deleting a simulation (for example when a simulation is done executing). Kevin Ruland 2012-06-04 19:02:56 +00:00
  • bedcf4ecb5 Fix a bug where the motor configuration was not being pulled correctly. It is stored in the options. Kevin Ruland 2012-06-04 18:59:45 +00:00
  • 88a365ea6e Added exp4j and ExpressionParser to the android build. These are now required because of the changes in core for expressions in simulations. Kevin Ruland 2012-06-04 15:57:58 +00:00
  • fcc243a986 Removed some debugging junk and fixed a null pointer exception. Richard Graham 2012-06-04 05:56:24 +00:00
  • d4c4242c7f 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. Richard Graham 2012-06-04 03:08:29 +00:00
  • 50f3fc39a6 Remove dependency on awt.Window from CustomExpression since this makes the android app very upset. Kevin Ruland 2012-06-02 23:43:36 +00:00
  • 16eed9a30b Added new feature : user configurable custom expression evaluation for the simulation, driven by exp4j. Richard Graham 2012-06-02 17:58:47 +00:00
  • d103ac1d05 Refactor the RocketDocument and corresponding data and methods out of Application and into CurrentRocketHolder and CurrentRocket. Kevin Ruland 2012-06-02 04:47:18 +00:00
  • 192637f189 Delete empty directories after making TreeViewList a library. Kevin Ruland 2012-06-02 04:18:33 +00:00
  • 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. Kevin Ruland 2012-06-02 04:06:02 +00:00
  • 4b109f74f8 More accurate fin marking guide circumference computation - taking into account paper thickness and rounding up on fractional print points. Doug Pedrick 2012-05-31 20:10:46 +00:00
  • 661b16bbda Support for different size clusters in centering ring template. Doug Pedrick 2012-05-31 03:06:22 +00:00
  • dbd72738c5 Print support for clustered centering rings. Doug Pedrick 2012-05-30 22:41:01 +00:00
  • eb0cfe141e Added ruler graphic to printed output; improvements to layout and margins in printing; bug fix in PrintUnit; other minor printing related cleanup. Doug Pedrick 2012-05-28 04:28:26 +00:00
  • 905c7f740a Pull TreeListView from main source and include from library instead. Kevin Ruland 2012-05-27 12:57:57 +00:00
  • 100b54ae8f Added support library for TreeViewList. Previously this code was subsumed in the android app. Kevin Ruland 2012-05-27 12:48:32 +00:00
  • af01c8482b Share project "TreeViewList" into "https://openrocket.svn.sourceforge.net/svnroot/openrocket" Kevin Ruland 2012-05-27 12:46:31 +00:00
  • 8d8ef35835 Remove unused imports. Kevin Ruland 2012-05-26 01:50:14 +00:00
  • 62fe67faa0 Use the dialog theme for the file browser because it looks better on tablets. Kevin Ruland 2012-05-25 20:46:00 +00:00
  • a6a5eff5b6 Simplify the spinner styling. Kevin Ruland 2012-05-25 20:45:13 +00:00
  • f7b883a4ce Removed another file not needed after moving to ActionBarSherlock. Kevin Ruland 2012-05-25 20:44:22 +00:00
  • 9a54fbdb88 Correctly change configurations without changing the default configuration id. Also, select in the spinner the default configuration when constructed. Kevin Ruland 2012-05-25 18:41:53 +00:00
  • 134031de24 Updated for centering rings. Doug Pedrick 2012-05-24 23:31:11 +00:00
  • c89c927e0c Printable Centering Ring templates. Doug Pedrick 2012-05-24 23:28:58 +00:00
  • 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. Kevin Ruland 2012-05-23 21:20:46 +00:00
  • 743ba0f57d Change to using ActionBarSherlock for the action bar compatibility. Kevin Ruland 2012-05-23 19:45:27 +00:00
  • 0874a2dc13 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. Kevin Ruland 2012-05-23 18:19:56 +00:00
  • cebfdbf192 Share project "ActionBarSherlock" into "https://openrocket.svn.sourceforge.net/svnroot/openrocket" Kevin Ruland 2012-05-23 18:06:07 +00:00
  • 9bf29c9e83 Create a directory in which to put android library projects which are needed by the android application. Kevin Ruland 2012-05-23 18:04:11 +00:00
  • 85f5194c6d 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. Kevin Ruland 2012-05-23 14:47:46 +00:00
  • 4abceb9185 Minor modification to test case which makes setting breakpoints easier. No functional or assert changes. Kevin Ruland 2012-05-23 14:38:36 +00:00
  • 0302130c11 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. Kevin Ruland 2012-05-23 14:23:01 +00:00
  • e10ff31830 Fix IntegrationTest which was broken when the nose cone / transition volume and area computations were corrected. Kevin Ruland 2012-05-22 20:50:45 +00:00
  • 953082ea05 Fix BaseComponentDTOTest to point to an image file which actually exists. Kevin Ruland 2012-05-22 20:40:18 +00:00
  • 254e5670da 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. Kevin Ruland 2012-05-22 20:39:29 +00:00
  • 02d9954ff1 Added Configuration tab to the rocket viewer which displays all the motor configurations and allows one to create a new motor configuration. Kevin Ruland 2012-05-22 19:34:11 +00:00
  • 6185091ee1 Remove the android:debuggable attribute. This attribute will be automatically set correctly when one does a release build from eclipse. Kevin Ruland 2012-05-22 19:13:12 +00:00
  • 52dff3a511 Update the android-support-v4.jar to revision 8 April 2012. Kevin Ruland 2012-05-22 18:40:39 +00:00
  • a6331b7bdd Exclude the exp4j wrapper class from this build. Kevin Ruland 2012-05-22 18:38:37 +00:00
  • b9594c5ef8 Comment on the bug which clears the default configuration for a model. Kevin Ruland 2012-05-22 18:37:25 +00:00
  • 32ad0c1df6 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. Kevin Ruland 2012-05-22 18:36:04 +00:00
  • f42e6fa85a Remove the old FractionUtil class containing the parser since we're using exp4j now. Kevin Ruland 2012-05-22 18:32:21 +00:00
  • 7cba979236 Change the in/64 length unit to not allow decimal representations by constructing it with an epsilon of 0.5/64. Kevin Ruland 2012-05-22 18:29:57 +00:00
  • 473300fa11 Use the fonts defined in PrintUtilities instead of constructing a new font every time. Kevin Ruland 2012-05-22 18:12:47 +00:00
  • 9552b2de86 Expression parser updates Sampo Niskanen 2012-05-22 04:11:25 +00:00
  • e3f173d83e Fix to streamer loading of materials; missing material in Giant Leaps file. Doug Pedrick 2012-05-21 04:36:20 +00:00
  • 798f631259 Cleanup and tweaks to unit widths. Doug Pedrick 2012-05-18 04:10:26 +00:00
  • a41e6ef5a3 Change label for UNIT_WINDSPEED in pref dialog to "Wind speed". Kevin Ruland 2012-05-17 14:24:22 +00:00
  • c997b7bfd3 Added imperial and SI defaults for UNITS_WINDSPEED. Kevin Ruland 2012-05-17 14:23:10 +00:00
  • 5320377719 Added ability for doublemodel to evaluate math expressions using exp4j, fixed typeover issue and made the doublemodel more robust to incorrect input. Richard Graham 2012-05-17 06:08:05 +00:00
  • ba4ceccf26 Added convenience function RocketComponent.getMotorMounts() returning List<MotorMount>. Kevin Ruland 2012-05-16 06:49:04 +00:00
  • 7420f5c18b Added UNITS_WINDSPEED so the preferred units for entering wind speed can be configured separately from rocket velocities. Kevin Ruland 2012-05-16 06:36:58 +00:00
  • 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. Kevin Ruland 2012-05-16 06:27:02 +00:00
  • 672239535a Added clone() implementation to support the ThrustCurveMotor copy constructor. Added serialVersionUID constant from the previous implementation to provide backwards compatibility with serialzied data in the android database. Kevin Ruland 2012-05-16 06:18:54 +00:00
  • 34a5c097b7 Added protected copy constructor which makes a deep copy. This is used in the android application so ExtendedThrustCurveMotor can extend ThrustCurveMotor instead of use delegation. Kevin Ruland 2012-05-16 06:17:22 +00:00
  • ed629bd227 Constrain preset editor on existing files to only use populated Materials; minor other cleanup. Doug Pedrick 2012-05-16 02:13:18 +00:00
  • 00696ce7a3 Wire in save for OpenRocketDocument. Kevin Ruland 2012-05-15 23:01:39 +00:00
  • 00519d820a Remove done todo. This should have been removed long ago when the motor list actually worked with PersistentExpandableListFragment. Kevin Ruland 2012-05-15 22:59:31 +00:00
  • bfbab58f51 Rename SimulationFragment to SimulationViewFragment. Kevin Ruland 2012-05-15 21:11:58 +00:00
  • 33bbc9d65b Add a little padding to make table easier to read. Kevin Ruland 2012-05-15 21:11:16 +00:00
  • 99d215fdd3 Enhance the Simulation Events Dialog so it shows more like a table with altitude and velocity values as well as time. Kevin Ruland 2012-05-15 20:58:48 +00:00
  • fe5b8018de Refactor the Motor Configuration Spinner so it could be reused. Kevin Ruland 2012-05-15 20:57:01 +00:00
  • e1081d2df8 Change from ClassLoader.getSystemResourceAsStream to ClassLoader.getResourceAsStream since it is android safe. Kevin Ruland 2012-05-15 20:43:26 +00:00
  • a6eda10fcc Rename to ComponentPresetEditor Doug Pedrick 2012-05-15 04:38:27 +00:00
  • 90ebc01268 Added ability to open *.csv files to menu. Doug Pedrick 2012-05-15 04:35:33 +00:00
  • 1ee93fdab0 Put the loadMotor() method back since it is useful to python bindings. Kevin Ruland 2012-05-15 04:28:14 +00:00
  • 538fa66415 Added menu bar and menu items. Doug Pedrick 2012-05-12 04:19:47 +00:00
  • a9bbe0f642 Fix up the logic for showing and using the aft/fore match diameter switches. Kevin Ruland 2012-05-11 18:06:33 +00:00
  • 8b9ead892c Change epsilon in the row filter to be 5mm instead of 1mm. Kevin Ruland 2012-05-11 18:05:44 +00:00
  • bd8db9cb10 Upon further investigation getMinimum and getMaximum in the SpinnerNumberModel is only used to determine the text box size. Kevin Ruland 2012-05-11 18:05:14 +00:00
  • 0cfdc91b2f Fix sorting on double columns. Kevin Ruland 2012-05-11 03:38:58 +00:00
  • 751d1d4c52 Added dummy ComponentPresetDatabase to Application. Kevin Ruland 2012-05-11 03:23:03 +00:00
  • d0e0427c0c Added new methods from the Preferences interface for the presets. Android will not support presets so they return nothing. Kevin Ruland 2012-05-11 03:22:27 +00:00
  • 43dd248d8b Switch to a LinkedBlockingQueue in front of the loader thread pool because it eliminates RejectedExecutionExceptions. The down side is the generator will block when the queue is full. Oh well. Kevin Ruland 2012-05-11 03:21:27 +00:00
  • 97fea90360 Added example file using presets. Kevin Ruland 2012-05-11 03:19:55 +00:00
  • 7da68bcb1e Added delete button to preset row in table. Doug Pedrick 2012-05-11 03:02:35 +00:00
  • 8a5fd187b6 Refactored preset GUI for unit of measure spinners; added launch lug, parachute, and streamer editors. Doug Pedrick 2012-05-10 23:51:26 +00:00
  • 0eb67f95cb Exclude the plugin and component preset parsers from android build. Kevin Ruland 2012-05-10 14:49:59 +00:00
  • 7681d40b76 A little refactoring of ComponentPreset xml file parsing since android does not support JAXB. Kevin Ruland 2012-05-10 14:38:36 +00:00
  • 0076b5ac3b updated change log. Kevin Ruland 2012-05-10 03:27:38 +00:00
  • 64c3b0c83a Added PageFitPrintStrategy and related files to print multiple fins, transitions, and nosecones onto the same page(s) Jason Blood 2012-05-10 02:48:13 +00:00
  • bd680c7e14 Added support for Unit 'in/64' which is inches with fractional representation. DoubleModel has one FIXME indicating that we need to reenable min & max in the abstract spinner model. Kevin Ruland 2012-05-10 02:48:07 +00:00
  • 7b093f79f8 Implement a multithreaded pipeline to load the component preset files. This greatly reduces the time to load them. Kevin Ruland 2012-05-09 02:01:57 +00:00
  • 692fcebb11 Give the threads names to facilitate thread performance analysis. Kevin Ruland 2012-05-09 02:00:54 +00:00
  • 5cd524e675 Renamed the PresetTest helper class to PresetAssertHelper. This keeps ant unittest from carping about a *Test.java file which contains no tests. Kevin Ruland 2012-05-08 18:13:52 +00:00
  • 51e2dfe6c7 Rework the ThrustCurve motor loading process to be highly parallel. This significantly reduced loading times. In order to achive this, the implementation of ZipDirectoryIterator.getNext() had to change to not close the iterator when it runs out of things. Kevin Ruland 2012-05-08 17:57:46 +00:00
  • 8c34d8488a Multithread the orc loading process. Kevin Ruland 2012-05-07 14:43:50 +00:00
  • 0c9ac572d1 Regenerated preset files. Kevin Ruland 2012-05-07 01:35:18 +00:00
  • 0ff0fe1364 Add slightly better sorting to the manufacturer and partno columns. It attempts to sort numeric portions of the strings separate from the alpha parts. However, it isn't perfect because decimals (numbers containing '.') trips it up. Kevin Ruland 2012-05-07 01:34:23 +00:00
  • f76966d0ea updated French translation Boris du Reau 2012-05-06 20:08:37 +00:00