Add Caption property to Views
This commit is contained in:
committed by
Yorik van Havre
parent
4a9778e230
commit
f0bcf8335e
@@ -52,7 +52,7 @@ PROPERTY_SOURCE(TechDraw::DrawProjGroup, TechDraw::DrawViewCollection)
|
||||
|
||||
DrawProjGroup::DrawProjGroup(void)
|
||||
{
|
||||
static const char *group = "Drawing view";
|
||||
static const char *group = "ProjGroup";
|
||||
|
||||
ADD_PROPERTY_TYPE(Anchor, (0), group, App::Prop_None, "The root view to align projections with");
|
||||
|
||||
|
||||
@@ -61,7 +61,9 @@ DrawView::DrawView(void)
|
||||
: autoPos(true),
|
||||
mouseMove(false)
|
||||
{
|
||||
static const char *group = "Drawing view";
|
||||
static const char *group = "BaseView";
|
||||
static const char *fgroup = "Format";
|
||||
|
||||
ADD_PROPERTY_TYPE(X ,(0),group,App::Prop_None,"X position of the view on the page in modelling units (mm)");
|
||||
ADD_PROPERTY_TYPE(Y ,(0),group,App::Prop_None,"Y position of the view on the page in modelling units (mm)");
|
||||
ADD_PROPERTY_TYPE(Rotation ,(0),group,App::Prop_None,"Rotation of the view on the page in degrees counterclockwise");
|
||||
@@ -70,6 +72,9 @@ DrawView::DrawView(void)
|
||||
ADD_PROPERTY_TYPE(ScaleType,((long)0),group, App::Prop_None, "Scale Type");
|
||||
ADD_PROPERTY_TYPE(Scale ,(1.0),group,App::Prop_None,"Scale factor of the view");
|
||||
|
||||
ADD_PROPERTY_TYPE(KeepLabel ,(false),fgroup,App::Prop_None,"Keep Label on Page even if toggled off");
|
||||
ADD_PROPERTY_TYPE(Caption ,(""),fgroup,App::Prop_None,"Short text about the view");
|
||||
|
||||
}
|
||||
|
||||
DrawView::~DrawView()
|
||||
|
||||
@@ -52,6 +52,8 @@ public:
|
||||
|
||||
App::PropertyEnumeration ScaleType;
|
||||
App::PropertyFloat Rotation;
|
||||
App::PropertyBool KeepLabel;
|
||||
App::PropertyString Caption;
|
||||
|
||||
/** @name methods overide Feature */
|
||||
//@{
|
||||
|
||||
Reference in New Issue
Block a user