Skip to content

Commit

Permalink
Hide Caption property where not applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererFan committed Jun 1, 2019
1 parent aedb888 commit 71a0953
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Mod/TechDraw/App/DrawLeaderLine.cpp
Expand Up @@ -66,6 +66,7 @@ DrawLeaderLine::DrawLeaderLine(void)
Scale.setStatus(App::Property::Hidden,true);
Rotation.setStatus(App::Property::ReadOnly,true);
Rotation.setStatus(App::Property::Hidden,true);
Caption.setStatus(App::Property::Hidden,true);

//generally, lines/leaders are not meant to move around.
LockPosition.setValue(true);
Expand Down
1 change: 1 addition & 0 deletions src/Mod/TechDraw/App/DrawProjGroup.cpp
Expand Up @@ -80,6 +80,7 @@ DrawProjGroup::DrawProjGroup(void)
ADD_PROPERTY_TYPE(spacingX, (15), agroup, App::Prop_None, "Horizontal spacing between views");
ADD_PROPERTY_TYPE(spacingY, (15), agroup, App::Prop_None, "Vertical spacing between views");
Rotation.setStatus(App::Property::Hidden,true); //DPG does not rotate
Caption.setStatus(App::Property::Hidden,true);

}

Expand Down
5 changes: 5 additions & 0 deletions src/Mod/TechDraw/App/DrawRichAnno.cpp
Expand Up @@ -52,6 +52,11 @@ DrawRichAnno::DrawRichAnno(void)
ADD_PROPERTY_TYPE(AnnoText, (""), group, App::Prop_None, "Anno text");
ADD_PROPERTY_TYPE(ShowFrame, (true), group, App::Prop_None, "Outline rectangle on/off");
ADD_PROPERTY_TYPE(MaxWidth, (-1.0), group, App::Prop_None, "Width limit before auto wrap");
Caption.setStatus(App::Property::Hidden,true);
Scale.setStatus(App::Property::Hidden,true);
ScaleType.setStatus(App::Property::Hidden,true);


}

DrawRichAnno::~DrawRichAnno()
Expand Down
1 change: 1 addition & 0 deletions src/Mod/TechDraw/App/DrawViewDimension.cpp
Expand Up @@ -118,6 +118,7 @@ DrawViewDimension::DrawViewDimension(void)
Scale.setStatus(App::Property::Hidden,true);
Rotation.setStatus(App::Property::ReadOnly,true);
Rotation.setStatus(App::Property::Hidden,true);
Caption.setStatus(App::Property::Hidden,true);

measurement = new Measure::Measurement();
//TODO: should have better initial datumLabel position than (0,0) in the DVP?? something closer to the object being measured?
Expand Down

0 comments on commit 71a0953

Please sign in to comment.