Gui: Fix header uniformity, whitespace, and doxygen fixes

This commit is contained in:
luz paz
2020-11-25 22:03:45 -05:00
committed by wwmayer
parent 8744ee985a
commit 38815b9550
283 changed files with 2026 additions and 1903 deletions

View File

@@ -68,7 +68,7 @@ const char* ViewProviderAnnotation::RotationAxisEnums[]= {"X","Y","Z",NULL};
PROPERTY_SOURCE(Gui::ViewProviderAnnotation, Gui::ViewProviderDocumentObject)
ViewProviderAnnotation::ViewProviderAnnotation()
ViewProviderAnnotation::ViewProviderAnnotation()
{
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View");
unsigned long col = hGrp->GetUnsigned("AnnotationTextColor",4294967295UL); // light grey
@@ -191,7 +191,7 @@ void ViewProviderAnnotation::attach(App::DocumentObject* f)
SoAnnotation* anno3d = new SoAnnotation();
SoFCSelection* textsep = new SoFCSelection();
// set selection/highlight colors
float transparency;
ParameterGrp::handle hGrp = Gui::WindowParameter::getDefaultParameter()->GetGroup("View");
@@ -217,11 +217,11 @@ void ViewProviderAnnotation::attach(App::DocumentObject* f)
textsep->addChild(pLabel);
SoFCSelection* textsep3d = new SoFCSelection();
// set sel/highlight color here too
textsep3d->colorHighlight.setValue(highlightColor);
textsep3d->colorSelection.setValue(selectionColor);
textsep3d->objectName = pcObject->getNameInDocument();
textsep3d->documentName = pcObject->getDocument()->getName();
textsep3d->subElementName = "Main";
@@ -240,7 +240,7 @@ void ViewProviderAnnotation::attach(App::DocumentObject* f)
void ViewProviderAnnotation::updateData(const App::Property* prop)
{
if (prop->getTypeId() == App::PropertyStringList::getClassTypeId() &&
if (prop->getTypeId() == App::PropertyStringList::getClassTypeId() &&
strcmp(prop->getName(),"LabelText") == 0) {
const std::vector<std::string> lines = static_cast<const App::PropertyStringList*>(prop)->getValues();
int index=0;
@@ -278,7 +278,7 @@ const char* ViewProviderAnnotationLabel::JustificationEnums[]= {"Left","Right","
PROPERTY_SOURCE(Gui::ViewProviderAnnotationLabel, Gui::ViewProviderDocumentObject)
ViewProviderAnnotationLabel::ViewProviderAnnotationLabel()
ViewProviderAnnotationLabel::ViewProviderAnnotationLabel()
{
ADD_PROPERTY(TextColor,(1.0f,1.0f,1.0f));
ADD_PROPERTY(BackgroundColor,(0.0f,0.333f,1.0f));
@@ -381,7 +381,7 @@ void ViewProviderAnnotationLabel::attach(App::DocumentObject* f)
void ViewProviderAnnotationLabel::updateData(const App::Property* prop)
{
if (prop->getTypeId() == App::PropertyStringList::getClassTypeId() &&
if (prop->getTypeId() == App::PropertyStringList::getClassTypeId() &&
strcmp(prop->getName(),"LabelText") == 0) {
drawImage(static_cast<const App::PropertyStringList*>(prop)->getValues());
}
@@ -435,7 +435,7 @@ void ViewProviderAnnotationLabel::dragMotionCallback(void *data, SoDragger *drag
bool ViewProviderAnnotationLabel::setEdit(int ModNum)
{
Q_UNUSED(ModNum);
Q_UNUSED(ModNum);
SoSearchAction sa;
sa.setInterest(SoSearchAction::FIRST);
sa.setSearchingAll(false);
@@ -456,7 +456,7 @@ bool ViewProviderAnnotationLabel::setEdit(int ModNum)
void ViewProviderAnnotationLabel::unsetEdit(int ModNum)
{
Q_UNUSED(ModNum);
Q_UNUSED(ModNum);
SoSearchAction sa;
sa.setType(TranslateManip::getClassTypeId());
sa.setInterest(SoSearchAction::FIRST);