Commit Graph

81 Commits

Author SHA1 Message Date
mosfet80
9c02cd0014 TechDraw: Remove unused functions (#21483)
* removed unused functions

remode update

* removed unused function

removed     CreateTechDrawCommandsDims()
clean code

* removed unused function

removed     CreateTechDrawCommandsDims()
clean code

* TD: Restore CreateTechDrawCommandsDims() function

---------

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2025-09-02 23:45:40 -05:00
Ladislav Michl
7f2ddc5ac1 TD: remove unused clearLineSets()
d2ce7f8145 ("TD: Remove calls to now-empty clearLineSets() method")
removed last calls to clearLineSets(), so remove it entirely.
2025-09-01 14:12:58 +02:00
Benjamin Bræstrup Sayoc
3ddc7fe2e6 TechDraw: fix face color not working
Fixes #20467
2025-05-15 12:16:24 +02:00
bofdahof
998f4e4d45 Console: rename PascalCase named methods to camelCase 2025-05-06 17:50:21 +02:00
Chris Hennes
998f713c97 Merge pull request #19788 from benj5378/state2
TechDraw: remove unneeded state, part 1
2025-03-17 00:02:20 -05:00
Luz Paz
17102251e5 Fix various typos 2025-03-14 12:37:12 -04:00
Benjamin Bræstrup Sayoc
2607c74e47 TechDraw: remove unneeded state from QGIFace 2025-03-13 13:44:30 +01:00
Benjamin Bræstrup Sayoc
aead9ac8c7 TechDraw: remove unneeded state from QGIPrimPath 2025-03-13 13:41:59 +01:00
Chris Hennes
7f1c43a335 Merge pull request #19636 from kadet1090/color-in-base
Base: Move App::Color to Base
2025-03-02 16:36:40 -06:00
Benjamin Bræstrup Sayoc
bf1f99c070 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
Kacper Donat
a72a63232a Base: Move App::Color to Base
Every basic data type is stored in Base module, color is standing out as
one that does not. Moving it to Base opens possibilities to integrate it
better with the rest of FreeCAD.
2025-02-17 21:10:26 +01:00
wandererfan
b7bdf93654 [TD]fix scaling of large hatch tiles 2024-11-03 10:00:50 -05:00
wandererfan
e484db2a03 [TD]revert to v0.21 hatch exporting 2024-05-17 18:06:47 -04:00
wandererfan
cea3370a24 [TD]fix regression of svg hatch during export
- last worked in v0.20
- svg hatch tile field is not cropped on export to svg.  svg tiles are
  replaced by pixmap tiles for export.
2024-04-12 09:00:06 -04:00
pavltom
4c888b6afe [TechDraw] Issue #6527 - Implement face transparency 2023-11-10 10:48:06 -05:00
wandererfan
8dea3487e2 [TD]refactor QGIFace into 2 files
- add PATPathMaker for the PAT hatch spec processing
  methods
- remove PAT methods from QGIFace
- remove obsolete conversion of svg hatch to pixmap
2023-10-23 11:01:38 -04:00
wandererfan
d01e9165a5 [TD]resolve variable name confusion
QPen and QBrush variable names were too similar and
easily confused.
2023-10-23 11:01:38 -04:00
wandererfan
13d6615938 [TD]reduce number of tiles for svg hatching
- reduce the size of the overlay area from 200% to an
  adjustable size with a default of 125%.
2023-07-25 12:50:39 -04:00
wandererfan
be6484b150 [TD]use shared renderer for svg tiles 2023-07-24 11:49:14 -04:00
wandererfan
195520d4a3 [TD]fix face colour preference ignored 2023-07-23 19:14:06 -04:00
Benjamin Bræstrup Sayoc
3f81006ac4 [TechDraw] Simplify return logic
Normal warmup
2023-04-11 13:49:57 -04:00
Benjamin Bræstrup Sayoc
15fe52a04b [TechDraw] Simplify retrievement of user preferences
for all TechDraw files
2023-04-10 23:34:05 -04:00
wandererfan
4dff7db187 [TD]fix face hatch location inSvg export 2023-02-12 11:50:20 -05:00
wandererfan
d63ac0f7f6 [TD]add light text on dark page mode
- some visually impaired users need white graphics on
  dark page.

- revise Annotation dialog to respect dark style
2023-01-03 17:41:33 -05:00
Uwe
8b5fc633a9 [TD] QGIA - QGIH:remove unused includes
- also some sorting
2022-12-04 03:10:56 +01:00
wandererfan
276e6c45b9 [TD]allow rotation of hatch directions
- faces can have their svg and bitmap hatches rotated to match
  the view rotation or special situations
- section cut face can have svg hatch rotated
2022-12-03 15:15:25 -05:00
wandererfan
acf17905ed [TD]CI clang warnings 2022-09-05 17:48:38 -04:00
berniev
d66df602ad App: Single arg ctors must be explicit 2022-08-24 07:20:57 +02:00
Benjamin Bræstrup Sayoc
aa9a667506 [TechDraw] Clean up precompile in Gui 2022-08-14 09:20:38 -04:00
Benjamin Bræstrup Sayoc
9905e17ba1 [TechDraw] Remove uneeded redefinitions of inherited functions 2022-08-12 18:13:52 -04:00
berniev
da9ebc572f Mod: redundant void 2 2022-08-08 10:27:50 +02:00
andrea
5a9ffe468c Remove deprecated function 2022-07-26 08:52:04 -04:00
Wanderer Fan
ac4fa39ad4 [TD]fix bitmap hatch 2022-07-03 10:18:37 -04:00
Wanderer Fan
15917cd60f [TD]fix artifact in PDF export 2022-04-07 08:46:11 -04:00
Wanderer Fan
e91cc8e329 [TD] avoid memory leaks by using shared_ptr
TD geometry objects are sometimes double deleted.  This
change uses shared_ptr instead of raw pointers to manage
deletions.
2022-01-07 13:34:20 -05:00
luz paz
ff5f3799d8 Fix various typos [skip-ci]
Found via `codespell v2.0.dev`  
```
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml
```
2020-11-04 10:18:30 +01:00
wmayer
2057e151d8 Qt5: fix deprecation warnings for Qt 5.15
+ QByteArray::append is deprecated
+ QPixmap* QLabel::pixmap() is deprecated
+ overloaded version of QString::split is deprecated
+ QSysInfo::windowsVersion()/QSysInfo::MacVersion() is deprecated
2020-10-18 14:45:31 +02:00
wandererfan
04f1842308 [TD]remove obsolete QGraphicsSVGItem (LGTM) 2020-07-26 19:45:49 -04:00
wmayer
da6b379566 fixes #0004318: Compilation fails with Qt 5.15 beta with QPainterPath errors [skip ci] 2020-07-02 13:19:43 +02:00
donovaly
1ae69d2ac8 code simplification 2020-06-13 09:46:20 -04:00
donovaly
79b267a3dc [TD] fix hatch color issue
as discussed: https://forum.freecadweb.org/viewtopic.php?f=35&t=47536&p=407916#p407916
there are 2 types of SVG declarations possible
2020-06-13 09:46:20 -04:00
wandererfan
cda235aba0 [TD]Fix geometric hatch in Pdf 2020-06-09 07:22:00 -04:00
wandererfan
a9b718d1e0 [TD]Export Svg hatch as bitmap 2020-05-29 20:53:24 -04:00
wandererfan
57bfc2e380 [TD]fix Svg hatch on export 2019-12-17 08:29:49 -05:00
wandererfan
4b853ab9f6 [TD]Fix selection highlight for QGIPrimPath children 2019-09-09 15:40:39 -04:00
wandererfan
dd459f0d88 [TD]Allow transparent Faces as default 2019-09-08 07:13:23 -04:00
wandererfan
0d01744098 [TD]Clean up Welding Symbol creation 2019-08-22 17:11:55 -04:00
wandererfan
21efae348e [TD]Fix #4017 Crash on bad hatch scale 2019-07-19 11:01:20 -04:00
wandererfan
5970e91ef2 [TD]Py Cosmetic Vertex, Line, Circle Arc 2019-07-15 12:36:48 -04:00
wandererfan
3e0452417b Cosmetic CL for Section and Detail 2019-06-06 19:58:15 -04:00