Commit Graph

23910 Commits

Author SHA1 Message Date
marioalexis
e07c80a1db TechDraw: Improve code in Python DrawPagePy class 2022-11-06 19:37:55 -05:00
wmayer
9345738604 Gui: [skip ci] fix several warnings reported by GH Actions 2022-11-06 15:53:18 +01:00
Uwe
cef5c5c11c [Gui][Mod]: uniform spin button step size to 5%
- as discussed here: https://github.com/FreeCAD/FreeCAD/pull/7103 we have different transparency spin button step sizes. This PR uniforms them all to 5%.
2022-11-06 14:27:55 +01:00
wmayer
d91de9ceb2 Core: Qt6 migration, use PySide 2022-11-06 14:09:18 +01:00
Chris Hennes
c28da00c15 Addon Manager: Qt6 migration part 1, use PySide
Migrate all uses of "import PySide 2" to use "import PySide" so that the
FreeCAD-provided wrappers can switch between Qt versions.
2022-11-06 13:19:36 +01:00
Uwe
f41bf23aa9 [PD] Helix: assure source Sketch is visible when in selection mode
- same as https://github.com/FreeCAD/FreeCAD/commit/a5dcf87d0 but for Helices (fixes #7629 also for helices)
- also modernize Qt connection
2022-11-06 12:48:11 +01:00
Roy-043
63cc0a6ec1 Part: TestPartApp.py add tolerance to PartTestShapeRotate 2022-11-06 11:42:35 +01:00
Roy-043
8b14bc9dff Part: Fix typo in regression_tests.py 2022-11-06 11:40:19 +01:00
Uwe
a181ea2c0d [Sketch] change polyline icon
- the same intention as https://github.com/FreeCAD/FreeCAD/pull/7588 but proposal with less strokes
2022-11-06 08:09:45 +01:00
Uwe
0ae0158bcf [FEM] better safe Elmer executable path handling
- simplify and correct non-Windows case
2022-11-05 23:00:14 +01:00
wmayer
43d2fd2da9 Gui/Sketcher: disable geometry deselection when user holds Ctrl or additionally Shift or Alt 2022-11-05 22:56:38 +01:00
Uwe
fa21e3129f [Part] SectionCutting: cut long lines
- following our latest Clang coding style
2022-11-05 20:40:18 +01:00
wmayer
93ab955873 PD: use Base::StateLocker to simplify handling of blockUpdate and make it exception-safe 2022-11-05 19:29:20 +01:00
wmayer
b5bd12a069 PD: fixes #7629: Keep sketch visible during revolution tasks 2022-11-05 19:09:54 +01:00
Chris Hennes
48307b91f5 Addon Manager: use versioned Python package dirs 2022-11-05 11:45:02 -05:00
Uwe
30c76a6f34 [FEM] more safe Elmer executable path handling
- handle the case of mangles user.fcg file
2022-11-05 17:42:19 +01:00
wmayer
056abcd3d4 PD: unit test to check offset of sub-shape binder (PR #7445) 2022-11-05 16:58:51 +01:00
Chris Hennes
fc67e82303 Addon Manager: Handle UTF-8 decode failures
When processing downloaded text-based metadata files, catch any decode
exceptions that get thrown and translate them into a useful error
message for developers.
2022-11-05 08:47:58 -05:00
fandaL
df9c800d38 FEM: femmesh2mesh add disp scale factor 2022-11-05 12:27:04 +01:00
Uwe
75146bdd7b [FEM] safer Elmer executable path handling
- the code already assured that the number of used CPU cores for Elmer can only be > 1 if a valid path to the '_mpi' executable is specified. However, we can have the case that Elmer was uninstalled, then the path validity checker returns an empty path and then the check for the number of cores but handle this case. THis PR does exactly this.
- also fix typos and improve error message
- also add missing save guard for hardware check
2022-11-05 02:20:30 +01:00
Uwe
2c6a2422eb [skip ci] [FEM] DlgSettingsFemCcx.ui: omit already set default values 2022-11-05 01:45:31 +01:00
Paddle
657ddeae29 PartDesign: Remove unusable 'Leave sketch' 'viewSketch' commands from menu.
Add 'EditSketch' 'MergeSketches' and 'mirrorSketch' usable commands to menu.
Add 'ValidateSketch' to toolbar.
2022-11-04 16:18:41 -05:00
Paddle
192666d1ac Sketcher: Add concentric capabilities to coincidence constraint. 2022-11-04 13:21:01 -05:00
wmayer
e3af5c317d Drawing: [skip ci] remove errorneous call of macro qt_wrap_ui 2022-11-04 18:55:49 +01:00
Paddle
67a513e101 Gui: Allow to hide toolbars that are not needed.
In particular this hides edit-mode sketcher toolbars when in non-edit-mode.
    And hides non-edit-mode toolbar when in edit-mode.
    It also hides the structure toolbar when in edit-mode (as it is completely deactivated)
2022-11-04 12:02:16 -05:00
Paddle
9860761d01 Sketcher: Split sketcher toolbar in sketcher-edit-mode and sketcher-non-edit-mode. 2022-11-04 12:02:16 -05:00
Paddle
90d78a9ef5 Base: + Sketcher: disable deselection when user holds Ctrl. 2022-11-04 10:44:52 -05:00
wandererfan
312d62cc18 [Measurement]support for 3 point angle 2022-11-04 08:28:13 -04:00
Adrián Insaurralde Avalos
3257766c44 Move "Close" button to north in measure dialog
for consistency with other task dialogs
2022-11-03 20:29:15 -04:00
sliptonic
b1660ef804 Merge pull request #7685 from sliptonic/littlefixes
Small fixes including preferences dialog
2022-11-03 09:28:34 -05:00
wandererfan
3a120c22d5 [TD]fix tooltip for Equal Tolerance 2022-11-03 10:11:50 -04:00
wandererfan
290a19e773 [TD]fix view drag and drop to page 2022-11-03 10:10:41 -04:00
wmayer
708cafca92 Qt6 port: port WebGui module 2022-11-03 12:54:34 +01:00
sliptonic
34640c547f Panel tabs fix 2022-11-02 15:50:13 -05:00
sliptonic
9fff13ed12 minor fixes 2022-11-02 15:50:13 -05:00
Roy-043
158142d641 TechDraw: "Alternate Decimals" label in prefs should be italic 2022-11-02 16:26:50 -04:00
mlampert
ebc1190d8b PATH: Feature/dogbone ii (#7660)
* Start of new dogbone dressup

* Added Instruction and tangents support for G2/3 moves

* Added Maneuver class to represent a set of moves and process them coherently

* Created kinks and verify their creation.

* Added dogbone detection and verification

* Simplified gcode strings

* Added horizontal t-bones generation

* Added support for vertical t-bone

* Consolidated t-bone creation

* Added support for pathLength

* Added support for tbone on short edge

* Added support for long edges

* Added support for dogbones

* Fixed dogbone for non-horizontal lead-in

* Horizontal bone adaptive length tests

* Fixed dogbone angle and adaptive length

* Some code cleanup

* Added adaptive length tests for dogbones

* Split base data classes into their own PathLanguage module.

* Splitting dogboneII implementation into its constituents

* Moved adaptive length into DogbonII module

* Separate dogboneII generator test cases and changed interface to allow for dynamic length calculations

* Unit tests for length calculation

* Initial DogboneII unit test

* Unit tests and fixes for plunge move handling

* Unit tests for the remaining styles and incision strategies

* Basic DogboneII gui

* Added support for markers

* Better color and selection scheme for markers

* Cleaned up import statements

* Added DogboneII to Path WB init

* Support for dogbone on dogbone and fixed t-bone generation

* Fixed t-bone on short leg bones

* Fixed tbone on short edge when short edge is m1

* Fixed t-bone on long edge for m0/m1 and CW/CCW

* Removed redundant code

* Removed redundant 'Dress-up' from menu entries

* black code formatting

* added generator to cmake

* Fixed typos
2022-11-02 15:25:09 -05:00
wmayer
78a823141a Sketcher: [skip ci] fix constraint dialogs to use QDialog instead of QWidget
With Qt6 this fixes a compilation error because uic uses the modern style of connect()
2022-11-02 13:49:14 +01:00
wmayer
4b08850edb Qt6 port:
* QApplication::setFallbackSessionManagementEnabled has been removed
* QString::medRef() has been removed. Use QString::mid() again.
* QTextStream::setCodec has been removed
* Use operator QVariant of the QFont class to make code Qt5 and Qt6 compatible
* Signature of QTreeWidget::mimeData() has changed in Qt6. Remove TreeWidget::mimeData() because it doesn't change the implementation
* QLayout::setMargin() is deprecated in Qt5 and has been removed in Qt6. Use QLayout::setContentsMargins()
* QDateTime::toTime_t() is deprecated in Qt5 and has been removed in Qt6. Use QDateTime::toSecsSinceEpoch()
* QDesktopWidget is deprecated in Qt5 and has been removed in Qt6. Use QScreen
2022-11-01 16:55:40 +01:00
Flachy Joe
c2c23169e6 [PartDesign] Improve Helix calculation for straight shape (#7674) 2022-10-31 23:26:10 +01:00
Chris Hennes
1fac3fead0 cMake: Add support for compiling against Qt6 (#7647)
Removes the BUILD_QT5 flag and adds a new FREECAD_QT_VERSION option,
which can be set to either "Auto" (default), 5, or 6. Auto detects which
version of Qt is installed on the system and chooses it. If both version
are installed, Qt5 is used.

Note that this DOES NOT implement compiling against Qt6, it only adds
the necessary cMake infrastructure to begin work on the source code
changes that will be required.
2022-10-31 09:24:09 -05:00
marioalexis
b64d987ac1 TechDraw: Improve code in Python CenterLinePy class 2022-10-31 09:08:52 -04:00
wandererfan
f6fc9554ec [TD]remove export macros from PreCompiled.h 2022-10-29 19:19:54 -04:00
wandererfan
ee2a4656a1 [TD]fix windows compile warnings 2022-10-29 19:19:54 -04:00
Paddle
5328c5f726 Optional : Point icon color fix. From green to red. This way internal points are yellow. Construction points are blue. The issue is that all normal points are construction. So they appear blue and not red. Not sure if that's a problem. 2022-10-29 20:25:34 +02:00
Paddle
cd3b7e26c6 Fix issues raised by OpenBrain. 2022-10-29 20:25:34 +02:00
Paddle
3f87aa90b1 ElementWidget: Fix extended naming settings not initializing. Adds 'Collapse filter' option. 2022-10-29 20:25:34 +02:00
Abdullah Tahiri
d8b89b2253 Sketcher: ElementWidget - Rename ElementType to SubElementType - make SubElementType nested to ElementItem 2022-10-29 20:25:34 +02:00
Abdullah Tahiri
098a154ad3 Sketcher: ElementItem - do not select/preselect invalid 2022-10-29 20:25:34 +02:00
Paddle
fef871320b SKETCHER: Element widget rework see https://forum.freecadweb.org/viewtopic.php?f=8&t=72239&sid=b7787fadb4c2a7e9682d28f31ede5eb8 2022-10-29 20:25:34 +02:00