Commit Graph

34 Commits

Author SHA1 Message Date
Ladislav Michl
e62b91ada4 Base: Drop QString-std::string conversion functions from Tools
Convenience helpers function Tools::toStdString and Tools::fromStdString
were implemented for Qt4 or older to perform utf8 aware conversion as
QString::toStdString/QString::fromStdString were using toAscii/fromAscii
internally (see https://dreamswork.github.io/qt4/classQString.html).

Since Qt5 QString uses toUtf8/fromUTf8, which makes the helper functions
obsolete (see https://doc.qt.io/qt-5/qstring.html#fromStdString).
2024-12-02 23:30:53 -05:00
WandererFan
c9beae7ef3 [TD] Fix win file spec backslash (fix #16646) (#16689)
* [TD]add method to clean win filespecs

- '\' in strings passed to Python as filespecs is interpreted as
  an escape of the following character.
- replace '\' with '/'

* [TD]remove '\' from filespecs before use
2024-09-23 17:40:05 +02:00
wandererfan
5594d23b5a [TD]fix ActiveView image size 2024-06-13 19:25:29 -04:00
wandererfan
9aeeeb61fd [TD]disable crop fields if crop not checked 2024-06-13 19:25:29 -04:00
wmayer
d305f306df Core: Revert superfluous changes made with PR #9521 2023-10-09 15:06:45 +02:00
AgCaliva
375df38e78 fixing DOMDocument redefinition error 2 2023-09-14 03:50:53 -03: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
Uwe
2dcddfef7d [skip ci] [TD] only whitespace and sorting 2022-12-12 02:23:22 +01:00
wandererfan
362d15f967 [TD]fix wrong error message on load
- also improve temp file name generation
2022-12-11 19:11:28 -05:00
Uwe
993c5b1574 [TD] Task*, part 1: remove unused includes
- also some sorting
2022-12-07 16:15:40 +01:00
wandererfan
30d2514020 [TD]ActiveView from different document 2022-10-18 09:04:28 -04:00
Uwe
5367aa8ab2 [TD] remove redundant nullptr checks 2022-10-03 04:25:33 +02:00
wandererfan
acac7decfa [TD]fix active view on windows 2022-09-13 08:38:32 -04:00
Wanderer Fan
0fd189a153 [TD]simplify ActiveView
- remove copyActiveViewToSvgFile
- use bitmap image instead of Svg
- upgrade Task with crop options
2022-09-09 19:58:40 -04:00
wandererfan
aa2b1b8392 [TD]CI clang warnings 2022-09-05 17:48:38 -04:00
berniev
f4ffd15864 Mod: redundant void 2 2022-08-08 10:27:50 +02:00
Uwe
5486c9808d [TD] remove some more superfluous nullptr checks 2022-07-20 02:53:48 +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
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
wmayer
8f786ea6ef Gui: Optimize includes to reduce compile time 2022-03-07 20:29:18 +01:00
Wanderer Fan
d4c5074ee5 [TD]remove redundant edits from 9 Task dialogs 2022-01-22 14:51:20 -05:00
luz paz
738a697d94 [TD] remove Py2 code from TD 2021-04-22 13:08:56 +02:00
luz paz
751399892a [TD] icon uniformity for ActiveView and FaceCenterLine commands
Renamed SVGs, saved as plain svg, updated appropriate areas in the source code
2021-04-05 14:41:30 +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
luz paz
ae71abd1cc TechDraw: Header uniformity and whitespace fixes 2020-11-14 16:59:51 +01:00
wmayer
983939b32d Coverity: Uninitialized scalar/pointer field 2020-07-20 17:34:30 +02:00
donovaly
aefa33fa3e [TD] sanitize active view dialog
- add missing enable slot
- fix size policies
- add missing unit initialization
- add and fix tooltips
2020-03-29 19:30:00 -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
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
wmayer
0995ff1318 fix further file names vulnerabilities in TechDraw module 2019-10-03 02:45:38 +02:00
wandererfan
ab180c761e [TD]Make TD View from ActiveView 2019-08-28 08:38:27 -04:00