RuledSurface fixes, Switch Part_Mirror to SVG icon

RuledSurface fixes,
  claim children
  correct tool tip
  change default name from "Filled_shape" to "Ruled Surface"

Part_Mirror
  Switched icon in the tool bar, menu, and tree from
  the existing PNG icon to the also existing SVG icon
This commit is contained in:
jmaustpc
2013-03-24 01:01:47 +11:00
committed by Yorik van Havre
parent f18ddea1b3
commit 0ccbcffbf5
6 changed files with 54 additions and 15 deletions

View File

@@ -860,7 +860,7 @@ CmdPartMirror::CmdPartMirror()
sToolTipText = QT_TR_NOOP("Mirroring a selected shape");
sWhatsThis = sToolTipText;
sStatusTip = sToolTipText;
sPixmap = "Part_MirrorPNG";
sPixmap = "Part_Mirror.svg";
}
void CmdPartMirror::activated(int iMsg)
@@ -1227,7 +1227,7 @@ CmdPartRuledSurface::CmdPartRuledSurface()
sAppModule = "Part";
sGroup = QT_TR_NOOP("Part");
sMenuText = QT_TR_NOOP("Create ruled surface");
sToolTipText = QT_TR_NOOP("Create a ruled surface from two curves");
sToolTipText = QT_TR_NOOP("Create a ruled surface from either two Edges or two wires");
sWhatsThis = sToolTipText;
sStatusTip = sToolTipText;
sPixmap = "Part_RuledSurface";
@@ -1316,7 +1316,7 @@ void CmdPartRuledSurface::activated(int iMsg)
}
openCommand("Create ruled surface");
doCommand(Doc, "FreeCAD.ActiveDocument.addObject('Part::RuledSurface','Filled shape')");
doCommand(Doc, "FreeCAD.ActiveDocument.addObject('Part::RuledSurface', 'Ruled Surface')");
doCommand(Doc, "FreeCAD.ActiveDocument.ActiveObject.Curve1=(FreeCAD.ActiveDocument.%s,['%s'])"
,obj1.c_str(), link1.c_str());
doCommand(Doc, "FreeCAD.ActiveDocument.ActiveObject.Curve2=(FreeCAD.ActiveDocument.%s,['%s'])"