PaddleStroke
5f4dd814ea
Core: Add getRootObjectsIgnoreLinks and fix bugs in tree.cpp and AssemblyObject.cpp, CommandInsertLink.py, UtilsAssembly.py
2024-05-13 17:58:34 +02:00
Florian Foinant-Willig
1398ab67e4
Fix #13107 ( #13682 )
...
Introduce a signal slot for tree item highlight change.
2024-05-13 10:42:57 -05:00
wmayer
a2037c9dc4
Gui: Replace TreeRank property with a simple int
...
This fixes that copied & pasted objects are not added at the end of the tree view.
See https://forum.freecad.org/viewtopic.php?p=755532#p755532
2024-05-06 18:24:20 +02:00
wmayer
7eeb3a43cc
Gui: Do not reset placement when reordering top-level objects
...
This fixes #13690 : Reordering top level objects destroys the Placement
2024-05-06 18:24:20 +02:00
wmayer
d37fb29b36
Gui: fix some linter warnings
2024-05-06 18:24:20 +02:00
farley
8f7424820c
Update Tree.cpp
...
- Disable document activation when right-clicking
2024-05-06 17:57:15 +02:00
wmayer
34837d7e9f
PD: Fix crash when adding sketch to loft via tree view
...
The underlying problem is the method DocumentItem::updateItemSelection() where
the selection is altered. This may cause the destruction and recreation of the
DocumentObjectItems so that the passed pointer can become dangling.
The issue is fixed in two steps:
1. Add the method 'DocumentObjectItem *findItem(App::DocumentObject* obj, const std::string& subname) const'
to safely re-access the item.
2. Add a boolean flag 'dirtyFlag' and the methods insertItem() and removeItem() to DocumentObjectData.
This is needed to check when the iterator over the container becomes invalid.
2024-05-06 17:38:59 +02:00
wmayer
098d42573b
Gui: fix computing status value and use enum to avoid magic numbers
2024-03-31 10:59:00 +02:00
ppphp
8863b9ac4c
fix: c++20 deprecate [=]
2024-03-31 10:47:32 +02:00
Max Wilfinger
e38b8d9bd4
update hardcoded XPMs to .svg files. Updated .svg icons for clarity.
2024-03-30 11:25:13 +01:00
luzpaz
65cdbe3e89
Fix various typos throughout the codebase ( #13029 )
...
* Fix various typos throughout the codebase
* [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-03-18 16:54:30 -05:00
André Althaus
570c2b121f
Fix #12780 : An additional visibility icon is shown for features in groups
...
The icons in the testStatus() function are taken by reference and modified
inside. This seems to be used for caching when the same item occurs
multiple times in the tree. This can be the case for groups.
The visibility icon was added without taking the cached icon into
consideration and so it was added a second time.
The code is now moved into the if statement checking for this case.
2024-03-11 12:23:04 -05: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
PaddleStroke
4d35f0b2a2
Remove warning in Tree.cpp from 12293
2024-02-27 10:22:30 +01: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
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
Florian Foinant-Willig
5d539cd940
Add SuppressibleExtension
2024-02-21 16:19:32 +01:00
Paddle
8889cc1163
Core: tree: prevent object replacement when dragging
2024-01-22 10:53:47 -06:00
Paddle
f7798327cf
Core: PropertyEditor : save properly the size of the first column.
2024-01-19 10:49:33 +01:00
Paddle
21905c0d62
Core: add property command, that shows property view.
2024-01-19 10:26:00 +01:00
Paddle
56bf4e7ebd
Core : Tree: Add 'Properties' action in contextual menu. Opens a property dialog.
2024-01-17 17:00:55 +01:00
André Caldas
89dbab9b0e
Avoids using getNameInDocument() to test if DocumentObject is attached to a Document.
...
This patch substitutes by isAttachedToDocument() (almost) everywhere where
getNameInDocument() is used for this purpose.
The very few places not touched by this patch demand a (just a little) less trivial change.
When we change the returning type of getNameInDocument() to std::string,
those places will be easily found, because they shall generate a compiler error
(converting std::string to bool).
Rationale:
The fact that getNameInDocument() return nullptr to indicate
that the object is not attached to a document is responsible for lots of bugs
where the developer does not check for "nullptr".
The idea is to eliminate all those uses of getNameInDocument() and, in the near future,
make getNameInDocument() return always a valid std::string.
2023-12-11 17:37:58 +01:00
wmayer
91aa75fb18
Gui: fix some important linting warnings:
...
* cppcoreguidelines-explicit-virtual-functions
* google-explicit-constructor
2023-10-12 11:48:16 +02:00
wmayer
3ba5cd569d
Gui: port new code to Qt6
2023-10-12 11:48:16 +02:00
Zheng, Lei
ba6b2a4375
Gui: add support for transparent overlay docking widget
2023-10-11 09:58:53 +02:00
Zheng, Lei
28bcc3d097
Gui: fix selection of nested object in App::Part
2023-10-10 14:28:26 +02:00
wmayer
d305f306df
Core: Revert superfluous changes made with PR #9521
2023-10-09 15:06:45 +02:00
AgCaliva
3da00e36a3
Merge Master
2023-08-30 16:24:16 -03:00
wmayer
6beace8da6
Gui: modernize C++: use default member init
2023-08-23 19:51:44 +02:00
wmayer
888a33917d
Gui: modernize C++: use equals default
2023-08-20 18:12:43 +02:00
AgCaliva
5c4631165a
merge master
2023-08-08 23:29:40 -03:00
wmayer
948cbfccd9
modernize C++: avoid bind
...
In many cases std::bind() is kept because the code is much simpler
2023-08-08 21:10:16 +02:00
wmayer
52e1c7c33b
modernize C++: move from boost::bind to std::bind
2023-08-08 17:36:13 +02:00
wmayer
ec73caa40e
modernize C++: make unique
2023-08-07 19:51:30 -06:00
wmayer
7a3106d31b
modernize C++: use bool literals
2023-08-06 01:35:39 +02:00
AgCaliva
d838225357
Merge branch 'master' into User/Document/Feature_level_units_selection_#7746
2023-07-02 17:45:05 -03:00
AgCaliva
9cf1cdadbc
Implemented DocumentReader for GuiDocument.xml reading. Final
2023-06-30 20:50:36 -03:00
AgCaliva
1db4bcf374
Revert "DocumentReader implemented for GuiDocument.xml reading."
...
This reverts commit 2eb5fd7f132035e24880bd88076d49ed368e23e0.
2023-06-30 20:27:12 -03:00
AgCaliva
69b324e422
DocumentReader implemented for GuiDocument.xml reading.
2023-06-30 18:41:00 -03:00
AgCaliva
20da8341c6
Implementing agnostic version of ParameterGrp for reading XML, replacing XMLReader from src/Base/reader.cpp with new class DocumentReader
2023-06-16 15:36:43 -03:00
Paddle
3c1c84cd1c
Add 'Tree settings' menu to the tree contextual menu. Also adds 'Show description column' setting in it.
2023-06-02 10:52:29 +02:00
Paddle
9611bac313
Core: Tree: Change the default of the preference to hide the seldomly used 'Description' colum.
...
On top of that the headers are now hidden if the description column is hidden.
2023-06-02 10:52:29 +02:00
Paddle
c456a4e533
Core: Tree: Remove useless "Application" root item.
2023-06-02 10:52:28 +02:00
luzpaz
38a01939e0
Migrate domain name from freecadweb to freecad ( #9352 )
...
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files
Closes #6415
2023-04-24 15:19:20 -05:00
Ronny Standtke
443fec5aca
added support for multi selection when toggling visibility in tree view
2023-04-13 17:15:29 +02:00