Commit Graph

109 Commits

Author SHA1 Message Date
luzpaz
a71f49f4f6 Fix trailing newlines and minor typo fixes 2024-07-23 16:16:30 +02:00
Chris Hennes
a7d32d3dcc Merge pull request #15481 from Syres916/Measure_Restrict_Availability
[Measure] Correctly restrict command availability
2024-07-20 23:33:03 -05:00
Syres916
a9d690d6d0 [Measure] Fix Lint Feedback 2024-07-17 18:18:13 +01:00
hlorus
572235cff8 Measure: Resolve App::Link elements 2024-07-17 17:56:37 +02:00
hlorus
bb7f84c32a Measure: Reduce boilerplate code by adding some helper methods 2024-07-17 17:53:12 +02:00
Syres916
23de5b7083 [Measure] Correctly restrict availability 2024-07-17 14:43:09 +01:00
wmayer
6a464d80e6 PyObject_CallObject returns new reference 2024-07-15 18:05:30 +02:00
PaddleStroke
0cb9a44e4e Measure: Quickmeasure: disable for sketch in edit mode due to incorrect behavior. 2024-07-15 10:08:31 -05:00
Chris Hennes
463b2d9451 Merge pull request #15010 from hlorus/measure_distance_components
MeasureGui: Add MeasureDistance X, Y and Z components back
2024-07-14 23:46:04 -05:00
wmayer
14ec1e6603 Measure: Fix memory leak in MeasureDistanceInfo
Fixes #15349
2024-07-14 15:21:47 +02:00
Chris Hennes
de3579bf7c Merge pull request #15190 from hlorus/measure_dependency_violation
MeasureGui: Fix measure dependency violation
2024-07-13 19:56:23 -05:00
Chris Hennes
c29cb8464d Correct typo 2024-07-10 08:08:15 -05:00
luzpaz
9a1f487cdb Fix various typos throughout the codebase 2024-07-08 17:19:20 -05:00
Chris Hennes
dd8a4cc435 Measure: Fix repeated element name in UI file 2024-07-08 12:20:15 -04:00
hlorus
33802f48c4 MeasureGui: Insert measure command into menu & toolbar 2024-07-05 10:54:38 +02:00
hlorus
8ab537863a [MeasureGui] Move measure cmd and task into measure module
...to avoid core depending on modules
2024-07-04 14:56:49 +02:00
hlorus
3389251599 MeasureGui: Use SoFrameLabel to display delta dimensions in MeasureDistance 2024-07-01 18:14:33 +02:00
hlorus
29a7fdec1b MeasureGui: Add colon after symbol of delta dimensions 2024-07-01 18:14:24 +02:00
hlorus
84d3669888 MeasureGui: Paint icons in textcolor 2024-07-01 17:51:51 +02:00
hlorus
6257fe266c MeasureGui: Show delta symbol in front of component dimensions 2024-07-01 08:25:03 -05:00
hlorus
a1316567d2 MeasureGui: Optionally show delta components in VPMeasureDistance 2024-07-01 08:25:03 -05:00
hlorus
e396f0c9c8 MeasureGui: Add globalSeparator to VPMeasureBase
This allows annotations in global space
2024-07-01 08:25:03 -05:00
hlorus
ed8c495103 MeasureGui: Add back DimensionLinear node kit 2024-07-01 08:25:03 -05:00
hlorus
84ca0bfda4 Measure: Add X, Y and Z component properties to MeasureDistance 2024-07-01 08:25:03 -05:00
Roy-043
d2b7bda65f Measure: Prefs: add unit to DefaultFontSize (px) and title in sentence case 2024-06-26 11:52:35 -05:00
Turan Furkan Topak
bd9d911ca9 [Icons]Core Icon Revision (#14154)
* Core Icon Revision

Update utilities-terminal.svg

Update button_add_all.svg

pixel alignment

Pixel alignment was performed for the specified icons.

* Changes requested by Obelisk

* Return old icons
2024-06-24 10:54:58 -05:00
wmayer
2f8382ae59 MSVC: Fix compiler warnings
* avoid redefines in Assembly
* explicit cast from size_t to int
* remove unused variables
* avoid implicit cast from double to float
* in test cases replace EXPECT_FLOAT_EQ with EXPECT_DOUBLE_EQ or EXPECT_NEAR when doubles are used
2024-06-20 15:42:16 -05:00
PaddleStroke
4683fd97b5 QuickMeasure: fix large selection slow down. 2024-06-17 11:02:53 -05:00
hlorus
cda7a20e04 MeasureGui: Show measurement if it doesn't track any subjects 2024-06-11 17:57:01 +02:00
hlorus
71505c3b40 Measure: Migrate old App::MeasureDistance to new type 2024-06-11 17:57:01 +02:00
hlorus
b42c3aade0 Remove Std_MeasureDistance 2024-06-11 17:57:01 +02:00
hlorus
96fba15cb1 [Measure] Add MeasureDistanceDetached 2024-06-11 17:57:01 +02:00
hlorus
039242b964 [Measure] Make VP MeasureDistance only depend on properties 2024-06-11 17:57:01 +02:00
wmayer
859d47bac7 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
4185605d5e clang/gcc: Add build option FREECAD_WARN_ERROR to force to make warnings into errors 2024-05-29 13:37:07 +02:00
hlorus
806610743d [MeasureGui] Make initial measurement placement zoom independent 2024-05-27 11:07:19 -05:00
Chris Hennes
53da36a93a Merge pull request #14011 from hlorus/measure-icons
Add measurement icons
2024-05-20 10:54:06 -05:00
wmayer
792cee1801 Mesure: Ignore ValueError exceptions in quick measure 2024-05-15 10:28:33 -04:00
hlorus
030cdcfa5e 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
b3ea58a503 MeasureGui: Add icons
Co-Authored-By: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>
2024-05-14 17:55:06 +02:00
hlorus
ae7a16f945 Measure Prefs: Set background default color to white 2024-05-14 17:53:56 +02:00
wmayer
3a16d73253 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
2b9e9d6ca5 [MeasureGui] Add measurement value to label text 2024-05-13 10:47:10 -05:00
Chris Hennes
1028345ae6 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
374a663d2c Measure: Fix memory leaks 2024-05-08 20:01:54 +02:00
Max Wilfinger
302a202fa6 Change default UMF colors (#13781) 2024-05-06 11:16:48 -05:00
PaddleStroke
497ffd3d01 Measure: QuickMeasure: deactivate solids measures of volume/area because it's slowing down selection. 2024-05-06 18:12:14 +02:00
PaddleStroke
e5780a5e3d Core / Measure: Introduce QuickMeasure 2024-05-06 18:12:14 +02:00
hlorus
7d5ac7e797 [Measure] Remove unused properties from measure preferences 2024-05-03 11:36:48 +02:00
Adrián Insaurralde Avalos
368b91e035 Measure: write init message to log instead 2024-05-02 08:09:39 +02:00