Uwe
316a869b26
[Gui] remove superfluous nullptr checks
2022-07-18 03:17:42 +02:00
wmayer
b548d3b1ef
Partially revert "Remove unused code into GUI"
2022-07-17 12:32:03 +02:00
andrea
3018985f80
Remove unused code into GUI
2022-07-17 03:53:11 +02:00
wmayer
2a41f359f7
Gui: implement mechanism to set a custom icon name or tooltip of a preferences group
2022-07-16 19:27:22 +02:00
wmayer
2dd9d69112
Gui: fix crash in ExpressionCompleter::slotUpdate
...
Forum thread: https://forum.freecadweb.org/viewtopic.php?f=3&t=69931
2022-07-16 18:23:42 +02:00
Uwe
6d54ca4df4
[Gui] preferences: clarify Part/PD page
...
- users are confused that we have a preferences page named "Part design" that also defines things for the Part WB. The Wiki is clear that the preferences page is for both, Part and PD, however the UI is not.
This PR makes this clear.
2022-07-16 16:20:36 +02:00
Uwe
fcd5394864
[Gui] preferences: add button to switch gradient colors
...
- when finding a suitable background color gradient, it is annoying that there is no button to switch the begin/end color of the gradient. With the button one can quickly see the the changes and find a suitable gradient much quicker
2022-07-16 16:05:54 +02:00
wmayer
201f4c9a5a
Core: replace PyObject_IsTrue with Base::asBoolean
2022-07-16 14:04:05 +02:00
wmayer
c2667384bd
Replace std::ignore with boost::ignore_unused()
...
According to https://isocpp.org/blog/2016/09/quick-q-stdignore-for-ignoring-unused-variable std::ignore is not supposed to be used for this
2022-07-15 13:15:47 +02:00
wmayer
94223d4afe
Gui: [skip ci] print debug information in GuiNativeEvent::tdx_drv_handler
2022-07-14 16:00:02 +02:00
wmayer
2003cb7506
Gui: [skip ci] improve whitespaces in GuiNativeEvent::tdx_drv_handler
2022-07-14 15:49:36 +02:00
wmayer
657b144128
Gui: move QuiLoader for MinGW to global namespace
2022-07-14 14:44:56 +02:00
Uwe
c76913454a
[Gui] ViewProviderGeometryObject: fix color and transparency
...
- fixes the issue reported in
https://forum.freecadweb.org/viewtopic.php?p=609353#p609353
the color and transparency are childs of the material and have to be set as such.
- also some code style fixes done automatically by MSVC
2022-07-13 05:42:21 +02:00
Uwe
4de0e6fb19
Revert "[Gui] preferences: add button to switch gradient colors"
...
This reverts commit 25ffc89063 .
2022-07-10 02:20:58 +02:00
Uwe
25ffc89063
[Gui] preferences: add button to switch gradient colors
...
- when finding a suitable background color gradient, it is annoying that there is no button to switch the begin/end color of the gradient. With the button one can quickly see the the changes and find a suitable gradient much quicker
2022-07-10 02:19:01 +02:00
Uwe
b3c0e7bc5a
[Gui] [skip CI] DlgPreferencesImp: a code style improvement
2022-07-10 00:14:34 +02:00
Uwe
19530b337f
[Part] [PD] add preferences setting for transparency
...
- allow to specify the default transparency for new shapes
2022-07-09 23:24:17 +02:00
0penBrain
95a98669a4
Gui: implement temporary blocker for console observer
2022-07-05 13:35:18 +02:00
0penBrain
06d65c73a3
[BUGFIX] Gui: correctly restore message type enabling in report view
2022-07-05 13:35:18 +02:00
0penBrain
3fe4e4b6a6
[BUGFIX] Gui: correctly save and restore warning type enabling in report view
2022-07-05 13:35:18 +02:00
wmayer
de839911e9
Gui: show thumbnails in file dialog
2022-07-04 14:49:53 +02:00
wmayer
4dbeb8c5aa
Gui: make sure to use FileIconProvider in FileDialog and delete it after closing the dialog
2022-07-04 13:17:11 +02:00
wmayer
1ae55905ba
Py: make FreeCAD to compile with Py3.11
2022-07-01 17:54:50 +02:00
Uwe
13db192fca
[Gui] [skip CI] update for DlgProjectInformation.ui
...
- done automatically by Qt Designer
2022-07-01 03:09:50 +02:00
wmayer
9b2b0e0acf
modernize C++: replace boost::function with std::function
2022-06-30 20:31:55 +02:00
wmayer
c7c43fcf4b
Core: fix minor issues:
...
+ fix issues found by clang's clazy tool
+ fix cppcoreguidelines-pro-type-member-init
* Make sure that all class members are initialized in the constructor
2022-06-30 16:31:16 +02:00
wmayer
d5921e08ec
fix (Qt) issues found by clang's clazy tool:
...
+ -Wclazy-incorrect-emit
+ -Wclazy-strict-iterators
+ -Wclazy-overloaded-signal
+ -Wclazy-qstring-arg
+ -Wclazy-unused-non-trivial-variable
+ -Wclazy-container-anti-pattern
+ -Wclazy-range-loop-reference
+ -Wclazy-const-signal-or-slot
+ -Wclazy-detaching-temporary
+ -Wclazy-qfileinfo-exists
2022-06-29 21:00:54 +02:00
wmayer
7b377a216b
Gui: remove workaround for spnav 0.23 due to build failure with musl libc
2022-06-29 15:19:18 +02:00
wmayer
779128b5f4
Gui: get rid of some const_cast
2022-06-28 15:26:02 +02:00
wmayer
7db925d991
App: fix memory leaks in Enumeration class and simplify code
2022-06-25 18:18:57 +02:00
wmayer
2b04b01edc
cppcoreguidelines-special-member-functions
...
* disable move constructor and move assignment for several core classes
2022-06-25 17:46:48 +02:00
wmayer
7de296b60e
cppcoreguidelines-pro-type-union-access
...
According to https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Ru-pun using union for type-punning is undefined behaviour.
See also https://en.wikipedia.org/wiki/Type_punning#Use_of_union . Replace it with std::memcpy.
2022-06-25 17:17:04 +02:00
wmayer
e9890c0798
Gui/Mod: replace several reinterpret_cast with static_cast
2022-06-25 11:36:55 +02:00
wmayer
e53e231677
Gui: remove some superfluous const_cast
2022-06-24 14:48:52 +02:00
wmayer
c955372ecf
cppcoreguidelines-pro-type-union-access
...
According to https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md using union for type-punning is undefined behaviour.
Replace it with std::memcpy
2022-06-24 14:29:50 +02:00
Yorik van Havre
830b3944db
Merge pull request #7067 from Kuzma30/add_ts
...
Crowdin Add "new" WB to translations.
2022-06-24 13:50:43 +02:00
mosfet80
620c273c4e
Boost version <=1.60 is never used in freecad 0.20 ( #7038 )
...
* Boost version 1.60 is never used in freecad 0.20
2022-06-24 02:20:26 +02:00
0penBrain
b308da5387
[BUGFIX] Gui: fix mouse Gesture navigation mode
...
Regression introduced by commit c23a30b
2022-06-24 01:03:53 +02:00
marioalexis
f78412c75b
Gui: Use PyObject_IsTrue in combination with conditional ternary operator
2022-06-22 19:50:03 -04:00
luzpaz
b7cc7261b8
Stylesheets: fix typos
...
[skip ci]
2022-06-21 20:39:01 -04:00
Kuzemko Alexsandr
e678620cbd
Crowdin Update .ts files with current source.
2022-06-21 17:31:06 +03:00
wmayer
0d34449613
Gui: expose SoQtOffscreenRenderer to Python
2022-06-21 12:55:17 +02:00
Uwe
0678946103
[core] update version number
...
NOTE: this is purposely version 0.21, despite the release goal is 1.0
Since we issue weekly builds, people might otherwise misunderstand the version
So first when the release goal is reached, FreeCAD becomes version 1.0
2022-06-20 00:56:55 +02:00
Uwe
c23a30b916
[Gui] remove unnecessary Boolean comparisons
2022-06-19 15:17:01 +02:00
Uwe
81be38ea8d
[Gui] View.cfg: fix typo
2022-06-17 01:30:11 +02:00
Uwe
08d1e382e1
[Gui] Add more general color settings to Preference Pack
...
- also sort the file entries
2022-06-17 01:23:09 +02:00
Uwe
5b6ba058a7
[Gui] Add more saving view data in Preference Pack
...
- it was reported that the user-visible settings like the NaviCube size etc. cannot be saved via a preferences pack
2022-06-17 01:21:28 +02:00
Chris Hennes
7814faa6fd
Gui: Add saving view data in Preference Pack
2022-06-16 11:48:47 -05:00
wmayer
c0cccf7f7e
Gui: add overloaded version of cmdAppDocument and cmdGuiDocument() that has a string as first parameter
2022-06-13 15:21:55 +02:00
Chris Hennes
5219718eb0
GUI: Preliminary support for HiDPI splashscreen
2022-06-13 15:19:40 +02:00