Add Caption property to Views

This commit is contained in:
WandererFan
2016-10-31 11:06:15 -02:00
committed by Yorik van Havre
parent ce9f4f199a
commit a51b3f7b11
9 changed files with 173 additions and 20 deletions
+6 -1
View File
@@ -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()