Commit Graph

41 Commits

Author SHA1 Message Date
Damian Wrobel
7400329b44 Fix object has no attribute 'availableGeometry'
Fixes:
  Traceback (most recent call last):
    File "flatcam.py", line 174, in <module>
      fc = App(qapp=app)
           ^^^^^^^^^^^^^
    File "appMain.py", line 695, in __init__
      current_screen_center = screen.availableGeometry().center()
                              ^^^^^^^^^^^^^^^^^^^^^^^^
  AttributeError: 'NoneType' object has no attribute 'availableGeometry'

Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
2024-01-11 21:57:50 +01:00
Marius Stanciu
9089fa6b1f - when tabs are set as not detachable, double_clicking the Plot_Area tab will toggle the notebook area visibility
- fixed the Full Screen issue with not remembering the toolbar's state before full screen event
2023-12-16 16:06:03 +02:00
Marius Stanciu
6b4483044b - some names are updated
- made sure that when a new project is created that the levelling grid shapes are deleted
- some code optimization and code refactoring
2023-11-25 14:40:51 +02:00
Marius Stanciu
4458249ee5 - trying to solve an idiosyncrasy of MacOS which do not allow modifying the main menu in a non-main thread which is done after editing an object 2023-11-14 21:49:17 +02:00
Marius Stanciu
28dbb70126 - added qdarktheme package into the code 2023-10-19 13:49:14 +03:00
Marius Stanciu
7fa40fd940 - fixed aperture macros parse for Gerber files generated from KiCAD 7.0.7 2023-09-23 20:25:34 +03:00
Marius Stanciu
d96d981643 - fixed a number of bugs reported in the issue #32 here: https://bitbucket.org/marius_stanciu/flatcam_beta/issues/32/crashes-on-close-random-crashes-that 2023-07-04 00:12:36 +03:00
Marius Stanciu
e965ca5494 - added a new signal allowing printing messages in statusbar without polluting the Tcl Shell; to be used in the future for low-ranking messages 2023-06-19 14:37:31 +03:00
Marius Stanciu
63071a9bae - overwritten the Beta_8.995 branch with the Gerber_Editor_Upgrade branch 2023-05-24 18:07:05 +03:00
Marius Stanciu
054a812f7b - added a new setting that control the selection shape creation, in the Preferences. If the checkbox Selection Outline is checked then the selection shape is only an outline. 2022-05-19 14:13:25 +03:00
Marius Stanciu
04bb085794 - the ArgThread class is no longer launched in case of Linux systems due of crashes 2022-05-17 20:35:14 +03:00
Marius Stanciu
1dc26af34c - fixed the join-as-gerber functionality 2022-05-13 01:35:23 +03:00
Marius Stanciu
e8a15156db - upgraded the Geometry Editor main UI
- upgraded the FCButton widget (and made it used everywhere instead of the QPushButton) so it can have the color and font weight properties settable
2022-05-10 07:01:14 +03:00
Marius Stanciu
181a392cec - added a hack so the dark stylesheet for QWidget is reapplied if that Qwidget is removed (I don't know why it is lost in the first time)
- when exiting an Editor with a sub-tool active the cursor data display feature is removed
2022-05-05 18:25:29 +03:00
Marius Stanciu
1fd08ca30b - changed the activity GIF's for the dark theme
- changed some of the dark theme icons to the red color
2022-05-05 05:03:01 +03:00
Marius Stanciu
b9edac24e8 - updated the language strings 2022-04-30 18:42:31 +03:00
Marius Stanciu
753b6c6d5d - in Excellon Editor, finished th upgrade work on the Slot Array Plugin 2022-04-30 16:34:22 +03:00
Marius Stanciu
545e594ed0 - in Isolation Plugin made sure that the last displayed message is the warning, in the case of using tool validation and the tool is not validated
- some more work in the Excellon Editor - Drill adding
- some fixes in the image loader when clicking the an image that is in the list of previous loaded files
- a small fin in the SVG parser
- added a new Tcl command that is returning the name of the active object ('get_active') to accompany the 'set_active' command
- a small fix for the 2d graphic mode by replacing the q5agg matplotlib backend with the qtagg backend which should work with the Qt6
2022-04-28 13:39:48 +03:00
Marius Stanciu
779a8ccc9f - activated the 'View Source' option in the project menu context menu for the Geometry objects
- in Image Import plugin now the created objects have the 'source_file' attribute with content
- working in the Excellon Editor - wip
2022-04-26 14:29:23 +03:00
Marius Stanciu
1459423ca3 - deleted the Calibration Plugin (made redundant by changes in other Plugins)
- some strings were updated
2022-04-25 01:09:51 +03:00
Marius Stanciu
cb7bcf257f - fixed some leftovers due of recent changes in the theme management
- added a new feature (new modules are required) in the Image Plugin (Menu -> File -> Import -> Import Image) that allow tracing images. This may allow engraving pictures.
- started to add UI's for the Excellon Editor Tools (really early work)
2022-04-23 18:12:43 +03:00
Marius Stanciu
af6315f891 - fixed and prettified the 'Light' theme 2022-04-19 00:29:18 +03:00
Marius Stanciu
00144bafa0 - some changes in the theme selection, added that the default situation is where no theme is applied
- some string changes
2022-04-18 22:22:47 +03:00
Ali Khalil
ce4b43bd36 Menu icons location changes restored and will be addressed in future update with better mechanism. FCLabel calls updated where possible based on new method parameters 2022-04-18 11:36:08 +03:00
Ali Khalil
84cdc87030 FCLabel behavior modified to match updated method based on PR discussion 2022-04-18 09:18:17 +03:00
Ali Khalil
5cc869c1fd Application wide updates for dark mode support including dark canvas option and better colors 2022-04-17 22:41:02 +03:00
Ali Khalil
adad500f15 Theme option added to match OS appearance. Sets appearance on application launch. 2022-04-17 21:48:31 +03:00
Marius Stanciu
b0b2c8e7f5 - some fixes to the Tcl commands contribution from Ali Khalil
- refactoring code in Distance Plugin and making sure that the measurements are done correctly - work in progress
2022-04-07 14:58:16 +03:00
Marius Stanciu
a59f996819 - some reformatting and class rename
- when clicking the coordinates toolbars in the status bar now the Distance Plugin is shown and if already displayed, it is closed (toggle action)
2022-04-03 15:06:36 +03:00
Marius Stanciu
1b9e2feb75 - in Cutout Plugin exposed the any_cutout_handler() method and made sure that the gaps parameter case does not matter 2022-04-03 12:18:02 +03:00
Marius Stanciu
80a699693f - make sure that replotting objects is done only for enabled objects 2022-04-02 21:21:05 +03:00
Marius Stanciu
ada48269a9 - refactored the imports in the Plugins, moved almost all imports in the AppTool file
- fixed a number of issues, mostly leftovers from moving the UI of a Plugin in its own class
- fixed some bugs in the Punch Gerber plugin
- fixed some bugs where the 'pool' parameter was not passed when creating shapes collections (in 3D graphic mode); I wonder how it worked until now
- added a new feature in the Isolation Plugin: now for all the isolation Geometry objects this plugin can do a supplementary simplification of the geometry using the tolerance parameter defined in the General Parameters. This should lead to a reduced number of tool lifts when doing corners
2022-03-31 19:28:19 +03:00
Marius Stanciu
e1824a09f7 - make sure that the state of the workspace is saved correctly on change 2022-03-31 11:40:50 +03:00
Marius Stanciu
c4151631ec - changed the app main icons, hopefully they are more visible on black backgrounds than the ones that FlatCAM has 2022-03-31 11:28:35 +03:00
Marius Stanciu
5de1144565 - when doing PDF printing, the cncjob objects are prioritized and placed on top of Gerber objects 2022-03-30 18:18:07 +03:00
Marius Stanciu
69a1052a44 - when doing PDF printing and no object is selected now the default action is to print everything that fits within the workspace 2022-03-30 18:08:47 +03:00
Marius Stanciu
7f9a23c41c - improved how the PDF printing works: now the Excellon files are always on top and from the rest of objects the first selected is on top, below the Excellons 2022-03-30 17:57:41 +03:00
Marius Stanciu
a3f9d7c248 - added ability to change the mouse cursor color on the fly
- in Distance Plugin made sure that the 'big cursor' (when is used) is black in color (visible in most situations)
- in Distance Plugin, for the 2D graphic mode activated the utility line
2022-03-29 02:14:44 +03:00
Marius Stanciu
4745e1cab9 - in Distance Plugin added the ability to use a big cursor; not finished: when the grid is off it is not displayed 2022-03-28 20:06:11 +03:00
Marius Stanciu
c8620fd9d2 - trying to make loading a project an easier task for the application 2022-03-27 22:18:22 +03:00
Marius Stanciu
eec366ce7f - refactoring names for some classes 2022-03-24 18:35:44 +02:00