Commit Graph

5569 Commits

Author SHA1 Message Date
wmayer
12f5f70757 Quarter: Update Quarter code
* Removes unused default constructors of the device classes
* Changes several doc strings
2024-07-08 10:54:41 -05:00
wmayer
7ab2b92fc8 Gui: Don't show Python console by default
Fixes #15201
2024-07-05 14:56:37 +02:00
wmayer
aac8bdd7bc Fixes #14772: Random color problem 2024-07-04 22:23:10 +02:00
wmayer
876e88f405 Gui: Fix crash in QuarterWidgetP::removeFromCacheContext
Fixes #https://github.com/FreeCAD/FreeCAD/issues/14988
2024-07-04 22:21:44 +02:00
wmayer
30d8a74ce7 Gui: Fix crash when trying to calibrate image after document is closed 2024-07-04 22:19:42 +02:00
Chris Hennes
7615c39824 Merge pull request #15051 from kadet1090/better-addon-manager-discoverability
Gui: Add information about custom themes to settings
2024-07-02 07:44:21 -05:00
Yorik van Havre
2a009589f9 Translations (#15107)
* Updated ts files

* Merged crowdin translations

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-02 12:21:53 +02:00
Kacper Donat
45dc70c51f Gui: Add information about custom themes to settings
Fixes: #14929
2024-07-01 18:27:23 +02:00
MisterMaker
6cdb38f975 (GUI) Delete dark behave. (#14827) 2024-07-01 11:11:00 -05:00
wmayer
d64bf15f8a Core: Update color bar when changing preferences
This solves one part of issue #10717
2024-07-01 10:55:21 -05:00
hlorus
84d3669888 MeasureGui: Paint icons in textcolor 2024-07-01 17:51:51 +02:00
Chris Hennes
71976129ee Merge pull request #14455 from kadet1090/toolbar-dragging
Gui: Add dragging support for custom ToolBarAreas
2024-07-01 10:49:27 -05:00
Syres916
df27c24deb [Gui] Preferences - Workbenches add text to advise how to sort...
...alphabetically
2024-07-01 10:45:36 -05:00
Furgo
ba51408a71 Simplify comboview/treeview choice with natural language 2024-07-01 10:44:49 -05:00
Furgo
3ebba6ac0a Remove unavailable Tree view mode option from tooltip 2024-07-01 10:44:49 -05:00
Kacper Donat
05aaf0ed48 Preferences: Reorganize UI and Theme pages in Display group
This changes current "Display/UI" pages to "Display/Advenced" as most of
settings there were pretty technical. These settings are not removed as
it is hard to decide which one should be removed and which one should
stay and we are too close to UI freeze.

Settings that should be obviously kept were moved to new "Display/UI"
section which now includes also options from previous "Display/Theme".

Fixes: #14412
2024-07-01 10:41:30 -05:00
wmayer
554310a6ba Core: Refactor SoFCColorGradient and fix linter warnings 2024-06-30 19:16:33 +02:00
Chris Hennes
5c3ec1f422 Gui: WorkbenchSelector linter cleanup 2024-06-29 18:15:52 -05:00
Pieter Hijma
01874ca898 Core: Fix a missing Python interpreter lock
ReportView has a missing Python interpreter lock.  It is not breaking
FreeCAD in general but it is deemed a bug nonetheless.  See the issue.
2024-06-27 08:02:15 -05:00
Chris Hennes
5f094a48a9 Gui: Remove unused ref to GL context 2024-06-26 11:53:18 -05:00
PaddleStroke
fd64f38998 Assembly: Insert Component: Fix 'Joint Group' being listed even though it's empty. It's because we were using OutList instead of claimChildren. 2024-06-25 16:37:31 +02:00
Kacper Donat
d57f7a4a8d Gui: Use our own ToolBar class in all places 2024-06-25 11:39:54 +02:00
Zheng, Lei
dcfe3e8868 Gui: Add dragging support for custom ToolBarAreas
This adds dragging support for toolbars placed in custom toolbar areas.
It is achived by creating our own custom ToolBar class that handles
logic of providing custom gripper. This is required because Qt hides
gripper when toolbar is not direct child of the main window which cannot
be overriden. Custom class should allow us to create more capable
toolbars in the future so it should be great addition on its own.

Co-Authored-By: Kacper Donat <kacper@kadet.net>
2024-06-25 11:39:51 +02:00
PaddleStroke
62cc8fc944 Core: ViewProvider: Add claimChildrenRecursive 2024-06-25 11:34:43 +02:00
Roy-043
308013fb97 Gui: Tree.cpp make some gui texts more consistent
The gui texts for "Show description" and "Show internal name" were inconsistent.

"Show description column" -> "Show description"

"Show an extra tree view column for item description. -> "Show a description column for items."
2024-06-24 11:29:05 -05:00
Kacper Donat
032545924f Gui: Change QStyle only with theme
It fiexes performance issues on applying preferences that happens due to
forcing Qt style which is quite slow operation.
2024-06-24 11:28:13 -05:00
Chris Hennes
d01ce32a1f Update for LibPack3 (#10337)
* cMake: Add base support for LibPack3

Minor changes to FreeCAD source code to support compiling with Qt 6.5 on MSVC,
and changes to cMake setup to support the new Libpack.

* NETGENPlugin: Fix compilation with MSVC and OCCT 7.8

* Material: Switch to Wrapped_ParseTupleAndKeywords for /fpermissive- on MSVC

* Base: Prevent accidental definition of MIN and MAX by MSVC

* cMake: Prevent accidentally finding an old LibPack

* Material: Wrap another ParseTuple call

* OCCT: Modify includes for 7.8.x

* Part: Change TNP code to use Wrapped_ParseTupleAndArgs

* Spreadsheet: Workaround for MSVC macro pollution

* Mesh: Workaround for MSVC macro pollution

* Base: Remove extra MSVC flag (moved to CMake)

* Tests: Fix compiling with /permissive-

* FEM: Fix Qt warnings about duplicate element names

* cMake: Ensure major version numbers are set

* Address review comments.

* cMake: Further tweaks for LibPack3

* cMake: Modify specification of compiler flags for MSVC

* Main: Remove QtQuick testing code

* cmake: Find Boost before SMESH (which uses it)

* Fixes for LibPack2

* cMake: Another try at importinhg VTK cleanly
2024-06-24 18:25:05 +02:00
Chris Hennes
1ba5f02129 Merge pull request #14766 from wwmayer/import_options
Import: Avoid modal dialog inside ImportGui.open()
2024-06-24 11:10:31 -05:00
Patryk Skowroński
fefd3851ac Spaceball settings tabs removal from the Customize panel (#14589)
* Removed Spaceball tabs for NavLib integration

* Added missing CMake variable for MacOS/Linux platform

---------

Co-authored-by: Patryk Skowroński <pskowronski@3dconnexion.com>
2024-06-24 11:06:25 -05:00
Chris Hennes
feafecef98 Merge pull request #14592 from kadet1090/tabbar-fixes
Gui: Workbench TabBar - fix scroll and icon-only paddings
2024-06-24 10:58:57 -05:00
Turan Furkan Topak
bd9d911ca9 [Icons]Core Icon Revision (#14154)
* Core Icon Revision

Update utilities-terminal.svg

Update button_add_all.svg

pixel alignment

Pixel alignment was performed for the specified icons.

* Changes requested by Obelisk

* Return old icons
2024-06-24 10:54:58 -05:00
xtemp09
f53c827f94 Fix the crash when closing a document
Closes #14189. This commit partially reverts
d15c7d0673 and
fb37201299.
2024-06-24 10:49:27 -05:00
Chris Hennes
e60d43fcdc Merge pull request #14386 from maxwxyz/sketcher-draw-style
Sketcher: Changes override draw style when entering sketch edit mode.
2024-06-24 10:48:19 -05:00
PaddleStroke
4e4201f033 Core: Tree: Remove !vp->canDragAndDropObject(obj) that made no sense. And remove the auto switching to 'CopyAction' 2024-06-24 10:42:49 -05:00
bgbsww
4c3fc869fe Toponaming: Check for selection mapped element name 2024-06-22 17:10:54 -05:00
Chris Hennes
f294a5efc5 Gui: Silence unused variable 2024-06-22 08:29:27 +02:00
wmayer
4219aaef99 Core: Support of import options 2024-06-21 12:00:38 -05:00
Kacper Donat
d1535e7827 Gui: Disable changing workbench on tab bar scroll
Fixes: #14164
2024-06-21 10:55:00 -05:00
Kacper Donat
3684dc6560 Gui: Display workbench icon in the middle for icon-only
It ensures that for icon-only style it is displayed in the middle and
empty text is not accounted while calculating tab size hint. Custom
styles may need to target `QTabBar[style="icon-only"]` to apply specific
fixes like disabling padding.

Fixes: #14282
2024-06-21 10:55:00 -05:00
bgbsww
9b547bb90f Only adjust found element names 2024-06-20 16:10:39 -05:00
wmayer
f6e67a009d Fix several compiler warnings
* -Wmaybe-uninitialized
* -Wunused-parameter
* -Wunused-variable
* -Wnonnull
* -Wstringop-truncation
* -Wstringop-overflow
2024-06-19 21:14:23 -05:00
wmayer
d1d2b730ef Gui: Move ToolBarAreaWidget to its own files
Since ToolBarAreaWidget is not a private class any more move its declaration and definition to their own source files.
2024-06-18 18:42:18 -05:00
FEA-eng
f5ebafcebb Update DlgPreferences.ui 2024-06-17 11:21:26 -05:00
Chris Hennes
c726198106 Merge branch 'main' into erase-version-4 2024-06-17 11:10:12 -05:00
Chris Hennes
99c30da736 Merge pull request #14388 from Ondsel-Development/core_rootObjects
Core: Add Gui::Document::getTreeRootObjects() Fixes #14373
2024-06-17 11:04:18 -05:00
Chris Hennes
d45cf8507b Merge pull request #13810 from hlorus/replace_measuredistance
Integrate Std_MeasureDistance into unified measurement facility
2024-06-17 10:55:40 -05:00
Chris Hennes
c901a2232f Merge branch 'main' into vp_texture_ext 2024-06-17 10:48:45 -05:00
FEA-eng
f413f5d6d0 Preselection preference text improvement (#14579)
* Update CommandView.cpp

* Update DlgSettingsSelection.ui
2024-06-17 10:40:03 -05:00
Kacper Donat
5328ca828f Gui: Split declaration and definition of ToolBarAreaWidget
In order to support targeting ToolBarAreaWidgets via the QSS we need to
make it a proper QObject using Q_OBJECT macro, which must be placed in
header files.
2024-06-17 10:38:12 -05:00
Chris Hennes
5dad1ef528 Merge pull request #14393 from NomAnor/visibility-icon
Change visibility icon default to enabled and tweak visuals
2024-06-17 10:36:35 -05:00