Commit Graph

508 Commits

Author SHA1 Message Date
Marius Stanciu 98541775d4 - made some corrections - due of recent refactoring PyCharm reported errors all over (not correct but it made programming difficult)
- modified the requirements.txt file to force svg.path module to be at least version 4.0
2020-04-30 12:47:07 +03:00
David Robertson 9be8665311 Grouped the preferences UI files by tab (except for tools1/2 which I put together) 2020-04-30 00:11:45 +01:00
David Robertson 6b36667c15 Merge branch 'Beta' into separate-PreferencesUI-classes-into-individual-files 2020-04-29 23:42:35 +01:00
David Robertson f7989c029f Split up PreferencesUI.py into individual files for each class, then fixed the imports everywhere that broke because of this. 2020-04-29 22:53:16 +01:00
Marius Stanciu 65717ddce1 - some more strings changed -> updated the translations
- replaced some FormLayouts with Gridlayouts in Tool Cutout.
2020-04-30 00:05:12 +03:00
David Robertson aa16b5e339 Shift the PreferencesUI.py file into a new `preferences` subpackage 2020-04-29 22:02:25 +01:00
Marius Stanciu 804b62af7f - solved the problem with not closing all the tabs in Plot Area when creating a New Project; the issue was that once a tab was removed the indexes are remade (when tab 0 is removed then tab 1 becomes tab 0 and so on) 2020-04-29 21:43:28 +03:00
Marius Stanciu 2ca6e2e3f1 - modified the method that detects which tab was closed in the Plot Area so it will no longer depend on it's translated text but on it's objectName set on the QTab creation 2020-04-29 10:48:47 +03:00
Marius Stanciu a5384d50d8 - more PEP8 changes
- in PreferencesUI.PreferencesUIManager class I removed the need to pass reference to the App class since it this was available through the 'ui' parameter
- some fixes due to recent refactoring
- minor bugs fixed (not so visible)
- promoted some methods to be static
- set the default layout on first run to the 'minimal' value
2020-04-29 10:09:07 +03:00
David Robertson db37714025 Merge branch 'Beta' of https://bitbucket.org/jpcgt/flatcam into extract-prefs-code-from-app-class 2020-04-29 02:57:17 +01:00
David Robertson a05c174ec8 Fix some things that I broke and further cleanup 2020-04-29 02:46:52 +01:00
David Robertson 72c2dd5f26 Working on extracting the prefs UI code from the App class 2020-04-29 01:49:34 +01:00
Marius Stanciu 907e4bc6d9 - disabled a skip_quotes method in ToolShell.FCShell class so I can now use quotes to enclose file paths with spaces inside 2020-04-28 21:08:40 +03:00
Marius Stanciu 35674c9647 - in SVG parser modified some imports to be one on each line
- fixed the Tcl Command BBox (leftovers from recent global changes)
- fixed some typos in strings reported by @pcb-hobbyst on FlatCAM forum
2020-04-28 19:34:23 +03:00
Marius Stanciu f03d6bfda4 - added a new package to be installed in Linux to make available the black theme for FlatCAM beta
- moved all the 'share' resources (icons) to the 'assets/resources' folder
- some more fixes to problems generated by latest changes in the open handlers
- modified the make_freezed.py script for the new location of the icons
- added a fix for the ConnectionRefusedError in Linux that is issued when first running after a FlatCAM crash
2020-04-28 17:23:49 +03:00
Marius Stanciu eed7e3d620 - some minor changes in the Python version detection
- added a new Tcl Command named SetPath which will set a path to be used by the Tcl commands. Once set will serve as a fallback path in case that the files fail to be opened first time. It will be persistent, saved in preferences.
- added the GUI for the new Open Example in the FIle -> Scripting menu.
- I am modifying all the open ... handlers to add a parameter that will flag if the method was launched from Tcl Shell. This way if the method will fail to open the filename (which include the path) it will try to open from a set fallback path.
- fixed issue #406, bug introduced recently (leftover changes).
- modified the ImportSVG Tcl command name to OpenSVG (open_svg alias)
- added a new Tcl command named OpenDXF (open_dxf alias)
- fixed some errors in Scripting features
- added a new Tcl command named GetPath as a convenient way to get the current default path stored in App.defaults['global_tcl_path']
2020-04-28 14:37:34 +03:00
Marius Stanciu fe2d232f60 - minor changes
- moved the ObjectCollection class to the flatcamObjects folder where it belongs
2020-04-27 14:05:40 +03:00
Marius Stanciu 3ec666edbb - replaced the testing if instance of FlatCAMObj with testing the obj.kind attribute
- removed the import of the whole FlatCAMApp file only for the usage of GracefulException
- remove the import of FlatCAMApp and used alternate ways
- optimized the imports in some files
- moved the Bookmarksmanager and ToolDB classes into their own files
- solved some bugs that were not so visible in the Editors and HPGL parser
2020-04-27 10:03:22 +03:00
Marius Stanciu 61020e3624 - finished the moving of all Tcl Shell stuff out of the FlatCAAMApp class to flatcamTools.ToolShell class
- updated the requirements.txt file to request that the Shapely package needs to be at least version 1.7.0 as it is needed in the latest versions of FlatCAM beta
- some TOOD cleanups
- minor changes
2020-04-27 06:55:08 +03:00
Marius Stanciu 527dcf6270 - added possibility to save as text file the content in Tcl Shell browser window when clicking the Save log context menu entry 2020-04-24 08:12:21 +03:00
Marius Stanciu 7df7e17569 - some message strings cleanup 2020-04-24 07:23:14 +03:00
Marius Stanciu 26dd29e7dd - the status bar messages that are echoed in the Tcl Shell will no longer have all text colored but only the identifier 2020-04-24 06:59:49 +03:00
Marius Stanciu b569fa1748 - added a new menu entry in the context menu of the Tcl Shell: 'Save Log' which will save the content of the Tcl Shell browser window to a file 2020-04-24 04:51:55 +03:00
Marius Stanciu 495650fc73 - remove some method declaration with type hints that work only in Python > 3.8 2020-04-23 03:41:58 +03:00
Marius Stanciu 32ff35b4ff - fixed the Tcl command Plot_All that malfunctioned if there were any FlatCAM scripts (or FlatCAM documents) open
- updated the shortcuts list
2020-04-23 03:34:09 +03:00
Marius Stanciu 3735753a93 - fixed the Tcl Command Help to work as expected; made the text of the commands to be colored in Red color and bold
- added a 'Close' menu entry in the Tcl Shell context menu that will close (hide) the Tcl Shell Dock widget
- on launching the Tcl Shell the Edit line will take focus immediately
- in App.on_mouse_move_over_plot() method no longer will be done a setFocus() on every move, only when it is needed
2020-04-23 02:07:55 +03:00
Marius Stanciu a1499158c2 - refactored some of the code in the App class and created a new Tcl Command named Help 2020-04-22 23:00:54 +03:00
Marius Stanciu f690c2b09d - added a new feature, project auto-saving controlled from Edit -> Preferences -> General -> APP. Preferences -> Enable Auto Save checkbox 2020-04-22 01:19:49 +03:00
Marius Stanciu 3c291f259e - fixed a bug in loading objects by drag&drop into the Project Tab where only one object in the selection was loaded 2020-04-20 12:02:01 +03:00
Marius Stanciu dc1a198235 - added ability to use line width when adding shapes for both Legacy and OpenGL graphic engines
- added the linewidth=2 parameter for the Tool Distance utility geometry
- fixed a selection issue in Legacy graphic mode for single click
2020-04-20 04:18:12 +03:00
Marius Stanciu ecf61fdf6d - made the Grid icon in the status bar clickable and it will toggle the snap to grid function 2020-04-20 00:57:13 +03:00
Marius Stanciu 5a5a18ef43 - some PEP8 changes in Geometry Editor and other minor changes 2020-04-20 00:12:58 +03:00
Marius Stanciu 2dfcdc95e4 - fixed more issues (new) in NCC Tool
- added a new layout named 'minimal'
2020-04-19 22:22:19 +03:00
Marius Stanciu 49fa926d50 - fixed a bug that did not allow to edit GUI elements of type FCDoubleSpinner if it contained the percent symbol
- some small optimizations in the GUI of Cutout Tool
2020-04-19 04:41:58 +03:00
Marius Stanciu 4c196f6bae - the Show Shell in Edit -> Preferences will now toggle the Tcl shell based on the current status of the Tcl Shell
- updated the Tcl command Isolate help for follow parameter
2020-04-13 20:44:51 +03:00
Marius Stanciu abce81d802 - fixed issue #394 - the saveDialog in Linux did not added the selected extension
- fixed issue #389 - in previous commits
- fixed issue #391 - in previous commits
2020-04-11 02:55:32 +03:00
Marius Stanciu 418ebd6606 - minor changes in GUI (Save locations in Menu -> File) and the key shortcuts 2020-04-11 01:51:43 +03:00
Marius Stanciu d80de538e3 - modified all CTRL+ with Ctrl+ and all ALT+ with Alt+ and all SHIFT+ with Shift+. Fixed issue #387. 2020-04-09 05:16:48 +03:00
Marius Stanciu d14e5d9445 - fixed a bug in handling the UP/DOWN key shortcuts that caused a crash when no object was selected in the Project Tab; also made sure that the said keys are handled only for the Project Tab 2020-04-06 20:52:00 +03:00
Marius Stanciu 69b39e2937 - added key shortcuts (arrow up/down) that will select the objects in the Project tab if the focus is in that tab 2020-04-06 06:28:55 +03:00
Marius Stanciu 8a2ed1c726 - some changes in the Geometry UI 2020-04-06 01:56:38 +03:00
Marius Stanciu b53c1c403a - fix for contextual menus on canvas when using PyQt versions > 5.12.1
- decision on which mouse button to use for panning is done now once when setting the plotcanvas
2020-04-05 16:32:16 +03:00
Marius Stanciu 3d39916b5f - minor changes to increase compatibility with Python 3.8 2020-04-01 18:45:20 +03:00
Marius Stanciu 1ca650e883 - modified the new database to accept data from NCC and Paint Tools 2020-03-29 14:22:11 +03:00
Marius Stanciu 22f74edfab - added to Paint and NCC Tool a feature that allow polygon area selection when the reference is selected as Area Selection
- in Paint Tool and NCC Tool added ability to use Escape Tool to cancel Area Selection and for Paint Tool to cancel Polygon Selection
2020-03-20 13:25:14 +02:00
Marius Stanciu e6917ba1ab - fixed Properties Tool due of recent changes to the FCTree widget 2020-03-13 15:43:26 +02:00
Marius Stanciu 1a06ce6a2d - working on the new database
- fix a bug in the TextInputTool in FlatCAM Geometry Editor that crashed the sw when some fonts are not loaded correctly
2020-03-12 18:20:22 +02:00
Marius Stanciu 15ee54d057 - updated all the FlatCAM Tools and the Gerber UI FCComboBoxes to update the box value with the latest object loaded in the App
- some fixes in the NCC Tool
- modified some strings
2020-03-04 00:27:51 +02:00
Marius Stanciu 0477a9860a - added property that allow the FCComboBox to update the view with the last item loaded; updated the app to use this property 2020-03-02 06:17:18 +02:00
Marius Stanciu bac37865e9 - updated the UI in Geometry Editor 2020-03-01 20:40:07 +02:00