Commit Graph

30 Commits

Author SHA1 Message Date
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
Benjamin Nauck
6f535f19fb Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
Regex based changes, manually verified
2025-01-27 16:08:18 +01:00
wmayer
1df78febf3 Part: Prepare for clang-format 2024-08-26 17:56:58 +02:00
wmayer
5f64e2191e Part: use of TaskDialog::addTaskBox 2024-03-26 15:57:20 +01:00
wmayer
57057b5840 Part: modernize C++: use default member init 2023-08-23 00:55:03 +02: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
wmayer
6401c18937 Part: fix -Wclazy-connect-by-name 2023-04-05 00:44:13 +02:00
0penBrain
4cc2a1af62 Gui: prevent crashes on MacOS using boost::format 2023-03-31 15:22:03 +02:00
Uwe
379362bcd2 [Part] Task*: remove unused includes - part 1
- also some sorting
2022-09-26 03:05:23 +02:00
wmayer
6d2d45ceb7 Part: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
tomate44
63a454a24d Part: add Fill property to Offset2D macro recording 2021-06-08 11:29:13 +02:00
wmayer
f50dc8e652 [skip ci] fix more -Wgnu-zero-variadic-macro-arguments 2019-11-17 15:14:18 +01:00
Zheng, Lei
f028ba42ff Part: changes to Part Module
* Added Part::Feature::getTopoShape/getShape() function that can obtain
  shape from any object with proper implementation of getSubObject(). It
  can even construct compound from group object with proper implementation
  of getSubObjects().

* Modified ViewProviderExt to work on any object, because it now obtain
  the shape using Part::Feature::getShape()

* Modified various Part features to obtain base/tool shapes using
  Part::getShape(), which allows them to be any type of object,
  including Link and groups.

* Modified various Part command to relax type requirement on selected
  objects.

* Add support of link and group to dimension, and add dimension refresh
  command

* Support link and group in simple command command, and add a few more
  copy command variations.

* Add special handling of 'Shape' attribute in PropertyContainerPy and
  use Part::Feature::getShape() to return shape for any object without
  Shape property. This allows many python feature work with any object
  without modification.

* GeometrySurface/CurvePy, add convenience attribute 'Rotation'

* TopoShapePy:

    * Extended support of sub shape attribute, e.g. Compound1, Solid2,
      SubShape3 ('SubShape' is used to access child shape of a compound)

    * makeWires(), new API to sort and return wires given a list of edges.

    * transformed/translated/rotated/scaled(), return a new shape with
      some transformation.

    * findPlane(), find the plane of a planar shape

    * isCoplanar(), check if two shape are coplanar
2019-08-17 15:08:35 +02:00
wmayer
7e482a5002 PVS: V730 Not all members of a class are initialized inside the constructor 2019-03-12 18:33:25 +01:00
wmayer
9aa6a700d8 Replace Base::Exception with appropriate subclass 2018-11-14 19:45:20 +01:00
wmayer
7d38edb065 fix -Wextra in Part 2016-09-22 11:49:28 +02:00
wmayer
947f9575de remove Application::runPythonCode 2016-09-15 23:14:31 +02:00
DeepSOIC
b9d09260c0 PartGui: Fixes and updates for Offset2D to task dialog
+ add expression support for offset value
2016-09-02 16:26:02 +02:00
DeepSOIC
53e7a15df1 Part: Offset feature: split off into separate file
withdrew code from PartFeatures.h/.cpp and created FeatureOffset.h/.cpp
2016-09-02 16:26:02 +02:00
wmayer
f4198d2e0f + use quantity box in offset dialog 2016-02-27 19:43:48 +01:00
Mateusz Skowroński
c275b35d48 QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
wmayer
09122a27b7 + fixes #0000854: Ability to change number of digits to the right of decimal place in spinboxes 2014-02-16 18:02:09 +01:00
jriegel
00ea24e07e Integrate Werners & Jans double branch
Move from float to double
Further suggestions for float -> double move
Moved Tools2D from float to double
More suggestions for float->double move from Gui subdirectory
Changes to FEM constraint visuals for float->double move
Suggested changes for float -> double move
Suggestions for Part module moving float -> double
2013-09-24 11:00:57 +02:00
wmayer
070f9ad47a Open transaction when start editing with context-menu 2012-11-28 13:24:46 +01:00
wmayer
93adc4cbd5 Little fix on offset/thickness task panel 2012-11-26 21:51:17 +01:00
wmayer
9c61558ffc Add thickness function 2012-11-26 21:10:09 +01:00
wmayer
b38b4b7159 Offset function 2012-11-25 15:56:46 +01:00
wmayer
b8ca20504a Offset function 2012-11-24 22:46:16 +01:00