Kacper Donat
d9d518f905
TechDraw: Use freecad_cast whenever possible
2025-04-26 14:23:25 +02:00
Benjamin Nauck
d0320b494d
TechDraw: Add #include <limits> where used
2025-03-31 23:53:03 +02:00
Benjamin Nauck
bfdaa9aab2
Techdraw: Use std::numeric_limits and std::numbers instead of defines
2025-03-29 13:32:39 +01:00
Andrea
de9bd5e1ce
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
835905f76e
TechDraw: Use QStringLiteral
2025-02-10 18:32:44 +01:00
Ladislav Michl
0ee3c9f8e6
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
3ddddc375c
[TD]fix default for KeepLabel
2024-07-06 12:49:18 -04:00
PaddleStroke
48f43429bb
TechDraw: Enable snapping section views to their base views.
2024-05-27 11:44:31 -04:00
pavltom
d11d3cd7b8
[TechDraw] Reimplement Rich Annotation parent linking
2024-02-26 16:22:30 -05:00
pavltom
c21dca3a21
[TechDraw] Add Owner property to Symbols
2024-02-11 16:03:44 -05:00
André Caldas
560898907b
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
24352a7f4c
TechDraw: modernize type checking
2023-10-23 18:08:59 +02:00
wmayer
d150fa7164
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
68d22d864b
modernize C++: move from boost::bind to std::bind
2023-08-08 17:36:13 +02:00
wandererfan
d0c5b7c045
[TD]remove unused override methods
2023-03-11 08:08:58 -05:00
wandererfan
da06fc45a2
[TD]add extensions for drag and drop
2022-12-27 19:43:44 -05:00
Uwe
e3bf7027a6
[TD] remove redundant nullptr checks
2022-10-03 04:25:33 +02:00
wandererfan
74c1fed8a6
[TD]fix StackTop and StackBottom
2022-09-24 08:18:38 -04:00
wandererfan
fcef1cb174
[TD]implement view stacking
2022-09-07 16:06:54 -04:00
wandererfan
acf17905ed
[TD]CI clang warnings
2022-09-05 17:48:38 -04:00
Wanderer Fan
f5c5eec3bb
[TD]code review changes for Gui
2022-08-18 19:43:04 -04:00
Wanderer Fan
ac63550122
[TD]add progress reporting framework
2022-08-18 09:34:32 -04:00
Wanderer Fan
bdf4cea14e
[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
da9ebc572f
Mod: redundant void 2
2022-08-08 10:27:50 +02:00
Benjamin Bræstrup Sayoc
fda3fd731f
[TechDraw] Use inherited unsetEdit
...
Remove uneeded redefinitions of inherited functions
2022-08-04 10:02:47 -04:00
Benjamin Bræstrup Sayoc
23966513c7
[TechDraw] Remove uneeded redefinitions of inherited functions
2022-08-04 10:02:47 -04:00
Uwe
31bc9f3913
[TD] remove some more superfluous nullptr checks
2022-07-20 02:53:48 +02:00
Uwe
2e5e4dced8
[TD] Gui: remove some superfluous nullptr checks
2022-07-19 02:49:46 +02:00
Wanderer Fan
9894964eb6
[TD]implement navigation styles
2022-06-24 10:03:02 -04:00
mosfet80
620c273c4e
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
681d961254
[TD]fix updating of shared view
2022-06-05 09:33:02 -04:00
Wanderer Fan
8891394d5a
[TD]fix Rotation not applied
2022-06-02 09:09:53 -04:00
Wanderer Fan
d223d4362c
[TD]fix double draw on position change
2022-06-02 09:09:53 -04:00
wmayer
fd8719c85c
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
68052db4da
[TD] Gui Headers: remove unused header - part 1
2022-03-25 01:58:33 +01:00
Uwe
7daff0960f
[TD] ViewProviders: remove unused includes
...
- also sort the includes
2022-02-18 04:43:32 +01:00
wmayer
ca5c799ce2
Gui: rename methods of SelectionObserver to clarify intention in client code
2021-12-07 14:17:07 +01:00
bitacovir
468af0e714
[TD] Name uniformity for Tree Icons
2021-05-07 12:07:35 -04:00
Mateusz Skowroński
2559f2d29c
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
f3b460e42e
boost: fix for boost < 1.60
2020-06-15 19:38:39 +02:00
wmayer
4ec45b545e
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
0c57730cd2
[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
e900384250
declare getMDIView and getMDIViewPage as const
2019-12-29 13:55:39 +01:00
wandererfan
f4bb395387
[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
992ef1b07e
[TD]Welding Symbol creation
2019-08-22 17:11:55 -04:00
Zheng, Lei
d26f772035
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
d42c79c146
Fix #3695 Frame toggle sync
2019-05-13 12:29:15 -04:00
wandererfan
ef912cfea8
Improve radius/diameter dims for ellipse,spline
2019-05-13 12:29:15 -04:00
wandererfan
6c699887c0
Leader and RichText block improvements
2019-05-05 21:01:31 -04:00
wandererfan
66b091e625
Fix handling of Visibility property on Restore
2019-04-29 14:19:41 -04:00