Commit Graph

3401 Commits

Author SHA1 Message Date
Chris Hennes
c2e1f9937d Redesign pref pack GUI 2021-09-24 16:09:17 -05:00
Chris Hennes
cc53377985 Merge branch 'master' into addThemeSupport 2021-09-24 07:51:04 -05:00
wmayer
f5c52dcb84 Gui: [skip ci] fix possible warning 2021-09-23 19:02:15 +02:00
Yorik van Havre
6ad3530981 Merged crowdin translations 2021-09-23 17:14:48 +02:00
Yorik van Havre
3573c5b21f Updated ts files 2021-09-23 17:04:05 +02:00
0penBrain
01fd5b555f [BUILDFIX] Add missing includes 2021-09-23 13:14:03 +02:00
wmayer
edf7fe4c7c Gui: use cbegin()/cend() for const_iterator 2021-09-23 11:17:42 +02:00
wmayer
4397c0f520 Gui: modernize some classes 2021-09-23 11:00:50 +02:00
wmayer
661e31b383 Gui: include FCGlobal.h for export macro 2021-09-23 10:57:22 +02:00
wmayer
806f004f12 Gui: implement a workaround for MSYS2 to access QUiLoader via its Python interface 2021-09-23 09:46:20 +02:00
wmayer
21ba35adab Gui: move PythonWrapper class to its own source file 2021-09-22 23:30:03 +02:00
wmayer
bc5c585c8b Gui: move Ui loader classes to their own source files 2021-09-22 20:31:01 +02:00
wmayer
8cb1b9e899 Gui: extend PythonWrapper:
* add methods to wrap/unwrap QDir
* add method to load QtUiTools module
2021-09-22 19:49:39 +02:00
wmayer
2fa64b9a2f Gui: remove QUiLoader from Qt4All.h to make sure it is included from a single file 2021-09-22 19:30:58 +02:00
Yorik van Havre
ec9b1359de Merge pull request #5040 from mwganson/macros
[Macros Dialog] Add 2 new parameters: DuplicateIgnoreExtraNote and Du…
2021-09-20 10:43:00 +02:00
wmayer
8cbd92d874 port to MSYS2/clang 2021-09-19 19:49:44 +02:00
Chris Hennes
860f46ac6c Merge pull request #4792 from heewa/abort-quit-on-failed-save
[Gui] Fix app quitting despite failing to save project
2021-09-17 19:46:01 -05:00
mwganson
301758d851 [Macros Dialog]rename DuplicateReplaceSpaces parameter to ReplaceSpaces, make it default = true, apply also to new file creation and renaming in the dialog 2021-09-17 14:04:01 -05:00
mwganson
e011250548 [Macros Dialog] Add 2 new parameters: DuplicateIgnoreExtraNote and DuplicateReplaceSpaces 2021-09-17 12:47:57 -05:00
Yorik van Havre
7a1f16774d Merge pull request #5038 from mwganson/macros
[Macros Dialog] begin searching for unique name for duplicate functio…
2021-09-17 11:02:31 +02:00
wmayer
9a23ffb35a Gui: fix typos 2021-09-17 08:28:34 +02:00
mwganson
a5076e316d [Macros Dialog] begin searching for unique name for duplicate function with current numbers rather than from 001 2021-09-17 00:22:39 -05:00
Ajinkya Dahale
c123bc2bf8 [Core] (Partially?) Fix data loss on dir rename (#4996)
* Fix lost filename in err msg

In some circumstances, FileExceptions are constructed empty, then have a
filename assigned to them, but the error message in these scenarios is
left as the default "unknown" one, which is sometimes shown to users.
This change fixes that case to be consistent with instances that are
constructed with the filename.

The exception can happen when trying to save the file in a location that does
not exist, or when the user does not have permission to write there. If it
comes when saving after closing the document, all previous changes can be lost.

Partially fixes issue #4098.

Co-authored-by: Heewa Barfchin <heewa.b@gmail.com>
2021-09-16 12:06:29 -05:00
wmayer
ed003cdc59 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2021-09-14 16:42:43 +02:00
wmayer
ba2341de33 Gui: fix compiler warnings: [-Wunused-parameter] 2021-09-14 16:42:30 +02:00
Chris Hennes
c970509256 Merge pull request #4771 from Syres916/patch-16
[Gui] Preferences - Selection Fix Bug for new...
2021-09-14 09:39:49 -05:00
0penBrain
cdbf7acc80 [Core] Rotation : fix gimbal lock handling
+ fix Euler representation on GUI
2021-09-13 18:34:58 +02:00
Yorik van Havre
c2f72ee8de Merge pull request #5021 from chennes/translatorImprovements
[GUI] Add prefs for translators
2021-09-13 15:38:23 +02:00
Yorik van Havre
163a24feef Merge pull request #5020 from 0penBrain/placement
[Gui] Edit/Placement not active when no object selected
2021-09-13 14:30:04 +02:00
Yorik van Havre
0b072822ca Merge pull request #5025 from luzpaz/DlgSettingsNavigation-code-naming-conformity
Gui: Make DlgSettingsNavigation methods conform to naming standard
2021-09-13 11:32:28 +02:00
0penBrain
7e54207016 [Gui] Edit/Placement not active when no object selected
Copied from 'Std_Edit'
2021-09-12 19:57:31 +02:00
luz paz
543450d454 Crowdin: Expose View -> 'Standard views' -> 'Axonometric' to translation
Closes https://github.com/FreeCAD/FreeCAD-translations/issues/63
2021-09-12 11:04:39 -04:00
luz paz
f04758856a Gui: Make DlgSettingsNavigation methods conform to naming standard
Renamed `CheckBox_UseAutoRotation` to `checkBoxUseAutoRotation` to match the preexisting naming syntax
2021-09-12 10:54:40 -04:00
Chris Hennes
ae60724f6e [GUI] Add prefs for translators
When creating the original list of locales available to FreeCAD, also
scan the external directories and add those entries to the list of
locales. This enables the installation of a language pack in an
already-installed version of FreeCAD, allowing translators to test their
work more easily.

Add a hidden preference that will allow translators to add an entirely new
language to FreeCAD via user preferences, without requiring modification
of the FreeCAD source code.

Add a hidden preference for an additional translation directory.
2021-09-11 15:34:08 -05:00
luz paz
9ffdf45652 Gui: Language/Translator.cpp remove extra .ko translation + alphabetize
ref: https://forum.freecadweb.org/viewtopic.php?p=531658#p531658
2021-09-09 10:08:31 -04:00
Yorik van Havre
b84c2c7f09 Merge pull request #4178 from uLeonis/master
[v0.20][Gui] Consolidate Std view modes
2021-09-09 12:22:27 +02:00
Chris Hennes
332f99caca [GUI] Change name of workbenches tab 2021-09-08 09:06:14 -05:00
Yorik van Havre
8f68800ca7 Merge pull request #5007 from 0penBrain/DrawStyleMode
[Gui] Declare Std_DrawStyle as being a 'Mode' command
2021-09-07 12:48:29 +02:00
Yorik van Havre
a9717a1e17 Merged crowdin translations 2021-09-07 11:26:48 +02:00
Yorik van Havre
73d5e2c7e1 Updated ts files 2021-09-06 15:32:07 +02:00
Yorik van Havre
c7da78600f Merge pull request #5006 from 0penBrain/ExpDlgClearEnter
[Expression] Fix 'Clear' is activated when it has focus and 'Enter' is pressed
2021-09-06 11:29:27 +02:00
mwganson
398c1c898d [Edit menu -> Copy / Duplicate] Add Use Original Selections button to dependency selection dialog 2021-09-04 13:09:45 -05:00
0penBrain
1088952709 [Gui] Declare Std_DrawStyle as being a 'Mode' command
With this tooltip isn't updated with the current item value
 but instead keeps the general command tooltip text which more explanatory
2021-09-02 16:39:07 +02:00
0penBrain
06547857cb [Expression] Fix 'Clear' is activated when it has focus and 'Enter' is pressed 2021-09-02 15:59:13 +02:00
Yorik van Havre
10c684cfab Merge pull request #4788 from 0penBrain/UserEditMode
Gui: add user edit mode (default edit mode set by user)
2021-09-02 11:50:03 +02:00
Yorik van Havre
afac2fc0a8 Merge pull request #4923 from Syres916/patch-23
[Gui] Transform Tool, save Translation...
2021-09-01 16:35:40 +02:00
Yorik van Havre
9928db12d5 Merge pull request #4924 from dbdbdb/spacepilot-pro-keycodes
Set default keycodes for 3dconnexion SpacePilot Pro
2021-08-30 13:17:18 +02:00
Yorik van Havre
4cab702b00 Merge pull request #5000 from chennes/checkForConflictingAccelerators
[Core] Add checks for conflicting accelerators
2021-08-30 11:46:38 +02:00
carlopav
e36b8f458f Gui: Improved tooltips for grouped commands
Following previous improvements, this fix allows also Grouped Actions to have the new tooltip.
2021-08-29 23:30:58 +02:00
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