Commit Graph

26 Commits

Author SHA1 Message Date
wmayer
0388fa4bf9 fix inconsistencies between default action of context menu and double-click 2018-09-10 17:32:39 +02:00
wmayer
6a24bc9602 add class ViewProviderDragger
derive ViewProviderGeometryObject from ViewProviderDragger
derive ViewProviderPart from ViewProviderDragger
2017-11-26 15:42:57 +01:00
wmayer
3a0c3499e5 improve whitespaces 2017-09-09 18:07:46 +02:00
Stefan Tröger
0dd5f14918 Add new icons for Part and Group 2017-09-09 16:55:55 +02:00
Stefan Tröger
89bbb81521 Extension: Fix order-of-initialisation crash
FreeCADs property system utilises some pointer math to calculate the offset between
property and base class. Due to virtual inheritance of th ePropertyContainer the memory
layout has been changed to rather random, which has lead to crashes dependend on the
order of object initialisation.

The solution is to not make PropertyContaner virtual but a class below, Base::Persitance.
Then the memory layout is random for Persistance, but it is perfectly aligned for the
base class chains from PropertyContainer onwards as well as from Extension onwards.
Hence the proeprty system was changed to take the offset always from those two.
2016-10-08 12:48:34 +02:00
Stefan Tröger
6e1a029996 Extension: Port ViewProvider of Part 2016-10-08 12:48:34 +02:00
Stefan Tröger
6fa964c53f Extensions: Introduce classes and port App groups 2016-10-08 12:48:34 +02:00
DeepSOIC
218c81b7cc PartDesign: deactivate a container on double-click if already active
Before, it was impossible to deactivate a container (Part, Body) via gui
(or it wasn't obvious).
2016-05-21 01:31:06 +03:00
Stefan Tröger
d6a2acbd3a prevent parts from being dragged into parts 2016-04-12 18:12:22 +02:00
Alexander Golubev
d72a919384 OriginGroup: add new abstraction layer between the Part and the GeoFeatureGroup 2016-04-12 18:12:18 +02:00
Alexander Golubev
305151be34 App/Origin: big refactoring
- Rebase App::Origin on App::DocumentObject
 - Keep all control over the Origin structure inside the Origin and it's
   ViewProvider
 - Add OriginFeature class as common base for App::Plane and App::Line
 - Rebase App::Plane and App::Line on top of newly created class and
   move to the file.
 - Change Origin's ViewProvider API associated with temporary display
 - Lots of associated changes to files
 - Several minor fixes
 - Lots of new bugs
2016-04-12 18:12:18 +02:00
Alexander Golubev
e26c6174ac App/GeoFeatureGroup: derive from DocumentObjectGroup
Refactor GeoFeatureGroup and derive it from DocumentObjectGroup rather
than GeoFeatureObject to unify code of those two classes.
2016-04-12 18:12:17 +02:00
Alexander Golubev
dfeb2e3f42 Gui/ViewProciderPart: fix XZ plane orientation
Also fix spacing and a Workbench.getValue() condition
2016-04-12 18:12:17 +02:00
Stefan Tröger
b733d38064 better active part and document tip handling 2016-04-12 18:12:10 +02:00
Stefan Tröger
eba61e360d make origin work correct with multiple parts 2016-04-12 18:12:08 +02:00
blobfish
c8729fa2f2 Gui: ViewProviderPart: fix crash when no origin objects 2016-04-12 18:12:07 +02:00
Stefan Tröger
9c00c9a1bd code clean up 2016-04-12 18:12:06 +02:00
Stefan Tröger
6bcda82373 fix crash when deleting body 2016-04-12 18:12:06 +02:00
blobfish
0d6925fe2a Gui: Part: Viewprovider: check sub objects for valid view provider 2016-04-12 18:12:06 +02:00
Stefan Tröger
4d1ccd63c6 Prevent origin and base entities from transforming 2016-04-12 18:12:05 +02:00
Stefan Tröger
46e4e3b2b4 group coordinate planes and lines 2016-04-12 18:12:05 +02:00
Stefan Tröger
b401f07bdf add base lines 2016-04-12 18:12:05 +02:00
Stefan Tröger
940857e508 Adopt planes to Part size 2016-04-12 18:12:04 +02:00
jriegel
d87d0e8376 Assembly: Rename to setActiveBody and make link indeipendant Part initialization 2016-04-12 18:12:02 +02:00
jriegel
4fb12b7dcd Assembly: Add GeoFeatureGroup and helpers 2016-04-12 18:12:02 +02:00
jriegel
29efef2175 Add path and view provider for Part 2016-04-12 18:12:02 +02:00