Commit Graph

84 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
Roy-043
3a396e1ed3 Arch: Updates related to the PlaneGui class (#11153)
Related issue:
#5603.
2023-10-23 18:42:20 +02: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
Roy-043
bd3f71b478 Draft: Std_TransformManip should not be called from setEdit (#9375)
The object then seems to be put into edit mode twice (?) and Esc will not cancel the command.
2023-05-07 09:57:10 +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
Roy-043
3aebe166b4 [Arch] remove obsolete decode code (#9316)
* Update ArchCommands.py

* Update ArchPanel.py

* Update ArchReference.py

* Update ArchWall.py

* Update import3DS.py

* Update importDAE.py

* Update importIFClegacy.py

* Update importOBJ.py

* Update importSHP.py

* Update importSHP.py

Reverted

* Update importSH3D.py
2023-04-19 15:58:06 +02:00
luzpaz
bc1f217664 Arch: linting multiple imports on one line (#9281) 2023-04-18 16:23:44 +02:00
Artyom V. Poptsov
8a762a8637 ArchPanel: Remove "utf8_decode=True" from "translate" calls (#9279)
* src/Mod/Arch/ArchPanel.py: Remove deprecated "utf8_decode=True" from
  "translate" calls.
2023-04-18 16:18:01 +02:00
Roy-043
8a4f234718 [Arch] Remove obsolete code related to the Drawing WB 2023-04-02 19:30:10 +02:00
Roy-043
42a74daa19 Arch: improve context menus (rebase) 2023-01-12 22:54:09 +01:00
Roy-043
bafe141745 Arch: Housekeeping: import translate from correct file 2022-07-21 10:17:03 +02:00
oriond
3bcab266e9 Arch Fixes Trapezoidal Wave Width on Arch Panels 2022-03-20 20:22:54 -07:00
marioalexis
aec0ae2d39 Arch: Replace Drawing functions with TechDraw functions 2022-02-21 13:17:09 -03:00
Roy
65425b5e30 Arch: Fix translation issues 2022-01-10 10:26:08 +01: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
Chris Hennes
8228d64ac4 [ARCH] Catch only Exception, not BaseException 2021-02-11 11:52:45 +01:00
luz paz
d064cdc215 Arch: Fix LGTM warning of missing param for translate() in ArchPanel.py
Even though this is ignored per the docs[1], LGTM complains[2] about it. This commit adds the superfluous param. Note: there is precedent in ArchReference.py[3] and ArchWall.py[4].
 
 [1]https://github.com/FreeCAD/FreeCAD/blob/master/src/Mod/Draft/draftutils/translate.py#L73-L78  
[2] 17db14c970/files/src/Mod/Arch/ArchPanel.py (L32)  
[3] 45dd1a7f60/src/Mod/Arch/ArchReference.py (L39)  
[4] 45dd1a7f60/src/Mod/Arch/ArchWall.py (L42)
2021-02-03 10:28:21 -05:00
Yorik van Havre
c745f4ef5e Arch: Fixed non-workng Panel tools 2021-01-12 15:10:16 +01:00
luz paz
67381e9579 Arch: Fix header uniformity and remove trailing whitespace 2020-11-16 14:51:53 +01:00
vocx-fc
587475fc8a Arch: use new name of the icon Part_3D_object
It is defined in the Part Workbench. Before, it was called `Tree_Part`.
2020-10-22 15:11:45 +02:00
John Yani
7f3814faec [Arch] ViewProviderPanelSheet: Too many arguments
setProperties was called incorrectly
2020-09-08 16:14:22 +02:00
vocx-fc
58d4596888 Arch: use the new Draft trackers module
Previously it was `DraftTrackers.py`.
Now we import the trackers from `draftguitools/gui_trackers.py`.
2020-03-31 12:09:25 +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
Zheng, Lei
a3e88a399f Arch: relax Part::Feature type checking
For supporting Link inside Arch.
2019-11-17 13:03:42 -03:00
Sören Rohweder
813b529f5c Arch: Fixes PanelCut action 2019-11-01 17:39:45 -03:00
luz.paz
5c1cae14b9 Arch: use string operator instead of numeric LGTM fix 2019-10-25 10:23:24 -03:00
Bernd Hahnebach
36d418349e Arch: make new property to use shape color instead of material color working for all Arch objs 2019-08-14 21:41:47 +02:00
Yorik van Havre
78239e48a5 Arch: panel layers with negative thickness are not drawn 2019-07-09 12:06:59 -03:00
Yorik van Havre
624e20e9a2 Arch: Renamed property IfcRole to IfcType 2019-04-09 15:53:01 -03:00
Yorik van Havre
7c760259a3 Arch: Wall, structure, window and panel tools now remember and keep last used values 2019-03-28 17:02:54 -03:00
Yorik van Havre
21dc8c5054 Arch: Fixed remaining encoding problems - issue #3827 2019-02-19 20:03:51 -03:00
luz.paz
112f3de671 Crowdin: Continuing to refine translation strings 2019-02-11 16:22:12 +01:00
Yorik van Havre
090fc64284 Misc translation fixes from https://forum.freecadweb.org/viewtopic.php?p=281670 2019-01-23 18:20:43 -02:00
luz.paz
506741aee1 [For v0.18] Crowdin fixes
https://crowdin.com/translate/freecad/568/en-en#1172237
https://crowdin.com/translate/freecad/568/en-en#1172239
https://crowdin.com/translate/freecad/568/en-en#195053
https://crowdin.com/translate/freecad/568/en-en#1172247
https://crowdin.com/translate/freecad/568/en-en#1172249
https://crowdin.com/translate/freecad/568/en-en#1172251
https://crowdin.com/translate/freecad/6766/en-en#6511058
https://crowdin.com/translate/freecad/6766/en-en#6511060
https://crowdin.com/translate/freecad/6766/en-en#6502381
+ random typo fixes
2019-01-13 02:24:50 +01:00
Yorik van Havre
024540dbbe Fixed coverity issues
169009 Bad use of null-like value
169005 Bad use of null-like value
169003 Bad use of null-like value
169000 Bad use of null-like value
168998 Bad use of null-like value
168996 Structurally dead code
2018-11-20 12:37:32 -02:00
Yorik van Havre
58b80f5389 Arch: bugfix in PanelCut 2018-10-03 16:37:28 -03:00
Yorik van Havre
a6f7ca483e Arch: Added a CutOffset property to PanelCut object to be able to move the cut plane 2018-10-03 16:04:01 -03:00
Yorik van Havre
5f63a7764b Arch: using basic object names for all arch objects 2018-07-07 14:40:10 -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
30476e951d Arch: Renamed Role property to IfcRole 2018-05-11 12:01:55 -03:00
Yorik van Havre
b5ffabace2 Arch: All Arch objects can now have any IFC type(role) 2018-05-10 10:42:06 -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
Yorik van Havre
710692718c Arch: Optimized Arch panel waves generation 2018-05-07 10:41:17 -03:00
looooo
be5ea8391c PySide2: qApp -> QApplication 2018-04-14 10:40:31 +02:00
Yorik van Havre
4034851a5d Arch: bugfix in Panel in non-GUI mode 2017-12-16 10:06:11 -02:00
Markus Lampert
47b1360856 Create Scale property on the fly if older Arch.PanelSheet is loaded. 2017-10-22 11:24:58 -07:00
Yorik van Havre
8237b1c01f Arch: Fixed small bug in arch panel 2017-08-12 12:39:08 -03:00
Markus Lampert
dc84141477 Fixed wire transformation for scales other than 1. 2017-07-31 16:40:46 -03:00
Yorik van Havre
1519ca0c50 Arch: looo's fix in nester 2017-07-20 10:29:15 -03:00
Yorik van Havre
aba4338808 Arch: Nester optimizations 2017-07-18 17:55:44 -03:00