Commit Graph

65 Commits

Author SHA1 Message Date
Max Wilfinger
d01ac5f825 TechDraw: Change navigation cursors to SVG 2025-08-30 11:23:07 +02:00
captain0xff
d8f673aead techdraw: remove QGVPage::getDevicePixelRatio() in favor of getMaximumDPR 2025-04-03 19:55:27 +05:30
Benjamin Bræstrup Sayoc
9941b59e98 TechDraw: hard type enums, part 3 (#19418)
* Remove magic number and hard type enums in LineNameEnum.h

- Remove currently present magic numbers
- Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers.

* Remove magic number and hard type enums in QGIFace.h

- Remove currently present magic numbers
- Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers.

* Remove magic number and hard type enums in Enums.h

- Remove currently present magic numbers
- Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers.

* Remove magic number and hard type enums in QGVPage.h

- Remove currently present magic numbers
- Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers.

* Remove magic number and hard type enums in TaskSurfaceFinishSymbols.h

- Remove currently present magic numbers
- Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers.

* Remove magic number and hard type enums in QGTracker.h

- Remove currently present magic numbers
- Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers.
2025-02-24 11:58:05 -05:00
PaddleStroke
cc393632e1 Techdraw: Smart Dimension: Fixes and simplifies code 2024-05-13 15:03:37 +02:00
PaddleStroke
57bc4babea TechDraw: Implement smart dimension tool. 2024-05-06 18:40:46 +02:00
wmayer
db9d6db34e TD: remove unused class member
Fix compiler warning: -Wunused-private-field
2023-09-11 11:34:29 -04:00
wandererfan
3769dbeeb9 [TD]add support for view menu zoom 2023-09-05 08:47:40 -04:00
wmayer
ed251a914b TD: modernize C++: use override 2023-08-04 17:09:53 +02:00
wandererfan
e02875fe1a [TD]fix rich text font size in pdf 2023-07-13 14:28:29 -04:00
wmayer
16e27eecc7 TD: port to Qt6
* in QtConcurrent::run the order of 1st and 2nd argument are swapped
* QtConcurrent::run asserts that the argument of the passed function pointer is not non-const
* Used methods of QFontDatabase are static in Qt5 and Qt6
* QTextStream::setCodec() has been removed in Qt6
* Argument of enterEvent() has changed from QEvent to QEnterEvent
* QTextCharFormat::setFamily() is deprecated
2023-03-16 09:17:39 -04:00
wandererfan
bc036abb30 [TD]Allow balloons to be attached to non-part views 2023-01-13 12:15:33 -05:00
wandererfan
aa2b1b8392 [TD]CI clang warnings 2022-09-05 17:48:38 -04:00
Wanderer Fan
aa1193559b [TD]clazy warnings and duplicate setter/getter
- clazy warning re missing Q_OBJECT

- include TechDrawGlobal.h in headers

- resolve duplicate setter/getters
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
Wanderer Fan
fdfc73fe93 [TD]remove precompiled from *.h 2022-08-14 09:20:38 -04:00
Benjamin Bræstrup Sayoc
71758ecf9b [TechDraw] Clean up precompile in Gui 2022-08-14 09:20:38 -04:00
berniev
71dc5ead2f Mod: Use override etc 2 2022-08-09 12:52:26 +02:00
berniev
f4ffd15864 Mod: redundant void 2 2022-08-08 10:27:50 +02:00
Wanderer Fan
203b9bb26c [TD]Navigation Styles - context menu handling & std cursors 2022-06-30 08:50:33 -04:00
Uwe
5ca796a162 [TD] fix linker error with MSVC
patch by @wwmayer: https://forum.freecadweb.org/viewtopic.php?p=605472#p605472
many thanks!
2022-06-26 22:38:49 +02:00
wmayer
e84f1ef14e TD: minor fixes:
* remove superfluous semi-colons
* if a method is declared override then the keyword virtual should be dropped
2022-06-26 15:51:43 +02:00
Wanderer Fan
db89eec8e3 [TD]implement navigation styles 2022-06-24 10:03:02 -04:00
wmayer
e8f9c8a1d3 TD: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
Wanderer Fan
0149b99b6f [TD]make page grid unit aware 2022-03-04 09:28:16 -05:00
Uwe
6f00d895c0 [TD] fix compilation error introduced with https://github.com/FreeCAD/FreeCAD/pull/6465 2022-02-27 23:56:43 +01:00
Wanderer Fan
879339faa4 [TD]add alignment grid to page 2022-02-27 14:34:35 -05:00
Tomas Pavlicek
b93d049f8e TechDraw - Balloon updates 2021-10-03 13:43:53 +02:00
wandererfan
b09233314b [TD]fix Svg hatch on export 2019-12-17 08:29:49 -05:00
Tomas Pavlicek
49294e780f TechDraw: Middle button panning 2019-08-27 07:33:30 -04:00
wandererfan
e4d3909484 [TD] fix stale pointer in scene 2019-08-22 17:11:55 -04:00
wandererfan
7cb2713e8c [TD]Welding Symbol creation 2019-08-22 17:11:55 -04:00
Tomas Pavlicek
a562f6a129 TechDraw: SVG export refactoring - All XML modifications via DOM 2019-06-11 15:46:46 -04:00
wandererfan
09679c18aa Fix regression in Caption handling 2019-06-01 15:59:26 -04:00
wandererfan
e759f91d68 Fix Balloon Next Index Persistance
- next sequential number for balloon on Page was
  not being preserved across save/restore
2019-05-25 18:44:35 +02:00
Franck Jullien
79f8d4a7cd [TD] Rewrite balloon placing method
When clicking on balloon command, cursor is changing to balloon cursor.
It means user is ready to place a balloon (anywhere on the page).
Balloon object is not created until user click somewhere.

Balloon command can be aborted pressing escape or when page view lost
focus (in other words, when user clic somewhere else than the page).
2019-05-21 08:37:05 -04:00
wandererfan
925145a8b7 Fix #3695 Frame toggle sync 2019-05-13 12:29:15 -04:00
wandererfan
c1f9f11c27 Leader and RichText block improvements 2019-05-05 21:01:31 -04:00
wandererfan
abf419f68c Text Leader initial version 2019-05-05 21:01:31 -04:00
Franck Jullien
1136c5d16d TechDraw: force user to place its balloon 2019-04-17 08:42:51 -04:00
Franck Jullien
c5942d6a78 TechDraw: add Balloons 2019-04-01 23:24:17 +02:00
wmayer
f0a1c43dbf fix -Winconsistent-missing-override 2019-02-28 22:55:46 +01:00
wandererfan
bb18d499a8 Implement kb scroll and pan 2019-02-25 17:52:46 +01:00
wandererfan
964bc5ab82 Implment ctl+/- zoomin on Page 2019-02-25 17:52:46 +01:00
wandererfan
c654ef4e2b Add id=PageName to exported Svg
- add id attribute to output of QSvgGenerator.
2018-12-07 08:53:08 -03:00
wandererfan
89275b883b Respect "InvertZoom" parameter 2018-10-26 00:49:53 +02:00
WandererFan
58e8cefc56 Fix #3224 Seg Fault in DrawProjGroup
- QGIViews for DrawProjGroupItem were not being deleted since
  DPGI belongs to DPG, not DrawPage.  Since there is a 1 to 1
  relationship between MDIViewPage and DrawPage, the check for
  membership in DrawPage is unnecessary.
2017-11-24 20:03:02 -05:00
Ian Rees
950ac44f9f TechDraw: Tidy, and fix Qt5 template text edition 2017-04-26 18:23:21 +12:00
WandererFan
75f3566812 Fix #2888 Crash on Delete View 2017-02-09 15:45:04 -05:00
WandererFan
d6419b5a7e Delete DPGI's when parent DPG deleted
Ensure Gui/QGIVxx is removed when App/DVxxxx is deleted
2017-01-29 19:40:33 -05:00
WandererFan
af4bedf441 Correct handling of deleted Features in QGraphicsScene 2017-01-29 19:40:33 -05:00