Commit Graph

5253 Commits

Author SHA1 Message Date
pavltom
04335d4060 Switch to correct page when changing Link property target 2024-03-04 15:39:48 +01:00
wmayer
cc8fbf83e7 Gui: Enable SoModelMatrixElement
The element type SoModelMatrixElement must be enabled for the node types SoHighlightElementAction and SoSelectionElementAction.
Otherwise an assert() will fail and causes a crash in debug mode.
2024-03-04 11:24:39 +01:00
Ladislav Michl
0420f72ca0 Gui: PythonWrapper: Consolidate typeName handling
Use typeName consistently for both PySide and Python interface
code paths.
2024-03-03 15:20:48 +01:00
wmayer
866909e2f6 Gui: PythonWrapper: Make qt_getCppType more robust
Handle gracefully possible shiboken's Python API changes.
2024-03-03 15:20:48 +01:00
wmayer
26dedb03ce Gui: PythonWrapper: Fix possible crash in qt_wrapInstance 2024-03-03 15:20:48 +01:00
Ladislav Michl
a11d8710c1 Gui: PythonWrapper: Use getPyTypeObjectForTypeName consistently 2024-03-03 15:20:48 +01:00
Ladislav Michl
769d14a1f1 Gui: PythonWrapper: Raise exception on qt_wrapInstance failure
When qt_wrapInstance fails it returns Py::Object with internal
pointer set to null. Make PythonWrapper::from* methods raise
exception when this happens to be consistent with PySide code path.
2024-03-03 15:20:48 +01:00
Ladislav Michl
da64119797 Gui: Implement PythonWrapper::fromQAction
Wrapping QAction through QObject does not work as QAction class
is a part of QtGui not QtCore, so Py::Object with internal
pointer being null is returned causing a crash later.
Therefore implement fromQAction conversion method.
2024-03-03 15:20:48 +01:00
Max Wilfinger
31b12ae9e2 remove code block quotes from about info 2024-03-03 12:08:12 +01:00
Chris Hennes
b6c8f8d460 Update translations 2024-02-29 17:25:46 -06:00
PaddleStroke
57a83955cb Fix ViewProviderSuppressibleExtension 2024-02-27 15:05:50 +01:00
PaddleStroke
d74eb1439a Remove warning in Tree.cpp from 12293 2024-02-27 10:22:30 +01:00
wmayer
58a53e929d Gui: refactor Application::runApplication 2024-02-26 11:21:38 -06:00
Bas Ruigrok
45e33a7f12 Gui: Fix selection in Blender, CAD and Revit style 2024-02-26 11:21:07 -06:00
Chris Hennes
d144e85a34 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
717525c5be 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
ee0c55703f Core: Tree: Allow reordering in root and groups allowing it (parts, groups 2024-02-26 10:42:21 -06:00
mos
a025af2d26 removed deprecaded functions
.

.
2024-02-26 17:38:01 +01:00
Chris Hennes
7f8d6e2bb1 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
41b3be8fb6 Gui: improve PropertyMaterialListItem 2024-02-24 23:59:58 +01:00
wmayer
c633edfe8a Gui: improve PropertyMaterialItem 2024-02-24 23:59:58 +01:00
wmayer
1187ed58ed Gui: allow to set ranges for property item editors when used as sub-items 2024-02-24 23:59:58 +01:00
Ladislav Michl
967633eca9 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: ac6f991baf (Gui: Consolidate Python -> Qt class conversion)
2024-02-24 01:18:30 +01:00
wmayer
89a1dc0363 Gui: fix linter warnings 2024-02-22 11:47:48 +01:00
wmayer
b335a15ccc Gui: fixes #12540: ‘ModuleShiboken’ was not declared in this scope 2024-02-22 11:47:48 +01:00
André Althaus
ecf25d936e Unrelated changes from automatic code generation
These are mostly comment changes.
2024-02-21 19:28:33 +01:00
André Althaus
5aacd52ed8 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
15944bb079 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
47bbc1f6af 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
e7665f523f 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
47773d423b 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
735fed082f Add Suppress action to contextmenu 2024-02-21 16:19:38 +01:00
Florian Foinant-Willig
5a22009217 Add SuppressibleExtension 2024-02-21 16:19:32 +01:00
Pieter Hijma
095e94183a [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
aed799ce2a Gui: removed unused variable 2024-02-20 14:44:53 +01:00
wmayer
1262aef95d Gui: port to Qt6 2024-02-20 14:44:53 +01:00
Chris Hennes
3aa70320c7 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
bed5e4362b Gui: unite init code for FreeCAD GUI (normal and via Gui.showMainWindow()) 2024-02-19 10:48:00 -06:00
Chris Hennes
925be2aa48 Merge pull request #12088 from 3x380V/qt6_fixes
Gui: Consolidate PythonWrapper
2024-02-19 10:46:12 -06:00
Max Wilfinger
2a264241dc change default shape color 2024-02-18 14:12:22 -06:00
mosfet80
9960838ca3 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
e4d22af2a1 Gui: remove ProjectView (#12410)
This class is not used anywhere, remove it.
2024-02-16 21:38:42 -06:00
mosfet80
2fe8f546b7 removed unused files 2024-02-16 21:36:36 -06:00
Ladislav Michl
16232eed95 Gui: PythonWrapper: move getCppPointer into template 2024-02-16 09:25:02 +01:00
Ladislav Michl
6f8268b394 Gui: PythonWrapper: move wrap instance argument into template 2024-02-16 09:22:57 +01:00
Ladislav Michl
9e65a334fb Gui: PythonWrapper: fix access via Python to QObject and QWidget 2024-02-16 09:22:57 +01:00
Ladislav Michl
ec93b2aef1 Gui: PythonWrapper: unify getPyTypeObjectForTypeName 2024-02-16 09:22:57 +01:00
Ladislav Michl
92d0e5a266 Gui: PythonWrapper: consolidate module loader 2024-02-16 09:22:54 +01:00
Paddle
cdb1af6543 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
48173f2b9d Assembly: Implement special drag mode for revolute. 2024-02-13 08:25:46 +01:00