diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index 781b98c1ce..3184a94f48 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -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); diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.h b/src/Mod/Sketcher/Gui/ViewProviderSketch.h index f287ab070b..eb1765f864 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.h +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.h @@ -39,6 +39,8 @@ #include #include +#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