Assembly: Replace Tangent+Parallel+Planar by 'Distance'.

This commit is contained in:
Paddle
2023-11-14 18:39:09 +01:00
committed by PaddleStroke
parent 1d7671942f
commit 2a3284808f
28 changed files with 2716 additions and 399 deletions

View File

@@ -24,6 +24,8 @@
#ifndef ASSEMBLYGUI_VIEWPROVIDER_ViewProviderAssembly_H
#define ASSEMBLYGUI_VIEWPROVIDER_ViewProviderAssembly_H
#include <QCoreApplication>
#include <Mod/Assembly/AssemblyGlobal.h>
#include <Gui/Selection.h>
@@ -40,6 +42,7 @@ namespace AssemblyGui
class AssemblyGuiExport ViewProviderAssembly: public Gui::ViewProviderPart,
public Gui::SelectionObserver
{
Q_DECLARE_TR_FUNCTIONS(AssemblyGui::ViewProviderAssembly)
PROPERTY_HEADER_WITH_OVERRIDE(AssemblyGui::ViewProviderAssembly);
public:
@@ -57,6 +60,14 @@ public:
void unsetEdit(int ModNum) override;
bool isInEditMode();
/// Ask the view provider if it accepts object deletions while in edit
bool acceptDeletionsInEdit() override
{
return true;
}
bool canDragObject(App::DocumentObject*) const override;
App::DocumentObject* getActivePart();
/// is called when the provider is in edit and the mouse is moved