Commit Graph

1472 Commits

Author SHA1 Message Date
Scotthew d58614f8d7 Image Compare Update:
- Opening compared tables now sets the proper table compare menu item.
2014-05-05 22:27:40 -07:00
Scotthew 36175a8b6a Applied Dale's suggestions for resolving the log overlay 2014-05-04 21:41:18 -07:00
Scotthew 17a96e6cb8 Editor Bug Fixes:
- Scaling fix for switching from Default to raw and then raw back to default.
 - Overlay tables are not registered when the table is closed and displayed again.
2014-01-28 15:41:52 -08:00
Scotthew 8a08c39aa8 Compare Image Update:
- Added open and compare action to image compare result table list.
2014-01-06 00:45:28 -08:00
Scotthew 8547a567ae Live Data Overlay Updates:
- Modified highlight and text colors.
2014-01-04 23:44:28 -08:00
Scotthew 7b9c8de261 Live Data Logging Updates:
- Now Uses static data for static data tables.
2014-01-04 23:22:39 -08:00
Scotthew 3def3b1663 Editor Updates:
- Added log param to table properties.
 - Updated live data overlay functionality.
2014-01-04 22:29:53 -08:00
Scotthew bce412bf9c Added setting for scaling of headers.
- By default headers will be scaled with the data.
2013-12-31 16:50:36 -08:00
Scotthew 8711b05b5d Simplified table menu and toolbar. 2013-12-31 02:08:10 -08:00
Scotthew 012728b656 Enhancement Issue #46:
- Added ability to convert image from 160kb to 192kb
 - Added ability to convert image from 192kb to 160kb
 - Cleaned up the ECUEditorMenuBar class.
Note: Conversion uses method described by throttlehappy (http://romraider.com/forum/viewtopic.php?p=70875#p70875).
2013-12-29 01:25:56 -08:00
Scotthew ff650a0e3e Fixed issues where empty or null axis name throws error.
- Name is now unknown with storage address and/or log param appended.  The format is "Unknown (Storage Address) - Log Param"
 - Added functions for adding/removing roms by name or by "equals" and updated the code to use "equals".
2013-12-16 01:06:59 -08:00
Scotthew 6a8363c400 Removed JFontChooser library.
- The source code was added to the project in previous revisions and modification were made.
2013-09-24 23:20:34 -07:00
Scotthew 326d378a88 - Default table name to "unknown"
- Added checks for table name = null or empty.
 - Added logging to the NullPointerException when populating the Rom.
2013-09-24 23:12:14 -07:00
Scotthew 89825de5ec Set back to connection manager. I had this switched for testing and did not mean to commit. 2013-09-23 00:00:27 -07:00
Scotthew e3380bbcfc Editor Bug Fixes:
- Removed static Settings Functions
 - Switched increase/decrease border colors.
 - Static cells now size to fit text.
 - Opening a new table now looks if the last selected table is visible.  This resolves the open/close window cascade issue.
 - Switching scales now updates the table tool bar.
 - Removed references to Settings from ECUEditor and Removed ECUEditor reference from Editor Menu bar.
Note: Smaller memory footprint.
2013-09-22 23:38:31 -07:00
Scotthew bad937e9bf Set revert point now redraws cells. 2013-09-16 23:45:28 -07:00
Scotthew ab9387a5e4 - Resolves issues with 3D drawing.
- Fixes saving table as string when table includes "static" data.
 - Resolves issues saving as repository.
2013-09-16 23:45:26 -07:00
Scotthew 4d4e8fb447 Rebased with RR and fixed build issues:
- Settings are now controlled through the SettingsManager.
 - Updated FLKC string to be a const and used \u00B0 instead of the degree symbol.
2013-09-16 23:45:25 -07:00
Scotthew ae978c92d9 Added constants for the "Default Scale" name. 2013-09-16 23:41:59 -07:00
Scotthew 27f1996fd1 Updated Static Table Behavior:
- Static tables are now "selectable". They will not highlight but the table toolbar will switch if clicked and all other table selections will be cleared.
 - Static tables can have scales.
 - Table Toolbar only allows changing scales on the static table.
 - Table Property panel now displays all scale information.

Note: it is easier to see that you have selected the static table if toolbar border is enabled (available through the settings).  The selection coloring does not work for static tables.
2013-09-16 23:41:58 -07:00
Scotthew f6c2adaaf6 Updated SettingsManager logic:
- Split load back into a function.
 - New call load if there is an exception during save.
 - Now correctly passing new settings during save.
2013-09-16 23:41:56 -07:00
Scotthew 0e2152f6d5 Settings Update:
Reset Defaults now propagates the following settings:
 - ECU Definition Files
 - Last Image Dir
 - User Level
 - Logger Definition Path
 - Logger Profile Path
 - Logger Output Path.
Moved settings into the SettingsManager.

Note: I am not totally sold on the SettingsManager changes.  This needs to be inspected using VisualVM or similar tools.
2013-09-16 23:41:55 -07:00
Scotthew a308b7bcee Added Setting for the default scale. 2013-09-16 23:41:54 -07:00
Scotthew fe8e71e443 - Removed show real and show raw menu items. This is replaced by the raw value scale.
- Removed overridden validateScale() methods.
2013-09-16 23:41:53 -07:00
Scotthew e45e524e40 Scale and compare updates:
- Removed table compare auto refresh (real time compare update).
 - Changed default scale to raw value.
 - removed comparing flag and replaced with check for null compareTable.
 - Fixed compare color scaling issue.
 - Added the beginnings of the default scale setting.
 - Added refresh compare table button.
2013-09-16 23:41:52 -07:00
Scotthew 1134c45e52 Editor Scale Selection Support:
- Moved Scale reference from DataCell into Table.
 - Added support for multiple table scale definitions.
 - Fixed table2D increment bug.

Note: you will need the new RR ecu definition for multi scaling support.
2013-09-16 23:41:50 -07:00
Scotthew 1e6ce780ca More Cell Color Changes:
- Added button and icon for manually coloring the cells.
 - Fixed drawing of the static cells.
2013-09-16 23:41:49 -07:00
Scotthew a46345edb3 Cell Color Changes:
- Updated cell color functionality.  Part 1.
 - Should give a performance increase.

Note: color scale is set off of the original values.  As values change the colors can move outside the range.  A button will be added to allow for a range refresh and a table redraw.
2013-09-16 23:41:48 -07:00
Scotthew df8221749e Fixes Rom/Table load errors reported in pull request 41:
- parameter ramOffset was hiding the table ramOffset.  The parameter has been renamed and usage was updated appropriately.
2013-09-16 23:41:47 -07:00
Scotthew 55bd417dd2 Added Checks for IndexOutOfBoundsException when population table:
- I'm not sure exactly why we were always looking for ArrayIndexOutOfBoundsException and not IndexOutOfBoundsException.
 - The swing worker was hiding this error and resulted in a failure to load the table.
2013-09-16 23:41:46 -07:00
Scotthew 1632fbd5be Fixed Build Issue:
- revalidate() not supported in 1.6.  Validate makes more sense anyways because we are working with the Frame.
2013-09-16 23:41:45 -07:00
Scotthew b28aac693d Cell Select Fixes:
- Fixed bug: Using the arrow keys to move around a table does not update the table toolbar when moving to a table header.
 - Removed isStatic and isAxis from Table1D.  Instead isStatic is handled by the cells and isAxis is computed from the table type.
 - Resolved clear selection issues.
2013-09-16 23:41:44 -07:00
Scotthew 839aa74c34 Editor Select Updates:
- Add ability to Ctrl+Alt+Click(Drag) to un-select cells.
 - Fixed table header Ctrl click.
2013-09-16 23:41:42 -07:00
Scotthew 6be66d1d6b Added success/failure message when adding or removing associations. 2013-09-16 23:41:41 -07:00
Scotthew aa1cec3666 Axis Fixes and New Settings:
- Added a setting for changing the select color.
 - Added a setting for coloring of axis.
 - Fixed axis comparison, text, and coloring.
 - Fixed axis raw value display.
 - Fixed cell tooltip.  The cell now displays either the bin value or the real value based on the table view setting.
2013-09-16 23:41:40 -07:00
Scotthew 5f4d659e9c Editor Fixes:
- Updated Undo to use setBinValue().  This will allow for redraw when selecting undo or undo all.
 - Added check for no compares or empty list before refreshing table compares.
2013-09-16 23:41:39 -07:00
Scotthew 4a68f17802 Editor Fixes:
- Reduces the calls to drawTable()
 - Rom node and category node now use "table click count" for expand and collapse.
 - Updated Color Scale to use low for 0 and high for NAN.  NAN is caused by a divide by 0.
2013-09-16 23:41:38 -07:00
Scotthew 218f8ddd8f Resolves Fast Decrement Issues:
Helps to limit issue where decrementing cells several times really fast and then highlighting another cell causes the newly highlighted cell to be decremented.

Note: Similar issues may exist.  Long running tasks like refreshing the data bounds needs to happen on a worker thread.  The cursor could be disabled while these tasks are running to avoid these sorts of issues.  I prefer to show the wait cursor but allow clicks.
2013-09-16 23:41:37 -07:00
Scotthew 861f87bc56 Editor Updates:
- Fixed JFontChooser error.  Included JFontChooser.java into project and removed .jar.
 - Cleaned up Table and DataCell logic.
 - Added Table Setting for displaying title border on the table toolbar.
 - Exposed the select and highlight colors.  This existed but did not appear to be used properly.
 - Increased load times.
2013-09-16 23:41:36 -07:00
Scotthew d25c6233b1 Improved Rom loading:
- Unmarshall memory is freed after it completes.  This allows for a lower memory spike and less heap allocation.
2013-09-16 23:41:34 -07:00
Scotthew 76260cf3cf UI Settings:
Click Behavior
 - Click behavior open/close: click to open the table.  If the table is open the next click will close the table.
 - Click behavior open/focus: click to open the table.  If the table is open the next click will focus the table.

Open Table At [0,0]
 - If checked all newly opened tables will open at the point [0,0]
 - If not checked all newly opened tables will cascade from the current selected frame location.  If no table is selected the tables will cascade from the frame at index [0].

 - Moved adding the Rom node to the UI behind applying the table colors.
2013-09-16 23:41:33 -07:00
Scotthew b46b79b6a9 UI Updates:
- Modified editor startup.  Removed unnecessary references from toolbars.
 - Added 2 new settings.  One option for opening the Rom tree view expanded and another for displaying the table toolbar border.
 - Saving settings should now refresh the UI.
 - Fixed table toolbar refresh issue when table is focused by closing another table.
2013-09-16 23:41:31 -07:00
Scotthew 44d958088c Editor Updates:
- "Compare to Table" menu is now populated.  The sub menu item has the tables Rom name and the tooltip will display the table name.
 - Clicking a table name in the tree view will display the table or focus on the table.  The table is no longer closed unless you click the x or select close from the menu.
 - The TableFrame now handles menu actions.
 - Removed TableFrame reference from TableMenuItem.
2013-09-16 23:41:30 -07:00
Scotthew e305d8ab40 More Editor Cleanup Continued:
- Fixed "addRom()" routine.  The tree is now properly built from the vector of TableTreeNodes.
 - Fixed "Close Image" worker.
 - SetUserLevelWorker became much simpler.  It now is just a rebuild of the JTree.
 - RomTreeRootNode.java now is just a basic DefaultMutableTreeNode.
 - Closing a Rom now properly cleans up memory.
Note: lastSelectedRom will not be set when focusing on a TableFrame.  This feature requires unnecessary work and/or references.  lastSelectedRom will now only be set when selecting something in Rom tree.
2013-09-16 23:41:29 -07:00
Scotthew 291155f47a More Editor Cleanup:
- Combined idea of RomTreeNode and Rom into one.
 - Rom now contains a list of TableTreeNodes.
 - TableTreeNode now consists of a TableFrame.java.
 - TableFrame includes the reference to the table.
 - Fixed DTC TablePropertyPanel error.
 - Fixed definition locating routine.
2013-09-16 23:41:28 -07:00
Scotthew 1c9ce70774 Editor Comparison Updates:
- Resolved issue where missing TableSwitch getType() method breaks table rendering.
 - Added ability to compare DTC's.  Differences will change the DTC radio button text to Red.
 - Unsupported DTC menu options are now disabled.
 - Wrapped all table compare functions in try catch returning false on errors.
 - Added Override equals() method to axis tables (Table1D).
2013-09-16 23:41:27 -07:00
Scotthew a49e03a24e Updated UI Refresh to go back to using Repaint. 2013-09-16 23:41:26 -07:00
Scotthew 90a747bd57 Editor Cleanup:
- Moved static settings to the Settings class.
 - Added better support for cleaning up listeners, and refreshing the UI.
 - Now manually call GC after open and close.
 - Revised the compare image functionality.
 - Revised getTableAsString() functions.  These now can get different values as a string.
 - Revised "save as repository" to properly save table headers.
2013-09-16 23:41:25 -07:00
Scotthew 04ea346a70 Clean Up:
- Now using the ECUEditorManager to access the ECUEditor.
 - Moved static final values to the settings class.
2013-09-16 23:41:24 -07:00
Dale Schultz 5c0c0239be Release Candidate 0.5.7 RC2 2013-08-28 18:27:07 -04:00