wmayer
17613bf929
Measure: Fix exception handling
...
If a Base::Exception is thrown in Measurement::getShape() then it's handled by the catch(...) handler and
converted into a Base::RuntimeError. This behaviour hides the original Base::Exception.
Example:
Selecting a datum plane raises the error 'Measurement: Unknown error retrieving shape' because the
original Base::ValueError isn't forwarded.
2024-06-02 08:15:57 +02:00
wmayer
560cab6f31
clang/gcc: Add build option FREECAD_WARN_ERROR to force to make warnings into errors
2024-05-29 13:37:07 +02:00
hlorus
24ca6056f4
[MeasureGui] Make initial measurement placement zoom independent
2024-05-27 11:07:19 -05:00
Chris Hennes
aef423731d
Merge pull request #14011 from hlorus/measure-icons
...
Add measurement icons
2024-05-20 10:54:06 -05:00
wmayer
51a0d8ecb8
Mesure: Ignore ValueError exceptions in quick measure
2024-05-15 10:28:33 -04:00
hlorus
3bb78b1873
MeasureGui: Add UMF folder icon
...
Co-Authored-By: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com >
2024-05-14 17:55:21 +02:00
hlorus
381d10e305
MeasureGui: Add icons
...
Co-Authored-By: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com >
2024-05-14 17:55:06 +02:00
hlorus
e473ec2333
Measure Prefs: Set background default color to white
2024-05-14 17:53:56 +02:00
wmayer
c16a4e034d
Measure: Fix quick measure
...
* Create QuickMeasure in C++ instead of Python to avoid that it will be garbage collected
* Handle exceptions in case of invalid selections
* Refactor QuickMeasure class
* Fix linter warnings
2024-05-13 11:22:52 -05:00
hlorus
2394a8cb1e
[MeasureGui] Add measurement value to label text
2024-05-13 10:47:10 -05:00
Chris Hennes
b52c6ed9bc
Merge pull request #13811 from hlorus/remove_measure_prefs
...
[Measure] Remove unused properties from measure preferences
2024-05-13 10:39:18 -05:00
wmayer
9934eb3b37
Measure: Fix memory leaks
2024-05-08 20:01:54 +02:00
Max Wilfinger
a934421906
Change default UMF colors ( #13781 )
2024-05-06 11:16:48 -05:00
PaddleStroke
7192cc3a01
Measure: QuickMeasure: deactivate solids measures of volume/area because it's slowing down selection.
2024-05-06 18:12:14 +02:00
PaddleStroke
818e122420
Core / Measure: Introduce QuickMeasure
2024-05-06 18:12:14 +02:00
hlorus
50b5399d52
[Measure] Remove unused properties from measure preferences
2024-05-03 11:36:48 +02:00
Adrián Insaurralde Avalos
c4b5115f9e
Measure: write init message to log instead
2024-05-02 08:09:39 +02:00
wmayer
2ea6bc17b6
Fix various compiler warnings:
...
* fix -Wunused-parameter
* fix -Wunused-function
* fix -Wunused-private-field
* fix -Wunused-variable
* fix -Winconsistent-missing-override
2024-04-30 16:59:31 +02:00
wandererfan
722fab240e
[Measure] Change icon
...
Co-Authored-By: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com >
2024-04-29 09:27:22 -04:00
hlorus
bed703a6f9
[Measure] Add features, viewproviders and preferences for unified measurement facility
2024-04-29 09:27:22 -04:00
liukaiwen
329904a055
[cmake] some definitions do not matter build now
2023-09-27 18:17:14 +08:00
wmayer
da00501288
Mod: modernize C++: use equals default
2023-08-22 11:16:49 +02:00
luzpaz
79e150a81b
Fix trailing whitespace, typos, headers
...
Fix trailing whitespace, typos, and header uniformity.
2023-01-23 00:34:37 +01:00
wandererfan
9e48f5a158
[Measure]fix angle returns supplementary value
2023-01-07 16:32:03 -05:00
Uwe
474f403ca7
[Measure] : remove unused headers
2022-12-14 03:53:30 +01:00
wandererfan
38f8137884
[Meas]handle long subElement names in reference
2022-12-02 14:19:53 -05:00
luz paz
452008f65d
Fix header uniformity for various workbenches/directories
...
Also includes some trailing whitespace fixes
2022-11-29 04:48:57 +01:00
Uwe
d11e416845
[Measure] remove a unused include
...
- also some sorting
2022-11-23 03:50:45 +01:00
wandererfan
694aefc197
[Measurement]apply globalPlacement to geometry
2022-11-14 16:38:06 -05:00
wandererfan
312d62cc18
[Measurement]support for 3 point angle
2022-11-04 08:28:13 -04:00
wmayer
c87e1cc1c2
clang: fix warnings [-Winconsistent-missing-override]
2022-08-09 17:36:25 +02:00
berniev
71dc5ead2f
Mod: Use override etc 2
2022-08-09 12:52:26 +02:00
berniev
f4ffd15864
Mod: redundant void 2
2022-08-08 10:27:50 +02:00
berniev
47ac049e14
Mod: use emplace_back
2022-08-05 10:36:16 +02:00
Uwe
0dabdab140
[Measure] Measurement.cpp: add missing include
2022-07-03 21:38:52 +02:00
Uwe
4dced53a00
[Part] Pa* to Pre*: remove unneeded includes
...
- also sort includes
2022-07-03 20:47:03 +02:00
wmayer
48c6777d82
Points: include header with export macros
2022-03-24 20:46:47 +01:00
wmayer
d21a60b294
All: modernize C++11
...
* replace deprecated headers
2022-03-23 22:44:18 +01:00
wmayer
635534cb15
Measure: modernize C++11
...
* use nullptr
2022-03-23 19:26:15 +01:00
Uwe
c455d1a085
[Measure] remove unused file
2022-03-20 19:26:22 +01:00
Uwe
887fa15b01
[Measure] remove unused includes
2022-03-20 17:56:00 +01:00
Uwe
a012dc23a4
[Measure] remove Python.h from headers
...
is not necessary anymore
2022-03-20 17:41:04 +01:00
wmayer
0f9768fb33
Fix coverity issue:
...
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01:00
wmayer
6c2e1a2d6e
Base: implement a lightweight smart pointer for PyObject like Py::Object to reduce includes of Python.h in header files
2022-03-04 15:51:51 +01:00
mosfet80
c37698c3fc
Update CMakeLists.txt
...
Fix python include.
2022-02-05 17:59:20 +01:00
Dirk Olbrich
8cee8adf5f
Fixes Xercesc include, harmonize XercesC_INCLUDE_DIRS statement ( #4960 )
...
* fix: typo for XERCESC_INCLUDE_DIRS
* fix: harmonize XercesC_INCLUDE_DIRS capitalization
2021-08-16 22:57:34 -05:00
Chris Hennes
4e5c852a9b
Modify Python checks when cMake >= 3.12
2021-03-06 21:11:34 +01:00
wmayer
56c608932f
Win: [skip ci] check if NOMINMAX is already defined before setting it
2020-11-11 13:34:42 +01:00
Zheng, Lei
e90d09dc40
TechDraw: Link related changes
...
* Support link and group objects
* Support view sync by implementing view provider API getMDIView()
* Use handleChangedPropertyType() for object migration instead of
reimplementing Restore() because of a lots of changes in
PropertyContainer::Restore().
* Various other small fixes.
2019-08-17 15:15:46 +02:00
wmayer
31d1c1d212
fix warning
2019-05-03 18:20:36 +02:00