134 Commits

Author SHA1 Message Date
Doug Pedrick
ec38d3b430 DGP - First pass at Rocksim export 2012-01-08 01:43:37 +00:00
Kevin Ruland
10dd89f569 Change OpenRocketViewer to tab layout with three tabs: overview, components, and simulations. Overview is populated with some high level data about the rocket - length, mass, cg, etc. Components will be populated with the tree of rocket components. Simulations contains the list of stored simulations.
Added length and mass preferences and wired into the application object initialization of the OpenRocket UnitGroup statics.

There is currently an issue in the Simulation list in that the motors are not being displayed.  This is because currently the motor dao is not wired into the application.
2012-01-08 00:53:35 +00:00
Kevin Ruland
195ad4933b Added class with couple of helper methods to compute information about a rocket. Includes getCG and getLength. 2012-01-08 00:47:37 +00:00
Kevin Ruland
edcaa5d2c9 Enabled pan and zoom. Once the y axis were pinned so their origins are the same location, the pan and zoom feels better. Though there are still some bugs in there. 2012-01-06 03:31:27 +00:00
Kevin Ruland
d1df3dd35f Change Simulation plotting functionality to use AChartEngine instead of AndroidPlot. AChartEngine has built in zoom and pan though they are currently not used (because they are a little buggy). AChartEngine supports mulitple series plotted on same graph. However, it does not support the plotting of events.
Removed the sliding drawer from the configuration.  Instead a new activity is launched containing the plot.
2012-01-06 03:12:27 +00:00
Kevin Ruland
2e63b23921 Fixup problems I introduced during previous commit of MotorDatabase refactoring. The ThrustCurveMotorSet class needs to be public. The classes MotorDatabaseLoadingDialog and ThrustCurveMotorSelectionPanel need to blind cast the MotorDatabase retrieved from the Application to ThrustCurveMotorSetDatabase in order to have access to functions specific to that implementation. 2012-01-04 17:57:54 +00:00
Doug Pedrick
24d138b61a DGP - Modified Rocksim import to discriminate between centering ring, tube coupler, bulkhead, and engine block. Refactored Junits to use Junit 4.0 annotations. 2012-01-04 14:18:24 +00:00
Kevin Ruland
e0791a25ce Clean up the labels on the graph. 2012-01-03 19:01:41 +00:00
Kevin Ruland
9e79ec1ea4 Removed the menu which came over when this code was copied from the motor browser. 2012-01-03 19:00:26 +00:00
Kevin Ruland
2e41cbb5ff Added progress dialog when loading a file. Removed some default text from the view. Added safety net to launch the file browser when no file is specified. This last piece of functionality might be replaced with a dialog and better error handling in the future. 2012-01-03 18:58:10 +00:00
Kevin Ruland
c546dba066 Added some functionality to Main activity. Splash screen is displayed for a little bit, then the user is presented with two buttons - one to open a file browser to find ork files, the other to start the motor browser. 2012-01-03 18:56:38 +00:00
Kevin Ruland
dc488e2f58 Checkpoint commit of android functionality. Application currently consists of simple Main activity which does nothing but allows for bootstrapping of debugger. In future Main activity will go away. OpenRocketViewer activity which loads an ork file and displays a list of the simulations. And Simulation activity which is used to plot simulation results.
Also included is a Motor sqlite database which is populated from thrustcurve downloads.  Includes primitive thrustcurve plotting system.  This will soon be wired into the openrocket application to supply motors for simulation execution.
2012-01-03 02:20:10 +00:00
Kevin Ruland
4ff1869940 For the short term put the user material functions in the base Preferences. 2012-01-01 19:27:33 +00:00
Kevin Ruland
50e2e3d173 Use EventObject instead of swing's ChangeEvent for the base class. 2012-01-01 19:25:30 +00:00
Sampo Niskanen
a4eab94644 added G unit for acceleration 2011-12-31 17:51:20 +00:00
Sampo Niskanen
9f371d9a12 rocksim file converter 2011-12-31 17:35:06 +00:00
Doug Pedrick
adf98ac8d8 DGP - Bug fix for simulation dialog layout issue on Mac OS X; Components were being occluded due to different gaps and insets 2011-12-29 00:54:17 +00:00
Sampo Niskanen
3abd99725b tour updates 2011-12-27 20:09:25 +00:00
Sampo Niskanen
9e04fd5667 introduction tour 2011-12-24 18:03:56 +00:00
Kevin Ruland
1b97b600da Repackage ProgressOutputStream to net.sf.openrocket.gui.util 2011-12-22 02:33:43 +00:00
Kevin Ruland
ce54de1039 Fix "Fit" zoom level in the rocket view panel. This broke during the EventListener refactoring from a little while ago. 2011-12-21 18:22:08 +00:00
Kevin Ruland
1b309dd786 Refactor UndoRedoAction out of OpenRocketDocument and move into gui packages. Added interface UndoRedoListener so the OpenRocketDocument can send notification to the Undo/Redo buttons when the state of the undo stack changes. 2011-12-21 16:23:47 +00:00
Kevin Ruland
4194479d0c Change from fully qualified class name for ExceptionHandler to import statement. 2011-12-21 16:22:28 +00:00
Kevin Ruland
a8b06ee2c4 Forgot to change Application to use the interface ExceptionHandler instead of the implementation SwingExceptionhandler. 2011-12-19 22:12:41 +00:00
Kevin Ruland
1fa7d4314a Extract and interface for ExceptionHelper in package net.sf.openrocket.startup. Register an instance implementing this interface in the Application object in Startup2. Use the static locator functions in Application to retrieve reference to the ExceptionHandler in all the dependent classes. Note: net.sf.openrocket.gui.main.ExceptionHandler was renamed to net.sf.openrocket.gui.main.SwingExceptionHandler and all its static methods were changed to instance methods. 2011-12-19 22:01:05 +00:00
Sampo Niskanen
73e8644aca guided tours implementation 2011-12-19 05:00:30 +00:00
Kevin Ruland
832e610675 Removed use of java.awt.Color from RocketComponent, OpenRocketLoader. The class net.sf.openrocket.util.Color is used instead in these components, and the conversion to/from java.awt.Color is done in the gui code. This is necessary to port RocketComponent to Android platform. 2011-12-17 04:45:16 +00:00
Kevin Ruland
649ec84cf6 Added material basswood. 2011-12-17 04:42:20 +00:00
Kevin Ruland
dcaaa1ac40 Move net.sf.openrocket.util.Prefs to net.sf.openrocket.gui.util.SwingPreferences. 2011-12-13 19:40:54 +00:00
Kevin Ruland
6bd6e81f9b Move static function useSafetyChecks() to Application. 2011-12-13 19:20:59 +00:00
Kevin Ruland
d00c83c2e4 Access preference keys through the base class net.sf.openrocket.startup.Preferences instead of Prefs. 2011-12-13 19:07:35 +00:00
Kevin Ruland
58832ce9e7 Access preference keys through the base class net.sf.openrocket.startup.Preferences instead of Prefs. 2011-12-13 19:03:31 +00:00
Kevin Ruland
83d1507a17 Removed unused import for Prefs. 2011-12-13 19:02:47 +00:00
Kevin Ruland
55ca30e595 Access preference keys through the base class net.sf.openrocket.startup.Preferences instead of Prefs. 2011-12-13 19:01:49 +00:00
Kevin Ruland
de225be28c Access preference keys through the base class net.sf.openrocket.startup.Preferences instead of Prefs. 2011-12-13 18:57:51 +00:00
Kevin Ruland
c7605a2673 Access preference keys through the base class net.sf.openrocket.startup.Preferences instead of Prefs. 2011-12-13 18:55:39 +00:00
Kevin Ruland
a630385fc9 Update javadoc to refer to correct source file. Removed unused import. 2011-12-13 18:54:38 +00:00
Kevin Ruland
b899ca127d Fairly substantial refactoring of preference system. Created abstract class net.sf.openrocket.startup.Preferences which defines abstract get/put primitive functions and some conversion utilities which are not dependent on swing/awt. The class net.sf.openrocket.util.Prefs extends this to support execution in a swing application environment using Java system preferences (like it used to). Prefs still contains some utility functions to convert to swing/awt types such as Dimension, Position, and java.awt.Color.
The net.sf.openrocket.util.Color class was added to facilitate making the core RocketComonent classes independent of swing/awt.  Conversion between net.sf.openrocket.util.Color and java.awt.Color is done by static methods in net.sf.openrocket.gui.util.ColorConversion.
2011-12-13 05:52:09 +00:00
Kevin Ruland
8e70a87e5d Removed usage of deprecated Prefs.NODE public member variable. This is to prepare for Preference refactoring. 2011-12-12 21:54:32 +00:00
Kevin Ruland
50feb2c612 Move getDPI to GUIUtil. 2011-12-12 21:24:01 +00:00
Kevin Ruland
27ee867e27 Fixed the problems introduced with the change from ChangeListener to StateChangeListener introduced in previous commits. 2011-12-09 01:40:33 +00:00
Kevin Ruland
bf609aa353 Fixed numerous problems introduced in previous commit which reduced dependency on swing classes ChangeListener and ChangeEvent. 2011-12-07 03:27:39 +00:00
Kevin Ruland
713bd6bab8 Comment out noisy system.out. 2011-12-07 03:19:10 +00:00
Kevin Ruland
d30083c05b Reduce dependency on swing ChangeListener and ChangeEvent classes. Changed the interface ChangeSource from using ChangeListener to using java.util.EventListener. Changed from using ChangeEvent object instances to using EventObject. Added marker interface StateChangeListener to declare a stateChanged method. 2011-12-05 18:49:49 +00:00
Kevin Ruland
1eb91a2b36 Refactored some gui specific utility classes from net.sf.openrocket.util to net.sf.openrocket.gui.util. The following classes were moved: ConcurrentProgressMonitor, ConcurrentProgressMonitorInputStream, FileHelper, GUIUtil, Icons, OpenFileWorker, SaveCSVWorker, SaveFileWorker, SimpleFileFilter. 2011-12-01 19:16:22 +00:00
Doug Pedrick
cccd06298c DGP - print fin set name on marking guide, even if it's the only one 2011-11-26 02:24:28 +00:00
Sampo Niskanen
ab9bf0bce3 version 1.1.9 2011-11-24 19:19:39 +00:00
Sampo Niskanen
c4fb82a577 reordered pages 2011-11-21 21:09:16 +00:00
Doug Pedrick
8f3b051d61 DGP - initial support for fin marking guides, transition templates, and nose cones 2011-11-19 03:37:54 +00:00
Doug Pedrick
fb3df1b97b DGP - changes to compute fin tab dimensions when the centering rings are children of a subassembly such as a motor mount, rather than parented directly to the outer body tube; tweaks to algorithm for additional edge cases. 2011-10-19 18:53:03 +00:00