Commit Graph

28 Commits

Author SHA1 Message Date
wandererfan
f465729608 [TD]fix editable fields click handles
- click handles were displayed when view frames were displayed,
  and when printing or exporting.
- now, click indication is only shown on mouse over.
2025-08-11 11:05:47 -05:00
Ryan Kembrey
bbfbb6e059 TechDraw: Update UI strings for consistency
Closes: #22143
2025-08-04 20:26:04 +02:00
Kacper Donat
b999ce0336 TechDraw: Use freecad_cast whenever possible 2025-04-26 14:23:25 +02:00
Karliss
42790475d6 Add missing parent for messagebox and other popups
Unparented popups can easily get lost in backround, but they still block top level event loop when run with ::exec() thus preventing interactions with main window.  This mainly happens on wayland. Setting the parent ensures they are always kept on top and reasonably positioned.
2025-03-16 16:02:36 -05:00
WandererFan
8b7cbae43b [TD]respect locale for date autofill (#18132)
* [TD]respect locale for date autofill

* [TD]fix merge conflict

* Apply suggestions from code review

---------

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2024-12-13 11:07:54 -06:00
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
50eb2b5513 [TD]show autofill value in dialog 2024-06-30 09:32:20 -04:00
wandererfan
55515b1e7f [TD]allow template fields to re-apply autofill 2024-06-23 09:48:25 -04:00
wandererfan
37c54b6708 [TD]template green squares to underline 2023-12-17 08:37:19 -05: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
Chris Hennes
bd86b4dcfe [TD] Remove deprecated Qt < 5.9 code 2021-04-02 12:02:54 +02:00
luz paz
ae71abd1cc TechDraw: Header uniformity and whitespace fixes 2020-11-14 16:59:51 +01:00
luz.paz
d1dc813a80 TD: fix header uniformity
This PR fixes header uniformity across all TechDraw WB.
2019-12-21 09:57:45 -05:00
wandererfan
d76394cf59 [TD]Fix mishandling of escaped html in Templates 2019-09-17 19:55:37 -04:00
WandererFan
6fb1972875 Fix hidden click handles on Templates
- on some Templates, the green click handles for
  editing text were being painted under the Template
  and were not visible.
2018-02-07 19:05:25 +01:00
Ian Rees
950ac44f9f TechDraw: Tidy, and fix Qt5 template text edition 2017-04-26 18:23:21 +12:00
wmayer
5096f55ccb port C++ code to Qt5 2016-12-13 14:22:59 +01:00
wmayer
6148bf4df5 fix -Wextra & -Wdeprecated in TechDraw 2016-09-22 19:32:16 +02:00
WandererFan
32e624c108 Handle non-latin1 chars in template 2016-08-12 10:01:16 +02:00
WandererFan
27aafada9c Include file cleanup per cppclean analysis 2016-07-14 14:39:06 +02:00
WandererFan
3dec1bd3b6 Fix template field dialog multiple instances 2016-07-11 15:32:16 +02:00
WandererFan
5591161e82 dlgTemplateField parentage
cosmetic: move button box
2016-07-11 15:32:16 +02:00
WandererFan
1afd32593d TemplateTextField double click crash 2016-07-11 15:32:16 +02:00
WandererFan
87f62ce89e Handle malformed SVG in Template
Prevent invalid data input for Editable Text
2016-07-11 15:32:16 +02:00
WandererFan
993330a76d Py convenience functions for Template EditableTexts 2016-07-11 15:32:16 +02:00
WandererFan
845a5d9f4e Prettify dialog to change EditableTexts 2016-07-11 15:32:16 +02:00
WandererFan
ebc19e7215 misc /Mod/Drawing, QGI, obs functions 2016-07-11 15:32:16 +02:00
WandererFan
df13886349 Add Mod/TechDraw/Gui 2016-07-11 15:32:16 +02:00