Benjamin Nauck
efa41a5952
Part: Add #include <limits> where used
2025-03-31 23:52:08 +02:00
Benjamin Nauck
075a1362ed
Part: Use std::numeric_limits and std::numbers instead of defines
2025-03-29 13:32:38 +01:00
Andrea
2d4ab5af20
REMOVE old QT<= 5.14 code
...
Ubuntu 22.04 use qt 1.15.3.
In the code is still used qt code <5.10.
A cleanup was done by removing qT code version used in ubuntu 18.04.
2025-03-05 09:32:06 +01:00
Benjamin Bræstrup Sayoc
fa31c7934a
Part: Use QStringLiteral
2025-02-10 18:32:44 +01:00
tritao
551c2e48fb
Gui: Reorganize the selection files into a top Selection folder.
2025-02-03 17:56:57 +01:00
Ladislav Michl
0b3adee2ab
Base: Quantity: return std::string
2024-12-23 17:48:42 +01:00
wmayer
5f64e2191e
Part: use of TaskDialog::addTaskBox
2024-03-26 15:57:20 +01:00
bgbsww
26f3254a2f
Setting on 89.9 as a limit, enforce in dialog and properties
2023-11-22 10:30:54 +01:00
bgbsww
10f257ac59
Prevent attempting to create an infinite helix
2023-11-22 10:30:54 +01:00
wmayer
d305f306df
Core: Revert superfluous changes made with PR #9521
2023-10-09 15:06:45 +02:00
AgCaliva
b360b43ebe
Fixing DOMDocument redefinition
2023-09-16 00:38:41 -03:00
wmayer
b9e9fe435a
Part: modernize C++: use equals default
2023-08-22 15:14:03 +02:00
Chris Hennes
d6f3413da9
Part: Attempt to translate exceptions in dialogs
...
Relies on the exception text having been added to the translation database in a previous call to QT_TRANSLATE_NOOP, and put in the 'Exception' context.
2023-04-27 17:31:44 -05:00
0penBrain
982c1b4421
[BugFix] Part: fix XSkew+YSkew editing not took into account for cylinders
2023-02-24 10:06:36 +01:00
Uwe
f15c55f242
[Part] fix encoding bug
...
- fixes the regression by #7255 -> the degree sign cannot be decoded as Latin1
2023-02-24 04:07:21 +01:00
0penBrain
0d577a8789
Base: introduce 'getSafeUserUnit' that fallbacks to full precision and internal unit ...
...
... in case unit schema would zero a non-zero quantity
For example, using '1 mil' with UnitsSchemaImperialDecimal schema
2023-02-23 15:22:07 +01:00
0penBrain
51103fbeb1
Part: better quantity values handling for primitives
2023-02-23 15:22:07 +01:00
Syres916
8215af8906
[Part] Fix Geometric Primitives task panel bug
...
See discussion https://forum.freecad.org/viewtopic.php?t=76218
2023-02-22 14:27:58 +01:00
wmayer
be9634b23c
Part: move to new-style connect of DlgPrimitives dialog
2023-01-04 13:06:26 +01:00
wmayer
6eac8fe8b2
Part: move to new-style connect of DlgPrimitives dialog to make it also working with Qt6
2023-01-03 17:09:49 +01:00
wmayer
f1481b1f0c
Part: refactor DlgPrimitives dialog
2023-01-03 15:53:12 +01:00
Uwe
64ab0c2781
[Part] Dlg*: remove unused includes - part 2/2
...
- also some sorting
2022-09-26 00:04:46 +02:00
berniev
71dc5ead2f
Mod: Use override etc 2
2022-08-09 12:52:26 +02:00
berniev
47ac049e14
Mod: use emplace_back
2022-08-05 10:36:16 +02:00
wmayer
2b039d67fe
Part: Fix several clazy issues:
...
* Maybe you meant to call Primitive::onChanged() instead [-Wclazy-skipped-base-method]
* Maybe you meant to call Primitive::mustExecute() instead [-Wclazy-skipped-base-method]
* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference]
* Use multi-arg instead [-Wclazy-qstring-arg]
* Use midRef() instead [-Wclazy-qstring-ref]
2022-07-25 08:31:18 +02:00
Syres916
3b6e5d7b79
[Part] Bugfix Primitives correction of decimal..
...
...places on creation
See https://forum.freecadweb.org/viewtopic.php?f=3&t=70339
2022-07-23 03:27:32 +02:00
Uwe
24468b59ad
re-add some nullptr
...
to be safe since their removal within assert() or bools might have some impact I don't know
2022-07-18 02:32:36 +02:00
Uwe
0ff8a02105
[Part] remove more superfluous nullptr checks
2022-07-18 01:36:27 +02:00
wmayer
d5340a82ab
Gui/Mod: replace several reinterpret_cast with static_cast
2022-06-25 11:36:55 +02:00
wmayer
6d2d45ceb7
Part: modernize C++11
...
* use nullptr
2022-03-23 19:26:14 +01:00
Uwe
3e1dbde0cf
[Part] remove Python.h from headers
...
seems not to be necessary anymore
2022-03-20 14:16:55 +01:00
wmayer
29b940fb66
Part: Circle variable name change to create consistency
...
Change variable names of the Circle from Angle0 to Angle1 to create consistency with all other named angle variables
2022-02-11 18:28:58 +01:00
Sebastian
a48656e5fe
Ellipse variable name change to create consistency
...
Change variable names of the Ellipse from Angle0 to Angle1 to create consistency with all other named angle variables
2022-02-11 17:22:45 +01:00
carlopav
04176db50a
Part: Auto-add primitives to active Part
...
Modified DlgPrimitives.cpp to allow auto adding the newly created object to active Std_Part.
Works with: box, cylinder, sphere, cone, torus, tube, primitives.
2021-11-23 21:44:53 +01:00
wmayer
2fe44f80b9
Part: properly handle small quantities in part primitive dialog
2021-04-20 17:11:38 +02:00
donovaly
1f0e0f3e21
[Part] add direction to cylinder primitive
...
We already have the possibility to create skewed prisms. I recently stumbled upon that I would need this feature for cylinders too.
This PR takes the existing prism extrude direction feature and use it for cylinders too
2021-04-05 13:59:03 +02:00
wmayer
48fdbbab4c
PD: [skip ci] fixes #0004573 : missing bindings to expressions in primitives location dialog
2021-02-20 20:04:37 +01:00
donovaly
e3dff59c2e
[Part] add missing bindings
...
For FC 0.19 we added bindings to the PD primitives but we forgot the Part primitives
2021-02-20 20:02:09 +01:00
David Osterberg
29cd1049bb
Part: Allow helix primitive with negative Angle
2021-02-14 11:53:34 +01:00
wmayer
d50dbf184d
Part: [skip ci] code-refactoring in DlgPrimitives class
2021-02-12 12:41:45 +01:00
wmayer
d8a36bc1b2
Part: [skip ci] include generated ui files from within source file
2020-11-15 13:17:52 +01:00
donovaly
bfa2ac9d31
[Part] show location dialog when creating a Primitive
...
- there is no reason to hide it and even a bit tiring to open it manually since most no new primitives should be at the origin
- give the combobox to select the primitive type a reasonable name, this helps to understand the code better
2020-11-15 12:56:16 +01:00
wmayer
ed5fbb876b
Part: [skip ci] simplifications in primitives location dialog
...
- do not use a QSignalMapper if the slot doesn't take care of the emitting widget
- to set the placement only check for the base class GeoFeature, i.e. no need to step through all primitive types
- fix compiler warning of unused variable
2020-11-10 20:20:33 +01:00
donovaly
f7bb206d63
[Part] add preview for changes to primitives location
...
- unset keyboardTracking for the dialog edits
- don't hide the location dialog on creation
2020-11-10 20:03:08 +01:00
wmayer
7d72ea1c1a
Part: [skip ci] implement live preview for primitives
2020-11-08 15:40:59 +01:00
wmayer
f49ae11976
Part: [skip ci] properly handle transactions when editing primitives
2020-11-08 10:43:04 +01:00
wmayer
dbd14fe2b9
Part: [skip ci] implement live preview for box and cylinder
2020-11-08 10:26:07 +01:00
donovaly
7460cd5ebc
[part] remove a now misleading comment
...
I added this comment when I read the dialog state fro the index of the type combobox, now we read the primitive's TypeID so the comment is misleading
2020-11-08 06:43:16 +01:00
wmayer
266ca1ad28
Part: allow to edit primitives via dialog
2020-11-06 23:12:40 +01:00
wmayer
677ce69873
[Part] allow to edit helices via a dialog
...
+ add class ViewProviderPrimitive to avoid to re-implement setEdit/unsetEdit methods for each sub-class separately
+ avoid using global variables
+ when editing a feature directly pass it to the dialogs
+ when editing a feature then do not use active document as this could point to the wrong object
+ fix undo/redo message
+ re-add '3D View' button to location dialog
2020-11-06 19:59:14 +01:00