Commit Graph

64 Commits

Author SHA1 Message Date
wandererfan
b097779b53 [TD]Use correct translation function (fix #317)
- another translation cycle will have to run before the change is
  apparent.
2024-09-14 09:43:06 -04:00
Max Wilfinger
8ff5a1f688 Fix source string typos mentioned on Crowdin (#15261) 2024-07-08 17:18:31 -05:00
Chris Hennes
6b2d7ac333 TD: Fix translation of pending updates string
Switch to %n form so translators can adjust based on the number. Also allows English adaptation to plural/singular, if desired.
2024-03-05 12:53:59 -05:00
wandererfan
238e8acda5 [TD]fix Section scale for DPGI base views 2024-01-18 13:27:29 -05:00
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
wandererfan
a8cc561396 [TD]apply translateLabel after all addObject calls 2023-08-17 19:23:29 -04:00
Chris Hennes
ad8177c9fa TD: Translate default labels 2023-08-17 19:23:29 -04:00
wmayer
25beef481c TD: move to new style connect() 2023-02-01 01:33:34 +01:00
wandererfan
437457e996 [TD]remove obsolete log messages 2023-01-13 12:15:33 -05: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
luz paz
2d94a99740 TechDraw: remove trailing whitespace 2022-11-15 16:17:22 +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
Benjamin Bræstrup Sayoc
71758ecf9b [TechDraw] Clean up precompile in Gui 2022-08-14 09:20:38 -04:00
berniev
5fa05ab83d Mod: Redundant_string_initialization 2022-08-08 16:52:42 +02:00
berniev
f4ffd15864 Mod: redundant void 2 2022-08-08 10:27:50 +02:00
Uwe
b2bb479788 [TD] last part of removal of superfluous nullptr checks 2022-07-20 12:17:16 +02:00
Uwe
b81d7e4864 [TD] remove some more superfluous nullptr checks 2022-07-20 11:54:28 +02:00
Uwe
b514f47c21 [TD] Gui: remove some superfluous nullptr checks 2022-07-19 02:49:46 +02:00
Benjamin Bræstrup Sayoc
c4de72c93c [TechDraw] Improve readability of TaskSectionView.cpp 2022-07-15 11:31:11 -04:00
Wanderer Fan
f90660eb12 [TD]fix handling of translated enumeration 2022-05-17 20:04:19 -04:00
Uwe
5757cdf2ad [TD] remove a single-header file 2022-03-25 04:11:53 +01:00
wmayer
e8f9c8a1d3 TD: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
Wanderer Fan
7903904f13 [TD]add missing ScaleType to Section dlg 2022-03-10 09:25:52 -05:00
Wanderer Fan
d4c5074ee5 [TD]remove redundant edits from 9 Task dialogs 2022-01-22 14:51:20 -05:00
luz paz
d13e450343 [TD] Renamed SpreadsheetView, RichTextAnnotation, SectionView...
`Quadrants`, `DetailView`, `ShowAll`
2021-04-17 11:38:10 +02: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
luz paz
89664642fb TD: Issue #0004473: Expose openCommand() to translation
Continuing the work to expose the undo/redo functionality to translation. This commit does so for the TechDraw Wb.  
Ticket: https://tracker.freecadweb.org/view.php?id=4473
2020-12-01 14:53:35 +01:00
wmayer
983939b32d Coverity: Uninitialized scalar/pointer field 2020-07-20 17:34:30 +02:00
donovaly
1fa5d3759c [TD] use KeyboardTracking for section view dialog
use the keyboardTracking feature as we now also do for the detail view dialog
2020-06-14 06:47:37 -04:00
wandererfan
b0b0b77d65 [TD]fix KB lockout in dialogs
- valueChanged signal is emitted for every keystroke
  causing multiple recomputes for every change of
  parameter.
2020-04-15 15:43:00 -04:00
donovaly
d365435b90 TaskSectionView.cpp: add missing unit initialization 2020-03-29 15:14:13 -04:00
donovaly
9c5c91db10 TaskSectionView.cpp: fix a typo 2020-03-29 15:14:13 -04: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
9defe5440e [TD]avoid crash on cancel of section edit 2020-03-20 07:28:33 -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
donovaly
ce06f31435 [TD] rename some Draw* elements - try 2
as discussed here: https://forum.freecadweb.org/viewtopic.php?p=360042#p360042
2020-01-18 06:57:29 -05:00
WandererFan
1665aee5a3 [TD]fix crash on Section apply 2020-01-16 07:36:05 -05:00
WandererFan
dedb03b76f [TD]fix Section label 2020-01-04 08:19:11 -05:00
wandererfan
42b3358f13 [TD]fix #4234 initial display of section label 2019-12-29 09:39:47 -05:00
wandererfan
25618be6a7 [TD]remove duplicate line 2019-12-18 07:01:46 -05: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
91d142b3f6 [TD]TaskSectionView minor tune up 2019-11-27 07:31:45 -05:00
wandererfan
e0a7284135 [TD]Section UI changes 2019-11-27 07:31:45 -05:00
donovaly
056ff6d1b6 TD renaming tools
as discussed in https://forum.freecadweb.org/viewtopic.php?p=344899#p344800
we need a more consistent naming for the Wiki
2019-11-17 08:22:09 -05:00
wandererfan
0bc3134e24 [TD]fix Section frame paint 2019-10-30 14:25:35 -04:00