wmayer
5f0ccced5b
Gui: fix -Wlogical-op-parentheses
2024-03-05 08:34:19 -06:00
Chris Hennes
796240392a
Gui: Fix translation strings for Part, Group, and Link
...
Extra HTML tags were added outside the translation NOOP. They were unnecessary, and broke translation.
2024-03-05 10:38:51 +01:00
wmayer
26ba1c3f9b
Gui: fix -Wlogical-op-parentheses
2024-03-04 11:23:09 -06:00
Bas Ruigrok
b99cd239aa
Gui: Set rotation center when entering dragging in TinkerCAD style
2024-03-04 11:09:04 -06:00
Florian Foinant-Willig
c53d5fbf9d
Introduce object freeze ( #12580 )
...
* Introduce object freeze
* do nothing at property change
2024-03-04 17:54:25 +01:00
LemonBoy
e43f1fb00c
GUI: Follow the widget indications when docking them ( #12530 )
...
* GUI: Follow the widget indications when docking them
The overlay manager handles the creation and drawing of the title bars
for the docked widgets. When adding a QDockWidget the manager ignored
the set of features (closable, movable, floatable) provided by the
widget and always showed all the actions.
Amend the code to take into account the features specified by the
widget.
Closes #11944
2024-03-04 10:41:55 -06:00
Chris Hennes
d61597cb2d
Merge pull request #12205 from Rexbas/animation-easing
...
Gui: Add easing to navigation animations
2024-03-04 10:37:06 -06:00
wmayer
c1552fb590
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
15094fadef
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
d4c564efe9
Gui: PythonWrapper: Make qt_getCppType more robust
...
Handle gracefully possible shiboken's Python API changes.
2024-03-03 15:20:48 +01:00
wmayer
3d2c365093
Gui: PythonWrapper: Fix possible crash in qt_wrapInstance
2024-03-03 15:20:48 +01:00
Ladislav Michl
cbff393dc1
Gui: PythonWrapper: Use getPyTypeObjectForTypeName consistently
2024-03-03 15:20:48 +01:00
Ladislav Michl
92e047d886
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
61bca92941
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
fe70801fc2
remove code block quotes from about info
2024-03-03 12:08:12 +01:00
Chris Hennes
c4b54a94a2
Update translations
2024-02-29 17:25:46 -06:00
Rexbas
7cfb4b10e5
Gui: Add easing to navigation animations
2024-02-29 13:29:37 -06:00
Rexbas
d512d68ec4
Gui: Set default navigation animation duration to 500 ms
2024-02-29 13:29:37 -06:00
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