Commit Graph

32595 Commits

Author SHA1 Message Date
CalligaroV
457b676972 [Feature Request] [Draft] [UI/UX] Remove the center arrow on radial dimensions (#10655)
Related to issue #7573

Forum discussion

https://forum.freecadweb.org/viewtopic.php?p=631252#p631252

These modifications don't add the new properties suggested on the issue mentioned above and suggested on the forum discussion but just remove the center arrow

Other info and discussion can be found at https://gitlab.com/calligarov/FreeCAD/-/merge_requests/1
2023-09-13 15:27:51 +02:00
wandererfan
0b13057f10 [Part]allow negative scale factors 2023-09-13 08:13:12 -04:00
wmayer
d74ffd358b Part: fix encoding issue in BOPProgressIndicator::Show 2023-09-13 12:04:46 +02:00
Yorik van Havre
455b3f5540 Merge pull request #10535 from Syres916/Py_311_Unicode_Fix
[Start] Fix Python 3.11 Unicode Errors
2023-09-13 11:41:53 +02:00
Roy-043
25960b42f3 Draft: importSVG.py: check and fix path faces
Fixes #10659.
2023-09-12 23:16:41 +02:00
wmayer
d9d7bf87ae MSVC: fix several compiler warnings 2023-09-12 22:57:26 +02:00
pre-commit-ci[bot]
d793d1c177 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-12 21:19:33 +02:00
wmayer
309602d8e8 Part: move scale command
See https://github.com/FreeCAD/FreeCAD/pull/10583#issuecomment-1716187490
2023-09-12 21:19:33 +02:00
pre-commit-ci[bot]
e92ed45df9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-12 13:02:35 -04:00
sliptonic
adec096db4 Merge pull request #10529 from wwmayer/cancel-button-feature
Gui: Add cancel button to transform task UI dialog
2023-09-11 10:55:00 -05:00
sliptonic
a99706ff68 Merge pull request #10586 from wwmayer/issue_9422
Gui: fixes issue #9422: Dependency Graph: export to .dot/.gv
2023-09-11 10:39:00 -05:00
sliptonic
7074f34a93 Merge pull request #10597 from howie-j/sketcher_dim_key
[Sketcher] Change Sketcher_Dimension modifier key from SHIFT to M
2023-09-11 10:38:07 -05:00
Yorik van Havre
dee27e4098 Merge pull request #10619 from wwmayer/fix_issue_10617
Gui: fixes #10617: Ctrl+C only stop python running in console not from macros
2023-09-11 17:36:43 +02:00
sliptonic
f944083818 Merge pull request #10632 from Rexbas/rotation-center-opencascade
Gui: Fix rotation center indicator for OpenCascade style
2023-09-11 10:35:12 -05:00
wmayer
db9d6db34e TD: remove unused class member
Fix compiler warning: -Wunused-private-field
2023-09-11 11:34:29 -04:00
wmayer
815626303e Robot: Apply clang format 2023-09-11 15:58:24 +02:00
wmayer
4c470ecd11 Robot: Apply clang format 2023-09-11 15:58:24 +02:00
wmayer
e1aa8197d3 Robot: Apply clang format 2023-09-11 15:58:24 +02:00
Yorik van Havre
b371058864 Draft: Allow to set a custom feet separator for dimensions (#10481) 2023-09-11 14:05:26 +02:00
wmayer
9d2775eda3 Import: move several .py files that black fails to re-format to a new directory and exclude it 2023-09-11 00:48:18 +02:00
wandererfan
1fccf89745 [TD]fix label generation complex section 2023-09-10 14:25:15 -04:00
wandererfan
7ea6b4202d [TD]fix label generation simple section 2023-09-10 14:25:15 -04:00
wandererfan
404351065e [TD]fix fail on section delete
- fails in onChange during delete due to null BaseView
2023-09-10 14:25:15 -04:00
Chris Hennes
0bc6870618 Update translations (#10613)
* Update translations
* Start: Remove Start.ts
2023-09-10 13:06:26 -05:00
pre-commit-ci[bot]
7eb41b4a78 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-10 19:23:47 +02:00
wmayer
af3a8d4224 Import: Apply clang format 2023-09-10 19:23:47 +02:00
wmayer
bf619d56eb Import: Apply clang format 2023-09-10 19:23:47 +02:00
wmayer
4f27591e67 Gui: fix some MSVC truncation warnings
See forum: https://forum.freecad.org/viewtopic.php?t=81051
2023-09-10 18:08:06 +02:00
andrea
4447634c06 removed unused file 2023-09-10 16:03:46 +02:00
pre-commit-ci[bot]
5fd4e5acc5 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-10 16:01:37 +02:00
wmayer
811abd699c Sheet: remove trailing whitespace
pre-commit.com hooks will remove the trailing whitespaces from the .ts files
2023-09-10 16:01:37 +02:00
wmayer
b5d363baf1 Sheet: Apply clang format 2023-09-10 16:01:37 +02:00
wmayer
50bb81e6fc Sheet: Apply clang format 2023-09-10 16:01:37 +02:00
wmayer
4d3c9ce1c5 Sheet: Apply clang format 2023-09-10 16:01:37 +02:00
Rexbas
4850443238 Gui: Fix rotation center indicator for OpenCascade style 2023-09-10 14:03:38 +02:00
pre-commit-ci[bot]
1b33e4cb4b [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-10 12:37:47 +02:00
wmayer
ee0dd92233 Drawing: Apply clang format 2023-09-10 12:37:47 +02:00
wmayer
7bc320faf4 Show: Apply clang format 2023-09-10 12:20:59 +02:00
wmayer
33f114a4cb Plot: Apply clang format 2023-09-10 11:31:36 +02:00
wmayer
780ce5c766 JtReader: Apply clang format 2023-09-10 11:25:51 +02:00
wmayer
1285b43315 Cloud: Apply clang format 2023-09-10 11:10:12 +02:00
howie-j
0cee69105a Merge branch 'FreeCAD:master' into sketcher_dim_key 2023-09-10 00:09:28 +02:00
andrea
63a82b0b17 The DownloadStatistics.py file is the duplication of the githubstats.py file 2023-09-09 17:55:25 +02:00
andrea
4897202bc4 fix vtk > 6.1 check 2023-09-09 17:52:11 +02:00
andrea
19272554e1 Removed old code using qt<5.4 2023-09-09 17:50:51 +02:00
wmayer
ccfda42dfb Gui: fixes #10617: Ctrl+C only stop python running in console not from macros
This commit handles the execution from the Python editor
2023-09-09 14:19:00 +02:00
wmayer
ab3878ad97 Gui: fixes #10617: Ctrl+C only stop python running in console not from macros
This commit handles the execution from the macro dialog
2023-09-09 14:02:57 +02:00
mosfet80
67a0d077e1 Delete src/Tools/astylerc
Removed config file for  astylerc c c++ formatter tool
2023-09-09 01:12:49 +02:00
wmayer
26cd974e08 Gui: fix clang-tidy warning 2023-09-08 21:45:10 +02:00
Michael Tuma
32c5968069 Made the interval that the Python profiler runs at configurable
Added a "User parameter:BaseApp/Preferences/PythonConsole/ProfilerInterval" int
property which sets how often (in milliseconds) the Python profiler runs while
Python code is running. Setting this value to zero will totally disable it.

Also added a preference in the Python console screen which allows the user to
set the value of this property to between 0 (disabled) and 5000 (once every 5
seconds). (+1 squashed commits)

Squashed commits:

[cca88ac633] Made the Python profiler only run when the console is running code

This has two purposes. First, it prevents a performance impact from running the
profiler whenever Python code is running. Second, it prevents crashes caused by
Qt's process events function being called too frequently. When the Python code
is running in the console, it monopolizes the main thread and prevents events
from being processed. Therefore, causing events to be processed in the callback
should not force events to be processed too frequently, because the normal loop
is being prevented by the Python code. (+1 squashed commits)

Squashed commits:

[45f86917e6] Made long-running Python code not freeze the GUI without multithreading

Removed the background thread running Python code and replaced it with a custom
profiler which the Python interpreter runs frequently (at every Python opcode I
believe) on the main thread whenever Python code is running. The profiler will
make Qt process any new events every 200 ms, preventing "App not responding"
messages and making sure any Ctrl+C keypresses will be processed. This prevents
the previous issue where running anything GUI-related from Python would crash
the program (because Qt isn't thread-safe). (+1 squashed commits)

Squashed commits:

[0ef7d810b3] Made the process of getting thread IDs cross-platform compatible

Instead of using <threads.h>, now the standard <thread> header from C++
11 is used to find the thread ID, since <threads.h> is apparently not
available on Windows. (+1 squashed commits)

Squashed commits:

[74c7b867f2] # This is a combination of 2 commits.

Python from the console now runs in the background

In a nutshell, all Python code which is input from the interactive console
now runs in a seperate QThread which runs in the background, instead of
on the UI thread. This means that long operates operations will no longer
cause the app to display an "App not responding" message, because the UI
thread is now free to keep running unencumbered.

However, it is still not possible to run multiple Python statements at
the same time. If the user tries to run some Python while a previous
statement is still being processed, instead it will display an error
message in the console stating that the previous command is still
being processed.

I also added a seperate QTimer which runs once every 100ms to flush any
output from the Python code back to the console. I can't flush the output
to the console from the background thread because the relevant Qt5 code
is not thread-safe (it causes random segfaults). So I added this timer
as a work-around, since it runs in the main UI thread.

Implemented Ctrl+C keyboard interrupts in the console

This is implemented by detecting a Ctrl+C key event in the Python
console in the main Qt UI thread, and sending a keyboard interrupt
to the background thread that runs the Python code.
2023-09-08 21:45:10 +02:00