Commit Graph

26394 Commits

Author SHA1 Message Date
Chris Hennes
767bc22948 [Core] Add checks for conflicting accelerators
When compiled in debug mode, this PR adds code to check for conflicting
accelerator keys when a command is created. This can help developers
ensure that their default accelerator key selections don't conflict.

Replace partial match algorithm

Co-authored-by: 0penBrain <48731257+0penBrain@users.noreply.github.com>
2021-08-29 16:13:59 -05:00
Przemo Firszt
02769019bc [COPR] Restore dist in Release
This is to fix:
WARNING: No disttag found in prebuilt packages
INFO: Use --define DISTTAG to set proper dist. e. g. --define DISTTAG fc21.
ERROR: 'No disttag in package and no DISTTAG flag. Use --define DISTTAG to set proper dist e. g., --define DISTTAG=fc21.' (logs in /var/lib/copr-rpmbuild/workspace/workdir-wgba9jrq/.cache/fedora-review.log)

Also adding option to git_commint_no suppressing new line prevents
breaking line in Release tag.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2021-08-28 12:53:18 +01:00
Russell Johnson
45529de1f0 Path: LGTM cleanup 2021-08-27 22:37:41 -05:00
sliptonic
28c51d6f39 Merge pull request #4902 from Russ4262/fix/Extensions_error_msg
[Path] Downgrade Extensions error message priority
2021-08-27 17:17:33 -05:00
Yorik van Havre
7e8d3387f3 Merge pull request #4994 from PrzemoF/copr_fix_v38
[skip ci] [COPR] Fix FreeCAD spec as dist in no longer required
2021-08-27 12:20:13 +02:00
Yorik van Havre
fc02641ff4 Merge pull request #4995 from chennes/fix4664HardcodedTooltips
[GUI] Refactor tooltip code to rebuild shortcut
2021-08-27 12:19:45 +02:00
Chris Hennes
1a8a23a6a6 [Gui] Add hidden pref to lock toolbars
When arranged vertically, the bar that allows the dragging of toolbars
can cause problems with the toolbar appearance. This adds a hidden
preference that controls whether the toolbars are movable.
2021-08-26 09:12:25 -05:00
Chris Hennes
25f54a0f0e Also set tooltip after Reset and ResetAll 2021-08-26 09:05:10 -05:00
Yorik van Havre
6093e302ce Arch: Better icon for arch references 2021-08-26 14:55:18 +02:00
Yorik van Havre
960c626b1d Draft: Use BuildingParts as group in Draft SVG projections 2021-08-26 14:54:33 +02:00
Yorik van Havre
199e8a8d6e Merged crowdin translations 2021-08-26 14:51:36 +02:00
Yorik van Havre
8acd9f8734 Updated ts files 2021-08-26 14:50:54 +02:00
Yorik van Havre
3d8e471599 Tools: Removed Plot from translation scripts 2021-08-26 14:50:36 +02:00
Przemo Firszt
63ae900a22 [COPR] Exclude Inventor-devel for fedora above 34
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2021-08-25 20:32:30 +01:00
Chris Hennes
f194ca7425 [GUI] Refactor tooltip code to rebuild shortcut
When the shortcut/accelerator key is changed, the tooltip should be
recalculated using the same code that calculated the original. Also
ensure this happens when the accelerator preferences are loaded.

Fixes #4664.
2021-08-25 14:24:17 -05:00
Przemo Firszt
0524539a03 [COPR] Fix FreeCAD spec as dist in no longer required
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2021-08-25 20:08:59 +01:00
Bernd Waibel
e6824b9a2b improve search for VTK-9
Improve the find_package calls with vtk-9 cmake config files.
In this version, the variable VTK_MODULES_ENABLED has been
replaced by VTK_AVAILABLE_COMPONENTS.

The additional change of the components names, which have their
'vtk' prefix removed in vtk-9 is not covered by this patch for
compatibility reasons.

See the forum thread noted below for a description of this:
https://forum.freecadweb.org/viewtopic.php?f=4&t=60068

Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
2021-08-25 07:56:08 +02:00
luz paz
48c8d652a1 Plot: Rename README to README.md + refinements 2021-08-25 06:41:09 +02:00
Chris Hennes
5aaaf17570 Clean up missing directory behavior 2021-08-24 11:49:07 -05:00
Chris Hennes
d13f7958f9 Add ToolBarManager Save and Restore calls 2021-08-23 16:01:41 -05:00
Chris Hennes
18d73580ae Fix Linux compilation bugs 2021-08-23 14:43:30 -05:00
Chris Hennes
b49da2467c Add loadState() function to DockWindowManager
Just changing the preference for hiding or showing a dock window does
not actually trigger a state change. To enable that, the preferences
pack manager must manually instruct the DockWindowManager to save its
state into the preferences before storing a preference pack, and must
instruct the DockWindowManager to load its new state from the
preferences after loading a pack.
2021-08-23 11:30:13 -05:00
Yorik van Havre
f76abee290 Merge pull request #4872 from berberic2/PD_pad_ui_change
PartDesign: Hide the custom direction fields in Pad if no custom direction is used
2021-08-23 14:28:03 +02:00
Yorik van Havre
19916d789e Merge pull request #4971 from sanguinariojoe/plot_module
[Plot] Remove the workbench, leave the module
2021-08-23 13:34:22 +02:00
Yorik van Havre
b2aec4487c Merge pull request #2625 from luzpaz/AddonManager-readWarning
AddonManager: Consolidate preference in user.cfg from Plugins to  Addons
2021-08-23 13:03:56 +02:00
Chris Hennes
76d666779d Enabled Manage... button to show directory 2021-08-21 14:12:51 -05:00
Chris Hennes
a3a7daad9a Add missing header file 2021-08-21 13:24:00 -05:00
ho-ho-ho
b777d53736 Update grbl_post.py
Append new line to return-to line
2021-08-21 12:36:47 +02:00
wmayer
5dbf7e93d7 Gui: fix -Winconsistent-missing-override, TD: fix -Wunused-parameter 2021-08-21 12:15:43 +02:00
Chris Hennes
d18d5be498 Modify GetASCIIMap to include empty strings 2021-08-20 20:04:19 -05:00
luz paz
7417d9ec48 AddonManager: Consolidate preference in user.cfg from Plugins to Addons
Currently when a user first uses the Addon Manager a dialog popup
prompts them about how FC is not liable for the code plugin authors
provide. It stores the binary response in a `readWarning` boolean
within the user.cfg file.

This commit changes the location of said boolean from
`User parameter:Plugins` to `User parameter:Addons`.

It also migrates old the old setting if available.

Co-authored-by: Benjamin Nauck <benjamin@nauck.se>
Add suggestions from @chennes

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2021-08-20 10:59:23 -04:00
Jose Luis Cercós Pita
8b22b1d23d Merge pull request #1 from oliveroxtoby/matplotlib_import_issue
Prevent matplotlib selecting the PyQt API instead of PySide2
2021-08-20 14:45:36 +02:00
Oliver Oxtoby
e7fcc25e87 Prevent matplotlib selecting the PyQt API instead of PySide2 2021-08-20 13:22:13 +02:00
Chris Hennes
e3344a8c2e Merge branch 'master' into selection2021SelectionViewAutoShow 2021-08-20 00:00:44 -05:00
Chris Hennes
080e2ea198 Add code to ensure unique preference pack names. 2021-08-19 12:29:08 -05:00
Chris Hennes
8c875a0098 Merge branch 'master' into addThemeSupport 2021-08-19 09:51:12 -05:00
Yorik van Havre
a6442413e4 Merge pull request #4978 from carlopav/Gui_AddTooltipNames
Gui: Improved tooltips
2021-08-19 13:13:39 +02:00
Yorik van Havre
cf64d56ca5 Merge pull request #4983 from chennes/lgtmAddMissingInits
[Arch] Add missing inits
2021-08-19 12:40:10 +02:00
Yorik van Havre
052077f6ce Merge pull request #4979 from Kawashima-Azumi/no-filename-encode
Start: Correct hash for thumbnail filename
2021-08-19 12:39:35 +02:00
Yorik van Havre
1f4d65e682 Merge pull request #4980 from 0penBrain/coredump
[Core] exit() can prevent core dumping, use abort() instead on debug mode
2021-08-19 12:38:06 +02:00
carlopav
072fc9f0fe Gui: Improved tooltips
Improved tooltips showing:
- the command name as an <h3> title,
- the tooltip text,
- the (What's this).

the title is build from translated getMenuText() and can contain a "&" character. This commit search and remove the "&" characters. It should be better not to use the "&" character in the command name, but if it is necessary it has to be done with "&&".

ref forum discussion: https://forum.freecadweb.org/viewtopic.php?f=34&t=58747
.
2021-08-19 10:24:00 +02:00
Bernd Hahnebach
79fe953c60 FEM: pep8 code formating 2021-08-18 21:21:33 +02:00
Bernd Hahnebach
6d10f9960f FEM: task panels, improve units value handling 2021-08-18 21:21:33 +02:00
0penBrain
1061773d56 [Core] exit() can prevent core dumping, use abort() instead on debug mode 2021-08-18 18:12:31 +02:00
Ajinkya Dahale
0a91d2e731 [FEM] Change reference files to avoid failed tests
Fixes two errors introduced in/due to 7621382272ae712ebf4493d996d1a1a918e95df7.

First one is a typo. The writer used "translations" where the reference file for
the test used "translation". Went with "translation" since that was mentioned in
the comment just above.

Second one is some missed out new lines in the reference file
`.../constraint_transform_beam_hinged.inp`. These lines were added in
`.../frequency_beamsimple.inp` but not here.
2021-08-18 17:19:24 +02:00
川島和津実
0f9cb4caab Start: Correct hash for thumbnail filename (py3)
Image file names need to be quoted before hashing to generate thumbnail file names. This is related to pull requests #4931 and #4972, so please refer to discussions therein. Only Python3 is supported, not Python2.
2021-08-18 22:27:39 +08:00
川島和津実
7b32264b63 Start: Correct hash for thumbnail filename
Image file names need to be quoted before hashing to generate thumbnail file names.
This is related to pull requests #4931 and #4972, so please refer to discussions therein.
2021-08-18 22:15:18 +08:00
Yorik van Havre
88744fcf52 AddonManager: Handles git module with no Repo attribute - Fixes #4072 2021-08-18 11:32:19 +02:00
Yorik van Havre
5ff2d7e981 Merge pull request #4963 from Helios113/stiffness
Base: Adding stiffness units
2021-08-18 10:04:46 +02:00
Yorik van Havre
6982010ae3 Merge pull request #4892 from PrzemoF/copr_fix_v37
[skip ci] fedora spec: Add %{?dist} to Release
2021-08-18 09:53:52 +02:00