Commit Graph

53 Commits

Author SHA1 Message Date
pre-commit-ci[bot]
9fe130cd73 All: Reformat according to new standard 2025-11-11 13:49:01 +01:00
ᴩʜᴏɴᴇᴅʀᴏɪᴅ
f620d68c19 Removed outdated UTF8 declaration [ Other ] (#24528)
* Removed outdated UTF8 declaration

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-10-13 18:34:43 +02:00
Max Wilfinger
be0c0e7a74 PartDesign: Update UI strings for consistency and correct for new fuctions and typos
Closes: #22128
2025-08-04 20:15:04 +02:00
Max Wilfinger
a6e8fa4bb1 Adjust shaft wizard icon to match other Part Design icons 2024-05-27 11:24:21 -05:00
Martin Rodriguez Reboredo
51987dc1ab Fixups with Qt6 enums (#13611)
* Python PySide enums to C++ converter

* Python IntFlags to C++ int in getStandardButtons

* Remove int conversion in mods Python sources
2024-05-06 18:02:18 +02:00
Chris Hennes
cd43bf60ee PD: Translate shaft end types
Adds support for menu items having 'user data' that is the untranslated string. It would be better if these were enumerations, but that's a much larger refactoring process.
2024-03-11 18:05:29 +01:00
Ulices
bf7adc51d1 PartDesign: Update Length/Offset when Occurrences changes (#12069)
* Add 'HACK:'/`NOTE:` tags to get special highlightning

* [PD] Bugfix: Update Length/Offset when Occurrences changes

Fix #12068
2024-01-21 18:52:34 -06:00
Roy-043
64df36ba5c PartDesign: Avoid dictionary.keys() where possible 2023-08-10 00:54:21 +02:00
Chris Hennes
7568c885f3 PD/ShaftWizard: Correct some translation issues 2023-04-17 23:48:08 -05:00
luz paz
d265c9ff63 PD: remove trailing whitespace 2022-11-10 10:32:04 +01:00
luzpaz
ef3324fa9e PD: Fix 'testing inequality to None' syntax (#7279)
* PD: Fix 'testing inequality to None' syntax

- Substitute `is not None` for `!= None`
- Fix trailing whitespace
2022-07-30 04:01:40 +02:00
Chris Hennes
a3b4c2da26 PD: Fix w[z] plot in ShaftWizard 2022-06-01 19:48:42 -04:00
Uwe
154d06bb0d [PD] fix Shaft wizard
- the functionality is now in FC's core, for more info see: https://forum.freecadweb.org/viewtopic.php?p=599044#p599044
and following
2022-06-01 16:13:09 +02:00
luzpaz
a5fcb3b225 [PartDesign] Expose WizardShaft/ strings to translation (#4964)
* [PartDesign] Expose WizardShaft/ strings to translation

* Correct use of double quotes

* [PD] Suggested changes in `Crowdin/pd-wizard-shaft` (#4)

* [PartDesign] Use correct method name in `WizardShaft`

Use `QtCore.QT_TRANSLATE_NOOP` instead of `QT_TRANSLATE_NOOP` because latter is
not what is imported.

* [PartDesign] Remove undesired translations in `WizardShaftTable.py`

See comments by @chennes on PR#4964.

Co-authored-by: Ajinkya Dahale <AjinkyaDahale@users.noreply.github.com>
2021-08-13 18:16:42 -05:00
luzpaz
68e06cc313 [PartDesign] Linting and cleaning superfluous whitespace (#4851)
* [PartDesign] Linted Mod/PartDesign/Scripts for pep8 compliance

* [PartDesign] Fix superfluous whitespace in WizardShaft/

* Added spaces per @chennes's feedback
2021-08-11 15:02:58 -05:00
wmayer
0aa38c44f4 PD: [skip ci] in wizard shaft handle case where Plot module is not available 2020-12-11 16:09:01 +01:00
wmayer
c235b9fba9 PD: [skip ci] fix invalid strings 2020-12-09 16:59:34 +01:00
wmayer
adae2b6613 PartDesign: [skip ci] Coverity: Structurally dead code 2020-09-22 20:22:26 +02:00
wmayer
cb6ec67d02 PartDesign: [skip ci] Coverity: Bad use of null-like value 2020-09-22 20:03:42 +02:00
wmayer
e5a86986d8 PartDesign: [skip ci] fix method to access main window in shaft wizard 2020-09-22 19:15:59 +02:00
donovaly
24ec114cb8 remove program-specific SVG namespaces
while fixing a SVG export issue for techDraw I noticed that some SVG files have program-dependent (and thus not clean) code in it. These are traces of the programs Sodipodi and Inkscape, like e.g. this line:
inkscape:export-filename="/home/yorik/PartDesign_Groove.png

This is unnecessary and FC should not use program-dependent code in the SVG but use instead plain SVG strictly following the SVG specification.

This PR transforms the few affected SVGs to a plain version.
2020-02-07 07:34:49 -05:00
wmayer
52fdc66003 PartDesign: [skip ci] set explicit encoding of Python files for backward compatibility 2020-01-09 17:07:04 +01:00
luz.paz
dc8bf3dc39 PartDesign: [skip ci] fix header uniformity
This PR fixes header uniformity across all PartDesign WB files
2019-12-22 00:58:38 +01:00
wmayer
7651a99914 [skip ci] fix SyntaxWarning: 'is not' with a literal. Did you mean '!='? 2019-11-25 16:29:56 +01:00
luz.paz
30d2e29e0c LGTM: various fixes for using string operator instead of numeric 2019-10-25 10:33:12 -03:00
wmayer
70049f1b6b Py3: Port Wizard shaft to Python 3 2018-11-27 18:13:35 +01:00
looooo
1b3e23d768 Py3: PartDesign: relative imports 2018-08-19 10:59:11 +02:00
luz.paz
fab9cad50f Misc. typos
Found via `codespell`
Trivial typos

Found via `codespell`
2018-08-18 21:48:42 +02:00
looooo
cdcb3bec4a PySide2: qApp -> QApplication 2018-04-14 10:40:31 +02:00
luzpaz
0bafb04924 PartDesign: typos 2017-12-25 11:04:43 +01:00
wmayer
247166405f fix Shaft Wizard due to renamed property 2017-11-17 12:18:24 +01:00
Priit Laes
f7bf88a0b8 python: PartDesign: *.py: Fix python3 syntax 2017-03-01 17:19:24 +01:00
wmayer
c3fe2de155 replace Part.Line with Part.LineSegment 2016-11-30 21:25:18 +01:00
jrheinlaender
c63028c6ae Port of WizardShaft to PySide 2014-01-06 16:21:09 -02:00
jrheinlaender
43a26c8b90 Shaft Wizard: Right-click on column header brings up context menu 2013-03-24 16:28:13 +04:30
jrheinlaender
9eb9fd214c Shaft Wizard: Removed unnecessary (and erroneous) class variables which now allows the wizard to be called multiple times in a session... 2013-03-24 15:52:15 +04:30
jrheinlaender
1e6cf7a3db Bug fixes 2013-03-22 19:29:45 +04:30
jrheinlaender
c6f72c17fa Fixed unit mismatches in Shaft Wizard 2013-03-22 08:12:05 +04:30
jrheinlaender
d7faf5d8a2 Enhancements to Shaft Design Wizard, e.g. display of stresses for three axes and bending curve for shaft 2013-03-21 16:58:40 +04:30
jrheinlaender
4755859cb6 Split code into separate files for each constraint type 2013-03-21 16:56:57 +04:30
wmayer
cb674d208e Update draft and shaft icons 2012-12-04 12:21:54 +01:00
jrheinlaender
391936f4eb WizardShaft: Automatic adjustment of axes length 2012-12-03 21:43:45 +01:00
jrheinlaender
4ac1803d6b Added inner diameter parameter for shaft wizard 2012-12-03 21:43:45 +01:00
jrheinlaender
654dd1a125 Fixed bug that showed wrong scaling (m instead of mm) on x axis 2012-12-03 21:43:45 +01:00
wmayer
c783fad191 0000896: ShaftDesign wizard incorrectly calls the active document 2012-12-03 14:28:56 +01:00
wmayer
db87c2d19a Add shaft icon without feature key 2012-12-03 12:12:09 +01:00
wmayer
756f01bad9 Add correct shaft icon 2012-12-03 12:11:03 +01:00
wmayer
21b657004c Add icon to wizard shaft, error handling of missing python modules, slight changes to the wizard shaft command 2012-12-02 15:24:55 +01:00
jrheinlaender
faf5918101 Added accept() method 2012-12-02 13:29:07 +01:00
jrheinlaender
776bfc2125 Moved the UI from a dock window into a task window
Added menu entry in PartDesign workbench menu
2012-12-02 13:29:06 +01:00