andrea
dccca2b7ed
fix compilation warning
2023-09-08 14:13:36 +02:00
wmayer
381efa3b35
Gui: filter warning about dead keys
...
Forum thread: https://forum.freecad.org/viewtopic.php?t=80981
2023-09-08 14:12:24 +02:00
FEA-eng
6171feb560
Update MainWindow.cpp
...
fixed small typo in the warning about 0.22 being dev version not for production use
2023-09-05 15:40:16 -05:00
kaktus Jacek
65f3355a78
Removing unnecessary strings from Crowdin + improving typos
...
patches for #10459 and #10426...
a few small details escaped attention need to be fixed
😉
Removing unnecessary strings from Crowdin and improving typos.
2023-09-05 15:38:58 -05:00
Rexbas
da4318f140
Gui: Add nullptr check in showRotationCenter
2023-09-05 08:54:11 +02:00
wmayer
531d7de201
Gui: make GroupCommand more flexible
...
Currently the GroupCommand by default sets the action group as non-exclusive, checkable and having a drop-down menu which isn't always the desired behaviour in sub-classes.
Thus, some new methods are added to let a sub-class in its constructor decide how it should behave.
2023-09-01 13:28:19 +02:00
PaddleStroke
09d50dc072
Assembly: Initial implementation ( #10427 )
...
* Assembly: Initial implementation.
* Disable Assembly wb as it's WIP.
* Stub code for handling assembly import.
Co-authored-by: sliptonic <shopinthewoods@gmail.com >
Co-authored-by: Paddle <PaddleStroke@users.noreply.github.com >
2023-08-31 12:30:10 -05:00
howie-j
961e329fe4
Updated Shortcuts.cfg pref pack template to newest commands and shortcuts
2023-08-30 10:00:15 -05:00
wmayer
a86c0b8928
Gui: fix crash with the move to the new-style of class SelectionFilterPy
...
When setting the selection filter below and hovering over an object causes a segmentation fault:
filter = Gui.Selection.Filter('SELECT Part::Feature')
Gui.Selection.addSelectionGate(filter)
2023-08-30 15:09:08 +02:00
kaktus Jacek
ddc6c2a1a0
Cleaning code from unnecessary strings generated to Crowdin 4 ( #10426 )
...
Cleaning Crowdin of "garbage". Second approach.
https://github.com/FreeCAD/FreeCAD-translations/issues/270
2023-08-29 12:57:26 -05:00
Chris Hennes
40f130643a
Update translations
2023-08-29 07:38:09 -05:00
kaktus Jacek
cde1a9bcb9
Cleaning code from unnecessary strings generated to Crowdin 2 ( #10416 )
...
Cleaning Crowdin of "garbage". Second approach.
https://github.com/FreeCAD/FreeCAD-translations/issues/270
2023-08-28 22:08:14 -05:00
wmayer
35136bb3c2
Gui: do not call back() on an empty container
...
Calling back() on an empty container is undefined behaviour: https://en.cppreference.com/w/cpp/container/vector/back
2023-08-29 00:52:33 +02:00
wmayer
93090fa55b
Gui: no need to check for nullptr when using dynamic_cast
...
It's explicitly allowed to use dynamic_cast on a nullptr and the result will be a nullptr too.
See https://en.cppreference.com/w/cpp/language/dynamic_cast
2023-08-29 00:45:27 +02:00
Chris Hennes
f0152cbcce
Merge pull request #10410 from qewer33/startpage-viual-fixes-2
...
StartPage: Visual fixes follow-up
2023-08-28 12:18:13 -05:00
Chris Hennes
ebcbfb6203
App: Warn on OpenGL too old ( #9272 )
...
* App: Warn on OpenGL too old
Based on original code from PR #9164
* GUI: Switch to DlgCheckableMessageBox for openGL warning
2023-08-28 12:08:23 -04:00
Edoardo Morandi
512770f27c
fix: downcasting of SoNode that can cause UB ( #9285 )
...
A SoNode* is not necessarily a SoFCSelectionRoot*, and when this
assumption breaks the code causes UB (the comment related to one of the
chunks explicitly says that it is safe, but unfortunately it is not).
Instead of storing `SoFCSelectionRoot*` and blindly cast a generic
`SoNode*` to that, we can do the opposite. In this way it is obviously
necessary to use a dynamic cast when trying to reach for
`SoFCSelectionRoot` specific features, but in this way the abstraction
should be sound.
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org >
2023-08-28 11:06:06 -05:00
PaddleStroke
41aefb1331
Pref: wb: Add contextual menu to sort alphabetically. ( #10363 )
...
Co-authored-by: Paddle <PaddleStroke@users.noreply.github.com >
2023-08-28 10:39:44 -05:00
Syres916
658452de6d
[Gui] Change View toolbar order
...
as per discussion https://forum.freecad.org/viewtopic.php?p=702171#p702171
2023-08-28 10:36:10 -05:00
sliptonic
559fea0640
Merge pull request #10405 from wwmayer/fix_activeobject_of_activeview
...
Gui: improve accessing active object of an MDI view
2023-08-28 10:34:57 -05:00
qewer33
23ad8ffcd2
Change default StartPage BackgroundTextColor value
2023-08-28 16:50:19 +03:00
wmayer
b35e83609a
Gui: improve accessing active object of an MDI view
...
* if 2nd argument of getActiveObject() is False and the requested object doesn't exist then return (None, None, "")
* remove the exact same implementations from View3DInventorPy
2023-08-28 13:34:48 +02:00
wmayer
f6c1c86cbd
Gui: use '%Y-%m-%d %H:%M:%S' as format string for date
...
For more details see: https://forum.freecad.org/viewtopic.php?p=702475#p702475
2023-08-28 08:25:52 +02:00
MisterMaker
1941abd999
[Stylesheets] Replaced more static colors with the accent colors. ( #10387 )
...
* [Stylesheets] Fixed and added more accent colors.
Added accent colors to Behave dark ProDark and Dark contrast.
Used accent color 3 to the button gradients.
Added Gradient to the Modern styles, because you can disable the gradient by giving 2 accent colors the same color.
* changed to so accent color 3 is text.
2023-08-27 13:48:36 -05:00
Chris Hennes
3d7441c2a5
Gui: Wrap PyArg_ParseTupleAndKeywords
2023-08-25 15:34:26 -05:00
wmayer
6beace8da6
Gui: modernize C++: use default member init
2023-08-23 19:51:44 +02:00
wmayer
20153863f8
Gui: add missing precompiled header
2023-08-22 15:45:22 +02:00
Syres916
6770713eb1
[Gui] Add new Selection Filter functionality ( #2 )
...
* [Gui] Add Selection Filters
* [Gui] Add Selection Filters to Toolbar
* [Gui] Add Selection Filter Icons
* [Gui] Add 4 new Selection filter Icon Files
* [Gui] Update Context Menu
* [Gui] Add default Selection Filter icon
* [Gui] Update resource.qrc with new icon
* [Gui] Add SelectFilter dropdown toolbar
* [Gui] Update Content Menu and Toolbar
* [Gui] Icon changed to Plain SVG
* [Gui] edge-selection icon as Plain SVG
* [Gui] vertex-selection icon as Plain SVG
* [Gui] selection-filter.svg replace metadata
2023-08-21 11:07:04 -05:00
wmayer
888a33917d
Gui: modernize C++: use equals default
2023-08-20 18:12:43 +02:00
marioalexis
28e0f5e9ff
Gui: Change SoQtOffscreenRendererPy to new PyCXX extension type
2023-08-20 12:02:17 +02:00
wmayer
50af46b7c9
Core: modernize C++: return braced init list
2023-08-19 11:35:41 +02:00
Chris Hennes
bac14e81f7
Merge pull request #10258 from chennes/translations20230814
...
Update translations
2023-08-18 08:52:13 -05:00
Chris Hennes
a29e62de92
Merge pull request #10238 from Ondsel-Development/pref_theme_2
...
[Preferences] theme : Variables in stylesheet and more.
2023-08-18 08:49:34 -05:00
wmayer
ff1981fcdc
Lint: fix several issues discovered by clazy
2023-08-18 08:44:49 -05:00
wmayer
fa8978ce99
Gui: modernize C++: return braced init list
2023-08-18 00:36:24 +02:00
Connor Worrell
b4787c1ee1
[GUI] QuantitySpinBox Regex Optimization #10067 Ammendum
2023-08-17 15:57:43 -05:00
marioalexis
5af2a3c07a
Gui: Change ExpressionBindingPy to new PyCXX extension type
2023-08-17 16:02:07 +02:00
Chris Hennes
58cf9f3212
Update translations
...
Adds the ten units strings from Base as well.
2023-08-16 22:50:39 -05:00
Rexbas
20c462f45a
Gui: Improve object center rotation mode
2023-08-16 16:02:32 -05:00
Pieter Hijma
2c5a4b71eb
Gui: Cleanup Python varargs
...
Various function existed that had no arguments but were still treated as
if they were vararg functions. This has no been changed to
add_noargs_method declarations, cleaning up the code.
2023-08-16 15:07:09 +02:00
howie-j
c3d1836345
Update DlgSettings3DView.ui
2023-08-16 13:29:35 +02:00
Jonas Bähr
34b176c1db
Remove C++ escaping from *Py.xml templates
...
Now all escaping required for the C++ code generation is done when the
.cpp/.h files are generated. Previously, only newlines were escaped
automatically. This was a) inconsistent and b) leaked c++ details into
the xml data.
In addition, the escaping is now done in one central place, harmonizing
the three previous implementations.
Pre-existing c++ escape sequences in the XML files have been replaced by
their literal equivalent so that the resulting python doc sting remains
unchanged.
2023-08-16 13:17:25 +02:00
marioalexis
53844f7fe8
Gui: Change SelectionFilterPy to new PyCXX extension type
2023-08-16 08:39:14 +02:00
Paddle
a222f64a93
Theme: Fix the issue that the stylesheet combobox did not update when theme changed.
2023-08-16 08:14:07 +02:00
Paddle
d48226fe92
Create themes for Behave-Dark, ProDark, Dark-Contrast. Rename other themes to remove 'theme' from name.
2023-08-15 14:35:39 +02:00
Paddle
53ae3fc175
Replace Darker-color, Dark-modern-color, light-color, light-modern-color by stylesheets using variables.
2023-08-15 14:35:39 +02:00
Paddle
f63122aa7a
When theme color change we set the stylesheet.
2023-08-15 14:35:39 +02:00
Paddle
efd7e9034b
SetStylesheet: Remove comparaison to current stylesheet as now we have variables in stylesheet. This check is done in the Theme pref page now.
2023-08-15 14:35:39 +02:00
Paddle
3e6c4acd0b
Move the stylesheet combobox to the end of the page and change name/tooltip.
2023-08-15 14:35:39 +02:00
Paddle
66697eaec4
Stylesheet : Replace Dark-color by single Dark stylesheet.
2023-08-15 14:35:34 +02:00