Commit Graph

28 Commits

Author SHA1 Message Date
wandererfan
fb128a3f4d [TD]fix section scale
- scale field in ui was QuantitySpinBox which is wrong for
  dimensionless number.
- section view scale was being set at only GlobalDecimals
  precision.
2023-12-06 14:52:54 -05:00
wandererfan
7ea6b4202d [TD]fix label generation simple section 2023-09-10 14:25:15 -04:00
wmayer
ed251a914b TD: modernize C++: use override 2023-08-04 17:09:53 +02:00
wandererfan
66e9039a51 [TD]dialog fixes from user testing
- fix jumping direction field in dialogs

- apply default rotation to simple sections

- fix rounding error in vector widget

- remove "enter" button on CompassWidget

- add lost focus trap in event filter.

[TD]prevent recompute on cancel without change
2022-12-18 09:42:42 -05:00
Uwe
993c5b1574 [TD] Task*, part 1: remove unused includes
- also some sorting
2022-12-07 16:15:40 +01:00
wandererfan
48996a15a9 [TD]Section dialogs minor fixes
- make simple and complex dialogs consistent
- fix translation contexts
2022-11-10 19:19:22 -05:00
wandererfan
87cc3fe864 [TD]SectionView/ComplexSection - preview, direction selection
- add preview/live update to TaskSectionView & TaskComplexSection
- add view direction selector to uis
- use SectionNormal as Direction.  Make Direction read-only
- simplify section line end point calculation
- section group command in toolbar
- make section and complex section icons consistent
- fix compsolid cutting tool
- terminology: single/piecewise to offset/aligned
2022-10-28 08:47:45 -04:00
wandererfan
aa2b1b8392 [TD]CI clang warnings 2022-09-05 17:48:38 -04:00
berniev
180edfa3cc Mod: Single arg ctors must be explicit 2022-08-24 16:55:20 +02:00
Wanderer Fan
aa1193559b [TD]clazy warnings and duplicate setter/getter
- clazy warning re missing Q_OBJECT

- include TechDrawGlobal.h in headers

- resolve duplicate setter/getters
2022-08-18 09:34:32 -04: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
wmayer
ccc0d54d97 TD: [skip ci] activate PCH of TechDraw (Gui) and use forward declarations
For MSVC this reduces compile time by ~20%
2022-03-25 13:54:47 +01:00
Uwe
093a8edec5 [TD] Gui Headers: remove unused header - part 2 2022-03-25 02:34:36 +01:00
Wanderer Fan
7903904f13 [TD]add missing ScaleType to Section dlg 2022-03-10 09:25:52 -05:00
donovaly
691eaa6e8f [TD] make pointers to the UI std::unique_ptr
as noted in https://github.com/FreeCAD/FreeCAD/pull/4271#discussion_r554673632
the pointer to the UI should be a unique pointer.

This PR does this for all TD dialogs that don't already use a unique_ptr.
2021-01-19 19:24:27 +01:00
donovaly
8a1bcc925e [TD] Section dialog overhaul
- replace use uniformly Gui::QuantitySpinBox
- fix and uniform size of all objects in the dialog
- apply changes immediately once the section is created because this speeds up the workflow a lot, especially for when changing the plane position
- some code cleanup: remove unused void, avoid unused variables
2020-03-29 15:14:13 -04:00
wandererfan
f55e724891 [TD]fix crash when Section deleted during creation
- if the Section is deleted while the section dialog
  is still in progress, further processing in the
  dialog would cause a crash.
- should have "update intent" locks to prevent this
2020-03-16 08:57:08 -04:00
WandererFan
ed30896648 [TD]Prevent crash when base view deleted
- happened during creation of DVSection
2019-12-04 20:44:13 -05:00
wandererfan
656315542c [TD]Add Scale to Section gui 2019-11-27 07:31:45 -05:00
wandererfan
e0a7284135 [TD]Section UI changes 2019-11-27 07:31:45 -05:00
wandererfan
ed445718a2 [TD]Section dialog revisions & editor 2019-10-01 17:30:35 -04:00
wmayer
7d842679bd in forward declaration replace class keyword when struct is expected
comment out unused parameters
2016-12-29 17:52:39 +01:00
WandererFan
5ae22d507d Fix segfault on bad input 2016-11-18 10:14:10 +01:00
WandererFan
6b175cc0c9 Section Rebuild subproject
new dialog
new Section/SectionLine logic
remove XAxisDirection property
2016-10-31 11:06:15 -02:00
WandererFan
5dacbe7514 Implement Cancel logic for TaskViewSection 2016-09-11 13:12:24 -04:00
WandererFan
1bf2dc7411 Fix Section arrows,xDir,label 2016-09-01 12:14:42 -04:00
WandererFan
ae9f1c5994 Create ViewSection from ViewPart
Property name changes
Touch section when View SymbolSection changes
2016-08-26 11:39:03 -03:00