Commit Graph

65 Commits

Author SHA1 Message Date
Roy-043
544bd1e7ea Arch: implement new get_param functions
Additionally 2 Arch_Window bugs were fixed:
* If the W1 value was changed the box tracker was not repositioned relative to the cursor.
* The WindowColor was not applied because of a typo in the code. De current default color is quite dark BTW.

Note that all dimensional values that were not really defaults, but just the last entered values, have been removed from preferences-archdefaults.ui. As a result the layout looks a bit strange. That will be improved in a next PR.
2024-01-18 15:43:15 +01:00
wmayer
83d4080fe8 App: fixes #10460: App::PropertyPythonObject is not saving data
Since Py3.11 the methods names __setstate__ and __getstate__ conflict with the method names added to the object class.
Thus rename them to 'loads' and 'dumps'
2023-09-24 10:56:35 -05:00
Roy-043
cca6f4c3e7 Arch: more consistent object naming and labelling
Following the example of Arch_Wall:
- Fixed object name.
- Default label is translatable.
- Name argument should only be used for the label and not be translated.
2023-05-28 15:58:54 +02:00
luzpaz
129d5882a7 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
luzpaz
bc1f217664 Arch: linting multiple imports on one line (#9281) 2023-04-18 16:23:44 +02:00
Roy-043
bafe141745 Arch: Housekeeping: import translate from correct file 2022-07-21 10:17:03 +02:00
Uwe
3a50f95be4 Mod: remove some superfluous Boolean checks (#7213)
* Mod: remove some superfluous Python Boolean checks
2022-07-19 01:35:12 +02:00
Alex Young
79449b8ce9 Arch: removes unused imports
Removes unused imports as reported by LGTM.

There are exceptions: `import Arch_rc` is shown as an alert, but has side effects.  It's not clear what the best thing to do in those cases is, so I've left them for now.
2021-02-14 16:27:06 +00:00
luz paz
67381e9579 Arch: Fix header uniformity and remove trailing whitespace 2020-11-16 14:51:53 +01:00
vocx-fc
a5aa9646b0 Arch: update some functions that come from the Draft workbench
In particular `getGroupContents` was renamed to `get_group_contents`
in the Draft workbench, so the function name is updated accordingly.
2020-07-13 14:35:38 +02:00
luz.paz
06a1099e2b [skip-ci] Fix typos
Found via codespell v1.17.0.dev0  
```
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-04-27 11:29:32 +02:00
David Daish
c11ebcd43a Rewrote the function and method docstrings in an imperative style. 2020-04-22 12:17:08 +02:00
David Daish
14283ea3ee Moved __init__ docstrings into the class docstring 2020-04-22 12:17:08 +02:00
David Daish
5f0438fb9c Removed incorrect apostrophies. 2020-04-22 12:17:08 +02:00
David Daish
118483fd4e Added reference to the depreciation of the ArchFloor module. 2020-04-22 12:17:08 +02:00
David Daish
0c9fde600a Moved all module docstrings to the top of the file. 2020-04-22 12:17:08 +02:00
David Daish
d3f6d8d5ce Spellcheck 2020-04-22 12:17:08 +02:00
David Daish
eda726041b Added docstrings for arch project, and corrected some doc mistakes. 2020-04-22 12:17:08 +02:00
David Daish
0c3e513c36 Added docstrings for ArchFloor 2020-04-22 12:17:08 +02:00
luz.paz
8fb5c65736 Arch: [skip ci] fix header uniformity
This PR fixes header uniformity across all Arch files
2019-12-26 18:24:06 +01:00
Yorik van Havre
a937461d6f Arch: Merge of PR #2259 - Fix ifc project 2019-08-14 16:04:52 -03:00
Yorik van Havre
4893dee1c4 Arch: Wording fixes 2019-07-06 20:22:47 -03:00
Yorik van Havre
af0cb40682 Arch: Removed Floor dependency of Site 2019-05-08 13:41:58 -03:00
Yorik van Havre
624e20e9a2 Arch: Renamed property IfcRole to IfcType 2019-04-09 15:53:01 -03:00
luz.paz
a979c1ec45 Crowdin: follow-up to previous commit 2019-03-22 10:44:14 -03:00
luz.paz
67fff1538d Crowdin: Arch/ArchFloor.py grammar and refinement 2019-01-30 11:08:03 -02:00
Yorik van Havre
2bef80dcc4 Arch: initial BuildingPart development 2018-06-28 18:44:07 -03:00
Yorik van Havre
e49a5af3ae Arch: separate properties creation in own methods and check properties at file load 2018-06-01 19:36:35 -03:00
Yorik van Havre
c360263582 Arch/Draft: Make sure an active doc exists before creating objects 2018-05-08 16:07:55 -03:00
luz.paz
25b58a1a8c Arch: Residual trailing \n chars removed from translate() 2018-04-17 10:16:28 -03:00
Yorik van Havre
e5f5e4b7c9 Arch: small bugfix in floors 2018-03-02 19:08:46 -03:00
Yorik van Havre
9a6191f572 Draft: AutoGroup system 2017-01-25 14:55:14 -02:00
Priit Laes
1591601654 py3: Arch: *.py: Fix syntax for python3 2017-01-17 09:24:46 +01:00
Yorik van Havre
af97583026 Doc: Fixes in doxygen docs for Draft,Arch, FEM 2016-11-17 17:04:09 -02:00
Yorik van Havre
dabccc40b6 Made Arch objects properties translatable - issue #2524 2016-10-07 21:37:15 -03:00
Yorik van Havre
6861574346 Arch: Added several properties to Equipment, Space, Floor & Site needed for gbXML - issue #2543 2016-10-06 22:35:45 -03:00
Yorik van Havre
ebc1d92893 Arch: New-style Arch Site - fixes #2634 2016-10-04 16:04:09 -03:00
Yorik van Havre
15c368d982 Arch: Fixed drag-n-drop in Arch groups 2016-09-16 19:57:06 -03:00
Jonathan Wiedemann
41307ef5a1 Move printMessage in ArchCommands.
Messages are translatable.
2016-07-24 19:57:23 -03:00
Jonathan Wiedemann
b114a051f4 Allow floors in floor object. 2016-07-24 19:57:23 -03:00
Jonathan Wiedemann
7425394df9 Arch: Fix Site, Building, Floor objects creation
-New param : GetBool("FreeLinking",False), unavailable in pref see
parameters
-by default :
allow create Site on Building only
deny create Building on Site or Building
deny create Floor on Site, Building,Floor
-option:
allow create and linking what you want (until non-DAG)
2016-07-24 19:57:23 -03:00
Yorik van Havre
e6dd3488ff removed translation from property descriptions (wrong to do it there anyway) - issue #2524 2016-05-18 16:59:15 -03:00
wood galaxy
95c0fe3a84 Arch : Internal object name are in English.
Arch objets Label could be translated.
2015-01-05 13:13:45 -02:00
Yorik van Havre
9ee08a97ea Draft: fixed #1664 again 2015-01-04 20:38:47 -02:00
Yorik van Havre
46583f2960 Used Gui.addModule() instead of import in Draft & Arch 2014-08-05 19:38:40 -03:00
Yorik van Havre
eea27448e9 Arch: Fixed bugs when working without GUI 2014-07-17 19:58:22 -03:00
Johannes Reinhardt
4a6449d2bd deactivate commands in Arch if no document is open 2014-05-21 17:09:02 +02:00
Yorik van Havre
a63f4c1f2e Used new PropertyQuantity API in Draft & Arch - fixes #1414 2014-02-21 12:37:29 -03:00
Yorik van Havre
69cc7ec901 Arch now works in console mode - fixes #1362 2014-01-26 20:13:50 -02:00
Yorik van Havre
e352e169da Arch: Automatic wall height - fixes #980
+ Walls can now be capped by roofs, by subtracting a roof from them
+ Walls and Structs with height = 0 take height from their parent floor
+ Changing the placement of a floor changes all the placements of its children
2014-01-14 16:16:04 -02:00