Commit Graph

5243 Commits

Author SHA1 Message Date
PaddleStroke
4565f052c7 Fix ViewProviderSuppressibleExtension 2024-02-27 15:05:50 +01:00
PaddleStroke
4d35f0b2a2 Remove warning in Tree.cpp from 12293 2024-02-27 10:22:30 +01:00
wmayer
f085a602bd Gui: refactor Application::runApplication 2024-02-26 11:21:38 -06:00
Bas Ruigrok
477702dfa8 Gui: Fix selection in Blender, CAD and Revit style 2024-02-26 11:21:07 -06:00
Chris Hennes
afff892b14 Merge pull request #12412 from FlachyJoe/suppressibleExt
Core: Create a SuppressibleExtension to provide the Suppressed property to all the WBs
2024-02-26 10:53:46 -06:00
Chris Hennes
c566498d8f Merge pull request #12298 from NomAnor/visibility-icon
Add an icon to toggle the visibility of items in the tree view
2024-02-26 10:45:07 -06:00
PaddleStroke
fec1a86e30 Core: Tree: Allow reordering in root and groups allowing it (parts, groups 2024-02-26 10:42:21 -06:00
mos
037fbbc5c5 removed deprecaded functions
.

.
2024-02-26 17:38:01 +01:00
Chris Hennes
641e3dbbb4 Update translations (#12557)
* Update 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-02-24 21:38:37 -06:00
wmayer
8d8d47df70 Gui: improve PropertyMaterialListItem 2024-02-24 23:59:58 +01:00
wmayer
190c3bf17a Gui: improve PropertyMaterialItem 2024-02-24 23:59:58 +01:00
wmayer
906e163e12 Gui: allow to set ranges for property item editors when used as sub-items 2024-02-24 23:59:58 +01:00
Ladislav Michl
282c44ead1 Gui: PythonWrapper: Do not steal reference
Foreign Python objects needs to be passed as Py::Object().
Py::asObject() is stealing reference and object might be garbage
collected even before dereferenced. Problem didn't show in the
original code because methods Py::asObject() was used in were
never called.

Fixes: 26babf4d3674 (Gui: Consolidate Python -> Qt class conversion)
2024-02-24 01:18:30 +01:00
wmayer
572a2f4243 Gui: fix linter warnings 2024-02-22 11:47:48 +01:00
wmayer
f22bfcef9b Gui: fixes #12540: ‘ModuleShiboken’ was not declared in this scope 2024-02-22 11:47:48 +01:00
André Althaus
6dda38074a Unrelated changes from automatic code generation
These are mostly comment changes.
2024-02-21 19:28:33 +01:00
André Althaus
8ed244df3f Add a new preference for the visibility icons
Add a preference to Display->UI that allows the user to choose if
the visibility icons are shown in the tree view.
2024-02-21 19:28:28 +01:00
André Althaus
65cb454559 Add a function to recalculate the icons for use when the visibility icon preference changes 2024-02-21 19:25:13 +01:00
André Althaus
d0c3b0d01a Toggle visibility when clicking the visibility icon
If the visibility icon is enabled a mouse press on that part of the icon
toggles the visibility of the tree item.
2024-02-21 19:25:13 +01:00
André Althaus
00ed73b909 Add visibility icon
Prepends the visibility icon to the normal icon if enabled and uses
the result as the new icon.
2024-02-21 19:25:12 +01:00
André Althaus
a3a1b63abd Add visibility icons to resources
The icons are taken from https://github.com/realthunder/FreeCAD/tree/LinkMerge
2024-02-21 19:25:12 +01:00
Florian Foinant-Willig
c6d5b21f11 Add Suppress action to contextmenu 2024-02-21 16:19:38 +01:00
Florian Foinant-Willig
5d539cd940 Add SuppressibleExtension 2024-02-21 16:19:32 +01:00
Pieter Hijma
402421f6aa [Core] Managing Custom Data Elements: VarSet (#12135)
* [Core] Add a basic VarSet document object

* [Core] Add basic tests for VarSets

* Core: Replace the VarSet icon with an outlined one
2024-02-21 10:38:06 +01:00
wmayer
756329e7f4 Gui: removed unused variable 2024-02-20 14:44:53 +01:00
wmayer
3dfe91a971 Gui: port to Qt6 2024-02-20 14:44:53 +01:00
Chris Hennes
5c64759c98 Merge pull request #12306 from Rexbas/fix-disappearing-handles
Gui: Fix disappearing element handles in sketcher
2024-02-19 11:18:10 -06:00
bdieterm
3c44c842f7 Gui: unite init code for FreeCAD GUI (normal and via Gui.showMainWindow()) 2024-02-19 10:48:00 -06:00
Chris Hennes
850056d00d Merge pull request #12088 from 3x380V/qt6_fixes
Gui: Consolidate PythonWrapper
2024-02-19 10:46:12 -06:00
Max Wilfinger
fd518c6187 change default shape color 2024-02-18 14:12:22 -06:00
mosfet80
749fbb33b9 Gui: remove SoNavigationDragger (#12409)
Removed SoNavigationDragger files. These files are no longer used in the project
2024-02-16 21:39:28 -06:00
mosfet80
c919ea8666 Gui: remove ProjectView (#12410)
This class is not used anywhere, remove it.
2024-02-16 21:38:42 -06:00
mosfet80
be71f476a3 removed unused files 2024-02-16 21:36:36 -06:00
Ladislav Michl
b90f43d0d4 Gui: PythonWrapper: move getCppPointer into template 2024-02-16 09:25:02 +01:00
Ladislav Michl
3a26e22f38 Gui: PythonWrapper: move wrap instance argument into template 2024-02-16 09:22:57 +01:00
Ladislav Michl
7a3069797e Gui: PythonWrapper: fix access via Python to QObject and QWidget 2024-02-16 09:22:57 +01:00
Ladislav Michl
6d28656e44 Gui: PythonWrapper: unify getPyTypeObjectForTypeName 2024-02-16 09:22:57 +01:00
Ladislav Michl
8f029e551f Gui: PythonWrapper: consolidate module loader 2024-02-16 09:22:54 +01:00
Paddle
888013d3c6 Assembly : Add support for perspective camera.
Remove exportASMT from toolbar.
Fix Fixedjoint name and tooltip
Fix various bugs
Introduce solver drag functions.
2024-02-13 08:25:46 +01:00
Paddle
a8ed4dd9a7 Assembly: Implement special drag mode for revolute. 2024-02-13 08:25:46 +01:00
Paddle
2a3284808f Assembly: Replace Tangent+Parallel+Planar by 'Distance'. 2024-02-13 08:25:45 +01:00
wmayer
19db9bdaeb Gui: check dialog width after language change 2024-02-12 12:00:11 -06:00
wmayer
fe94ff6dac Gui: set minimum width of preferences dialog to avoid to truncate or hide controls 2024-02-12 12:00:11 -06:00
Yorik van Havre
ae0f162a41 Crowdin translations (#12313)
* 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-02-12 11:59:08 -06:00
wmayer
74121ea127 Gui: fixes #12043: Treeview doesn't work if not in combo view mode 2024-02-12 18:46:29 +01:00
wmayer
70b8e7a07b Gui: Give property editors an object name
This allows it to easily find the widgets with Qt's findChild() method
2024-02-12 11:41:09 -06:00
LemonBoy
395797d018 Avoid overriding ImagePlane size during import
When copying&pasting an ImagePlane whose ImageFile property is a
PropertyFile we'd get two updateData notifications, one when the
property value is restored (which doesn't do much as the file doesn't
exist yet) and another when the RestoreDocFile method is invoked.

The solution is simple, do not set Xsize and Ysize when importing the
object as we expect the properties to already have the correct values.

Closes #11036
2024-02-12 11:38:18 -06:00
André
4fb4288905 Resolve #12248: Remove redundant and non-functional selection checkbox preference (#12263)
Remove the selection checkbox preference from Display->UI.
The same preference exists under General->Selection.

When changing the preference and then applying the settings, it reverts
back to the value under General->Selection and thus is not usable.
2024-02-12 14:34:28 -03:00
mos
561803455e removed unused example 2024-02-12 11:12:25 -06:00
LemonBoy
8fc02829f1 Dim the Navigation Cube when not active
Implement the InactiveOpacity option, allowing the user to dim the
navigation cube when not focused by making it transparent.
2024-02-12 18:10:12 +01:00