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
Paddle
ecc16958e6
Core: Stylesheets: Adds support for variables in stylesheets.
2023-08-15 14:35:29 +02:00
wmayer
e09d8aaba6
Gui: modernize C++: use range-based for loop
2023-08-14 19:42:18 +02:00
Paddle
55c45b62ca
Pref Theme : Change name of colors.
2023-08-14 08:11:58 +02:00
Chris Hennes
047448bc7b
Merge pull request #10125 from cjmayo/desktopfilename
...
Finish renaming desktop filename to org.freecad.FreeCAD
2023-08-13 14:24:18 -07:00
luzpaz
5b698e6b68
Fix various typos
2023-08-13 08:17:01 -07:00
Chris Hennes
6541e13294
Gui: Tweak size of developer warning
...
Ensure that the warning adapts to the font size and text length as needed.
2023-08-12 10:24:05 -07:00
Paddle
37ad74519f
Pref: Theme: Make sure theme has changed before saving the setting.
2023-08-11 13:19:19 +02:00
Paddle
c547e3cddf
Pref: Theme: Solves #10136
2023-08-11 13:19:19 +02:00
wmayer
7fe0d5b9a6
modernize C++: use equals delete
2023-08-10 17:29:05 +02:00
wmayer
12bd92cdf5
Gui: fix another tabstop compilation warning
...
See also #10105
2023-08-10 17:01:45 +02:00
wmayer
c15be7d714
fixes #10105 : Tabstop assignment compilation warning
2023-08-09 16:29:31 +02:00
Syres916
2d4f379d9d
Improve Sliders with some colour
2023-08-09 10:53:29 +02:00
Syres916
d5feaae615
Improve grammar and remove whitespace
2023-08-09 10:53:29 +02:00
Syres916
d34ceeae26
Improve Visibility for Urls and Expressions
2023-08-09 10:53:29 +02:00