Commit Graph

3198 Commits

Author SHA1 Message Date
Alexandru Lazar ae2e227682 Persist main window geometry
Added support for saving and restoring main window geometry.

Saving is done in a somewhat contrieved manner. In order to avoid
exposing App.defaults (or App) to the UI class, a geomUpdate
signal was added to to the FlatCAMGUI class. The signal is emitted
whenever FlatCAMGUI thinks its geometry should be saved (which, so
far, seems to be only in closeEvent()). FlatCAMApp has a slot for
this signal, which updates the defaults dictionary.

Restoring is done by explicitly applying the loaded geometry to
the UI. The UI is initialized (i.e. FlatCAMGUI's __init__ is
called) very early in the initialization sequence, before the
defaults are loaded, so at that time the persisted geometry is
not known to the program. As soon as it is known (i.e. after
load_defaults() is completed), we apply it.

Signed-off-by: Alexandru Lazar <alex@zencoding.org>
2015-03-27 13:48:51 +02:00
Juan Pablo Caram 476f1e5858 Version 8.3 for Windows. 2015-02-22 17:34:57 -05:00
jpcaram 873db32aad Fixed gerber parse error related to extra trace. 2015-02-17 17:54:51 -05:00
Juan Pablo Caram 9b9258a831 Restored cd into app folder. 2015-02-13 17:40:33 -05:00
Juan Pablo Caram 519df2385f Final 8.2 for Windows. Removed cd into app folder. 2015-02-13 17:39:22 -05:00
Juan Pablo Caram dda9bb1864 Version 8.2. Log level to WARNING. Removed unused scipy.optimize. 2015-02-13 16:57:42 -05:00
jpcaram e5a8a53ed4 Commented menu in FlatCAMDraw 2015-02-13 16:22:47 -05:00
jpcaram 5ab7e04c2e Moved object name collision detection from new_object() to ObjectCollection.append(). Solves issue #107. 2015-02-13 15:04:57 -05:00
jpcaram b89a04d1e2 Prepend to gcode. Impements issue #115. 2015-02-13 14:47:00 -05:00
jpcaram 9dec4ff32f Activity shown for CNC Job generation via context manager. 2015-02-13 14:37:54 -05:00
jpcaram 2c699406f7 Activity indicator as context manager when opening files. Opening gerber from File->Open Gerber launches open_gerber in thread. 2015-02-13 14:05:06 -05:00
jpcaram 8da39d54d4 Desctivates canvas callbacks in drawing tool when deactivated. 2015-02-12 17:06:29 -05:00
jpcaram 247901655c Complete tool change sequence for gcode generated from excellon. 2015-02-07 19:32:02 -05:00
jpcaram 41e63c4390 Added paint_connect to standard paint algorithm. Resolves issue #103. 2015-02-07 18:41:29 -05:00
jpcaram 6e8f82c487 Tool change support fixes. 2015-02-07 13:41:56 -05:00
jpcaram bba4f3a8bb Tool change support for gcode from excellon. Untested. 2015-02-07 13:32:58 -05:00
jpcaram 17a3316ce4 Improved speed in FlatCAMRTreeStorage. 2015-02-06 17:16:11 -05:00
jpcaram 23b20ba716 Added intersection tool to Drawing Tool. 2015-02-06 16:10:15 -05:00
jpcaram e353413cd3 Disabled "Ok"/"Update Geometry" button after first update. Solves issue #105. 2015-02-05 09:18:54 -05:00
jpcaram 681996d1f6 Started profiling project (Issue #109). Created first profiling script and included test gerber. 2015-02-02 15:37:08 -05:00
jpcaram a34ca26a24 Introduce activity monitor FlatCAMProcess.py. 2015-02-01 20:03:03 -05:00
jpcaram 87fdf0a581 Another fixed bug introduced to clear_poly() in previous commit. Added process widget. 2015-01-30 18:10:06 -05:00
jpcaram f92255b8f9 Fixed bug introduced to clear_poly() in previous commit. 2015-01-30 15:17:57 -05:00
jpcaram d903356a55 Solved units change problem during parsing (issue #80). 2015-01-30 14:41:56 -05:00
jpcaram 3aa1746b23 Refactored basic painting algorithm to generate FlatCAMRtreeStorage. 2015-01-30 13:47:25 -05:00
jpcaram 4389f173a8 Removed path_join() from painting algorithm as paint_join() should do the trick alone. 2015-01-29 17:22:09 -05:00
jpcaram c2c7a83855 Seed painting algorithm working with optimizations. 2015-01-29 17:02:06 -05:00
jpcaram 6733ebbfa8 Refactored paint_connect() and path_connect() to receive and return FlatCAMRTreeStorage objects. Updated unittests acordingly. 2015-01-29 15:52:03 -05:00
jpcaram a1345f0a58 Fixes to path_connect() related to LinearRings. Added test cases. 2015-01-27 18:16:22 -05:00
jpcaram 573581ca80 Fixes to path_connect() and added units tests for it. 2015-01-26 17:52:26 -05:00
jpcaram 6b51f03db2 "Paint connect" functional. Added to seed-based painting and unit-tested. "Path connect" still pending. Disabled. "Path connect" unit test added. 2015-01-25 16:55:22 -05:00
jpcaram 9632d9a98f First write (untested) of paint_connect. 2015-01-22 21:23:10 -05:00
jpcaram a42c3f6e10 Functional Geometry.path_connect() and added to seed-based painting algorithm. 2015-01-22 18:43:39 -05:00
jpcaram a7dc9bcc09 Path optimization: Connect adjacent paths. 2015-01-22 18:11:09 -05:00
jpcaram e5185dd66f Cleanup of camlib.CNCjob. 2015-01-22 17:23:18 -05:00
jpcaram fd2657a8d7 Solves seed painting problem in issue #102. 2015-01-21 09:50:01 -05:00
Juan Pablo Caram 0cee5d95cc Not re-raising TCL errors. Solves issue #82. 2015-01-19 17:49:49 -05:00
Juan Pablo Caram 05d6adda8b Chdir to application directory. 2015-01-19 17:24:41 -05:00
Juan Pablo Caram 6361ad3338 Path check. 2015-01-19 17:17:16 -05:00
Juan Pablo Caram 922aa6734d Added python-simplejson line to setup_ubuntu.sh. 2015-01-19 12:41:34 -05:00
Juan Pablo Caram d002b6c5c6 Hid offset and scale tools from CNCJob GUI. Such features are not implemented for CNCJob objects. 2015-01-19 11:53:28 -05:00
Juan Pablo Caram 670dd48127 Added "excellon_zeros" application default. It get propagated to the Excellon class. 2015-01-18 21:10:19 -05:00
Juan Pablo Caram 34a6b60053 Fixed Geometry merging. Solves issue #99. 2015-01-18 20:23:37 -05:00
Juan Pablo Caram 840cfcf9ff Cleanup for 8.1 2015-01-15 15:53:42 -05:00
jpcaram 4cbeec5a84 Solves exception when hitting a key a no tool being active in FlatCAMDraw. Was also preventing scrolling. Solve #93. 2015-01-14 21:00:02 -05:00
jpcaram 2a21c426e3 Fixes replot problem after delete with key. 2015-01-14 20:35:49 -05:00
jpcaram 4c234fcd55 Fixes polygon finding for painting. Function find_polygon made a method of Geometry. Solves Issue #96. 2015-01-14 20:24:37 -05:00
jpcaram 6582a6c748 Unittesting complete for Excellon number format. 2015-01-12 15:30:41 -05:00
jpcaram 3bedda2aeb Unittests for Excellon number parser. 2015-01-11 19:39:01 -05:00
jpcaram 1b154ab057 Added support for M71/72 in Excellon parser. 2015-01-11 18:28:59 -05:00