Commit Graph

59 Commits

Author SHA1 Message Date
David Carter
902af79514 Material: Material handling enhancements
Rework of the material handling system.

This first part concntrates on a rework of the material cards.
Rather than use a fixed list of possible properties, properties can
be defined separately in their own files and mixed to provide a
complete list of possible properties. Properties can be inherited.

The cards then provide values for the properties. These can also
be inherited allowing for small changes in cards as required.

The new property definitions are more extensive than previously.
2 and 3 dimensional arrays of properties can be defined. Values
are obtained by calling an API instead of reading from a dictionary.

For compatibility, a Python dictionary of values can be obtained
similar to how it was done previously, but this is considered a
deprecated API and won't support the newer advanced features.

The editor is completely reworked. It will be able to edit older format
material cards, but can only save them in the new format.

For testing during the development phase, a system preference can
specifiy wether the old or new material editors are to be used. This
option will be removed before release.
2023-09-25 11:04:01 -04:00
Roy-043
85c2c973d8 Material: Avoid dictionary.keys() where possible 2023-08-10 00:59:02 +02:00
luzpaz
38a01939e0 Migrate domain name from freecadweb to freecad (#9352)
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files

Closes #6415
2023-04-24 15:19:20 -05:00
luz paz
452008f65d Fix header uniformity for various workbenches/directories
Also includes some trailing whitespace fixes
2022-11-29 04:48:57 +01:00
Bernd Hahnebach
dc7e0cb0ce Material: matcard reader, fix some problems 2021-07-14 16:07:36 +02:00
luz paz
b463eca738 Fix FEM and Material typos
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,apoints,ba,beginn,behaviour,bloaded,bottome,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,inout,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,ontop,orgin,orginx,orginy,ot,pard,parms,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,./build/doc/SourceDocu`
2021-07-14 10:48:20 +02:00
Bernd Hahnebach
ef9d9c7e57 Material: card reader, do not break if error on card reading. 2021-07-13 20:41:38 +02:00
Bernd Hahnebach
3f552500bc Maaterial: card writer, force to use utf-8 2021-07-13 17:55:21 +02:00
Bernd Hahnebach
e9d1af3acc Material: better warning message if card name is not file name 2021-07-13 17:42:25 +02:00
Bernd Hahnebach
df3ba55bf1 Material: matcard writer, print error if no card name is provided on save 2021-07-13 17:42:19 +02:00
Bernd Hahnebach
599e601797 Material: matcard writer, get rid of Python 2 code 2021-07-13 17:42:13 +02:00
Bernd Hahnebach
ad39095847 Material: code formating, spaces 2020-01-06 00:02:20 +01:00
Dietmar Czekay
65ccdee9d8 add VacuumPermittivity and fix adding user values to material editor in FEM 2019-09-04 11:29:09 -03:00
luz.paz
9845c002ab Misc. source comment typo and whitespace fixes
Found via codespell
2019-06-16 20:47:07 +02:00
Bernd Hahnebach
421656602a Materials: white space 2019-06-11 10:37:08 +02:00
Bernd Hahnebach
4da861e8a7 Materials: card reader, delete not needed variable 2019-06-08 22:35:26 +02:00
Bernd Hahnebach
5a9ba2988d Material: card reader, do not break reading if saved with depretiated writer 2019-06-08 22:24:48 +02:00
Bernd Hahnebach
db1f3ac0c8 Materials: card writer, add whitspace between FreeCAD and version string 2019-06-03 22:17:50 +02:00
Bernd Hahnebach
57fc1d0cc2 Material: card utils and import, add some code examples 2019-04-25 20:43:07 +02:00
Bernd Hahnebach
f69537ed30 Material: mat card template for material editor, move to a much more pythonic one 2019-04-25 20:43:07 +02:00
Bernd Hahnebach
5b1d977df1 Material: import card module, code formating, comments and prints 2019-04-23 09:12:55 +02:00
luz.paz
a8cea8c73f Material: fix typos
Found via codespell
Thought this would merit a pre-0.18 release commit because of `./src/Mod/Material/StandardMaterial/TEMPLATE.FCMat`
2019-03-02 18:11:45 -05:00
Bernd Hahnebach
848d8f4d9c Material: card writer, get rid of double new line on file end 2019-03-02 18:13:10 +01:00
Bernd Hahnebach
fe0c313f00 Material: card writer, better meta comments 2019-03-02 18:13:10 +01:00
Bernd Hahnebach
2f621af7fa Material, card writer, add parameter to switch off group section writing (it is how material cards look like ATM) 2019-03-02 18:13:09 +01:00
Bernd Hahnebach
1ed9561864 Material, card writer, move comment 2019-03-02 18:13:09 +01:00
Bernd Hahnebach
fb1b9f2ef4 Material: card writer, add white spaces around = 2019-03-02 18:13:09 +01:00
wmayer
4b17d0e6ba fixes 0003865: non-ASCII characters incorrectly displayed in material cards
The combination Py2+Qt5 already worked, this change now fixes the combinations Py2+Qt4 and Py3+Qt5
2019-02-26 19:26:00 +01:00
Bernd Hahnebach
4af93b326e Material: card parser, more important comments 2019-02-21 13:51:43 +01:00
Bernd Hahnebach
e6731765ff Material: card header, use the same header in all code files 2019-02-19 10:27:26 -03:00
Bernd Hahnebach
19926d7beb Material, mat card writer, do not write empty sections 2019-02-15 19:02:43 +01:00
Bernd Hahnebach
4b08acd301 Material: mat card parser, there are two parsers in FreeCAD, make some comments about the existance of each other 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
be154a21d4 Material: card reader and writer, use file card name as CardName property 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
f283bd6c96 Material: card reader, fix for values containing a = 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
a8349c135b Material: card writer, some comments 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
6421722ae1 Material: card writer, do not handle source as comment in mat card 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
7edfa1e076 Material: card writer, move FreeCAD version info behind matcard info, std in original cards 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
5798813be1 Material: Py3, get rid of extra bees on printing 2019-02-12 10:17:50 -02:00
Bernd Hahnebach
f98e930185 Material: Py3 fixes in mat card writer 2019-02-11 15:18:24 +01:00
Bernd Hahnebach
0bfcc2872a Material: code formating, flake8 2019-01-05 12:17:52 +01:00
Bernd Hahnebach
8166145d0c Material: code formating, file beginnings Python block comment with space, flake8 E265 2019-01-05 12:17:52 +01:00
Yorik van Havre
0970989adf Material: Fixed py3/import issues 2018-12-29 14:40:25 -02:00
caceres
7be816033a Material: MaterialEditor migrate to model/view 2018-12-29 12:47:30 -02:00
looooo
c2be67e812 py3: iteritems -> items, iterkeys -> keys 2018-12-08 11:27:22 -03:00
Yorik van Havre
ce0f871cba py3 compatibility fixes 2018-10-27 16:04:51 -03:00
Bernd Hahnebach
d546e41923 py3: define more unicode for python3, see commit 421afe84 2018-08-07 16:57:00 +02:00
Bernd Hahnebach
d02b1fee43 Material: move materal property list into material module and use this for material editor ui and writing of mat files 2018-06-10 20:54:23 +02:00
Bernd Hahnebach
eeb5c5e09d Material, code formating, flake8 compatible code 2018-06-10 20:54:23 +02:00
Bernd Hahnebach
d114685107 Material: Editor and import, only use mat keys if they have a value 2018-06-01 08:21:31 +02:00
Bernd Hahnebach
2deeca9602 Material: Editor and import, fix openfile and savefile if no filename is given, make open and save work the same way 2018-06-01 08:21:28 +02:00