Sketcher: ViewProviderSketch

============================

Adding PropertyVisualLayerList to ViewProviderSketch
This commit is contained in:
Abdullah Tahiri
2023-02-27 19:58:38 +01:00
committed by abdullahtahiriyo
parent 6a3d751352
commit f2d6b287ab
2 changed files with 5 additions and 0 deletions

View File

@@ -321,6 +321,8 @@ ViewProviderSketch::ViewProviderSketch()
ADD_PROPERTY_TYPE(ForceOrtho,(false),"Visibility automation",(App::PropertyType)(App::Prop_ReadOnly),"If true, camera type will be forced to orthographic view when entering editing mode.");
ADD_PROPERTY_TYPE(SectionView,(false),"Visibility automation",(App::PropertyType)(App::Prop_ReadOnly),"If true, only objects (or part of) located behind the sketch plane are visible.");
ADD_PROPERTY_TYPE(EditingWorkbench,("SketcherWorkbench"),"Visibility automation",(App::PropertyType)(App::Prop_ReadOnly),"Name of the workbench to activate when editing this sketch.");
ADD_PROPERTY_TYPE(VisualLayerList, (VisualLayer()), "Layers", (App::PropertyType)(App::Prop_ReadOnly), "Information about the Visual Representation of layers");
// Default values that will be overridden by preferences (if existing)
PointSize.setValue(4);

View File

@@ -39,6 +39,8 @@
#include <Mod/Part/Gui/ViewProviderAttachExtension.h>
#include <Mod/Sketcher/App/GeoList.h>
#include "PropertyVisualLayerList.h"
#include "ShortcutListener.h"
@@ -421,6 +423,7 @@ public:
App::PropertyBool ForceOrtho;
App::PropertyBool SectionView;
App::PropertyString EditingWorkbench;
SketcherGui::PropertyVisualLayerList VisualLayerList;
//@}
// TODO: It is difficult to imagine that these functions are necessary in the public interface. This requires review at a second stage and possibly