Chris Hennes
6a458b5ed0
TD: Fix capitalization of Console calls
2025-05-08 21:08:45 +02:00
WandererFan
3cabb3f7b8
[TD]Allow non-shape views to have children ( #20768 ) ( #21099 )
...
* [TD]Allow non-shape views to have children (#20768 )
* Update src/Mod/TechDraw/App/DrawView.cpp
Review comment
Co-authored-by: Benjamin Nauck <benjamin@nauck.se >
* Update src/Mod/TechDraw/App/DrawView.cpp
review comment
Co-authored-by: Benjamin Nauck <benjamin@nauck.se >
* Update src/Mod/TechDraw/Gui/ViewProviderDrawingView.cpp
review comment
Co-authored-by: Benjamin Nauck <benjamin@nauck.se >
* Update src/Mod/TechDraw/Gui/ViewProviderDrawingView.cpp
review comment
Co-authored-by: Benjamin Nauck <benjamin@nauck.se >
---------
Co-authored-by: Benjamin Nauck <benjamin@nauck.se >
2025-05-08 09:18:09 -05:00
bofdahof
ba2c2ca5ad
Console: rename PascalCase named methods to camelCase
2025-05-06 17:50:21 +02:00
Kacper Donat
b999ce0336
TechDraw: Use freecad_cast whenever possible
2025-04-26 14:23:25 +02:00
Benjamin Nauck
738bc95fa2
TechDraw: Add #include <limits> where used
2025-03-31 23:53:03 +02:00
Benjamin Nauck
cf94011294
Techdraw: Use std::numeric_limits and std::numbers instead of defines
2025-03-29 13:32:39 +01:00
Andrea
146d8a356b
change MIN_boost_version
...
ubuntu version 20.04 is no longer supported.
The minimum boost version used for freecad is now 1.74 (ubuntu 22.04) https://launchpad.net/ubuntu/jammy/+package/libboost-system-dev
2025-02-15 13:33:32 -06:00
Benjamin Bræstrup Sayoc
9a8bdbaf9f
TechDraw: Use QStringLiteral
2025-02-10 18:32:44 +01: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
94940f950b
[TD]fix default for KeepLabel
2024-07-06 12:49:18 -04:00
PaddleStroke
127ee90cec
TechDraw: Enable snapping section views to their base views.
2024-05-27 11:44:31 -04:00
pavltom
ed3a1a6184
[TechDraw] Reimplement Rich Annotation parent linking
2024-02-26 16:22:30 -05:00
pavltom
ff14c58ccc
[TechDraw] Add Owner property to Symbols
2024-02-11 16:03:44 -05:00
André Caldas
89dbab9b0e
Avoids using getNameInDocument() to test if DocumentObject is attached to a Document.
...
This patch substitutes by isAttachedToDocument() (almost) everywhere where
getNameInDocument() is used for this purpose.
The very few places not touched by this patch demand a (just a little) less trivial change.
When we change the returning type of getNameInDocument() to std::string,
those places will be easily found, because they shall generate a compiler error
(converting std::string to bool).
Rationale:
The fact that getNameInDocument() return nullptr to indicate
that the object is not attached to a document is responsible for lots of bugs
where the developer does not check for "nullptr".
The idea is to eliminate all those uses of getNameInDocument() and, in the near future,
make getNameInDocument() return always a valid std::string.
2023-12-11 17:37:58 +01:00
Florian Foinant-Willig
1d8a51b47b
TechDraw: modernize type checking
2023-10-23 18:08:59 +02:00
wmayer
948cbfccd9
modernize C++: avoid bind
...
In many cases std::bind() is kept because the code is much simpler
2023-08-08 21:10:16 +02:00
wmayer
52e1c7c33b
modernize C++: move from boost::bind to std::bind
2023-08-08 17:36:13 +02:00
wandererfan
62953f1a8e
[TD]remove unused override methods
2023-03-11 08:08:58 -05:00
wandererfan
ff1147fbae
[TD]add extensions for drag and drop
2022-12-27 19:43:44 -05:00
Uwe
5367aa8ab2
[TD] remove redundant nullptr checks
2022-10-03 04:25:33 +02:00
wandererfan
f970a321b2
[TD]fix StackTop and StackBottom
2022-09-24 08:18:38 -04:00
wandererfan
d8be4398e3
[TD]implement view stacking
2022-09-07 16:06:54 -04:00
wandererfan
aa2b1b8392
[TD]CI clang warnings
2022-09-05 17:48:38 -04:00
Wanderer Fan
a1cc69c8e3
[TD]code review changes for Gui
2022-08-18 19:43:04 -04:00
Wanderer Fan
ae3a955877
[TD]add progress reporting framework
2022-08-18 09:34:32 -04:00
Wanderer Fan
b467cd32f2
[TD]refactor scene/view/mdi
...
- move scene related functions out of mdiViewPage
and QGVPage.
- route requests for scene/view/mdi through
ViewProviderPage
2022-08-18 09:34:32 -04:00
berniev
f4ffd15864
Mod: redundant void 2
2022-08-08 10:27:50 +02:00
Benjamin Bræstrup Sayoc
17bcd06464
[TechDraw] Use inherited unsetEdit
...
Remove uneeded redefinitions of inherited functions
2022-08-04 10:02:47 -04:00
Benjamin Bræstrup Sayoc
aed0346cdb
[TechDraw] Remove uneeded redefinitions of inherited functions
2022-08-04 10:02:47 -04:00
Uwe
5486c9808d
[TD] remove some more superfluous nullptr checks
2022-07-20 02:53:48 +02:00
Uwe
b514f47c21
[TD] Gui: remove some superfluous nullptr checks
2022-07-19 02:49:46 +02:00
Wanderer Fan
db89eec8e3
[TD]implement navigation styles
2022-06-24 10:03:02 -04:00
mosfet80
c48a569696
Boost version <=1.60 is never used in freecad 0.20 ( #7038 )
...
* Boost version 1.60 is never used in freecad 0.20
2022-06-24 02:20:26 +02:00
Wanderer Fan
928c86d42d
[TD]fix updating of shared view
2022-06-05 09:33:02 -04:00
Wanderer Fan
9194d5c596
[TD]fix Rotation not applied
2022-06-02 09:09:53 -04:00
Wanderer Fan
78c22e33de
[TD]fix double draw on position change
2022-06-02 09:09:53 -04: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
d0ec4aafdc
[TD] Gui Headers: remove unused header - part 1
2022-03-25 01:58:33 +01:00
Uwe
9b14bf80d1
[TD] ViewProviders: remove unused includes
...
- also sort the includes
2022-02-18 04:43:32 +01:00
wmayer
a6838cf58f
Gui: rename methods of SelectionObserver to clarify intention in client code
2021-12-07 14:17:07 +01:00
bitacovir
b26069a508
[TD] Name uniformity for Tree Icons
2021-05-07 12:07:35 -04:00
Mateusz Skowroński
98f63ba60f
Fix build warnings from deprecated Boost headers (they are used internally by Boost). Thanks @wwmayer for the hint.
2020-12-29 10:20:53 +01:00
wmayer
d6169d6478
boost: fix for boost < 1.60
2020-06-15 19:38:39 +02:00
wmayer
730154a684
boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated
2020-06-12 17:51:33 +02:00
wandererfan
74c1b852f4
[TD]trap potential crash on app close
...
- avoid possible crash in TD dialogs if app closed
while dialog in progress.
2020-04-24 11:13:49 -04:00
wmayer
75fb8886ac
declare getMDIView and getMDIViewPage as const
2019-12-29 13:55:39 +01:00
wandererfan
f68e58e389
[TD]Prevent crash in SelectionSingleton
...
- in SelectionSingleton::setVisible, if the selection changes during
loop, a crash may occur.
- in QGraphicsScene, hiding an item changes its selected status.
2019-08-28 12:20:42 -04:00
wandererfan
7cb2713e8c
[TD]Welding Symbol creation
2019-08-22 17:11:55 -04:00
Zheng, Lei
e90d09dc40
TechDraw: Link related changes
...
* Support link and group objects
* Support view sync by implementing view provider API getMDIView()
* Use handleChangedPropertyType() for object migration instead of
reimplementing Restore() because of a lots of changes in
PropertyContainer::Restore().
* Various other small fixes.
2019-08-17 15:15:46 +02:00
wandererfan
925145a8b7
Fix #3695 Frame toggle sync
2019-05-13 12:29:15 -04:00