Again some fixes

This commit is contained in:
jriegel 2013-07-10 07:54:26 +02:00
parent 3f7f010041
commit c77d2c688e
4 changed files with 8 additions and 2 deletions

View File

@ -178,6 +178,10 @@ View3DInventorViewer::View3DInventorViewer (QWidget *parent, const char *name,
pShapeHints->ref();
this->backgroundroot->addChild(pShapeHints);
SoLightModel* pcLightModel = new SoLightModel();
pcLightModel->model = SoLightModel::PHONG;
this->backgroundroot->addChild(pcLightModel);
// Background stuff
pcBackGround = new SoFCBackgroundGradient;

View File

@ -176,6 +176,7 @@ class MachiningDistortionWorkbench ( Workbench ):
self.setWatchers()
FreeCADGui.Control.showTaskView()
Msg("MachiningDistortionWorkbench::Activated()\n")
def Deactivated(self):
Msg("MachiningDistortionWorkbench::Deactivated()\n")

View File

@ -39,9 +39,9 @@ class _CommandAlignment:
"the MachDist Alignment command definition"
def GetResources(self):
return {'Pixmap' : 'MachDist_Align',
'MenuText': QtCore.QT_TRANSLATE_NOOP("MachDist_Alignment","Machine-Distortion Alignment"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("MachDist_Alignment","Part Alignment"),
'Accel': "A",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("MachDist_Alignment","Machine-Distortion Alignment")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("MachDist_Alignment","Part Alignment")}
def Activated(self):
FreeCAD.ActiveDocument.openTransaction("Alignment")

View File

@ -45,6 +45,7 @@ class _CommandAnalysis:
def Activated(self):
FreeCAD.ActiveDocument.openTransaction("Create Analysis")
FreeCADGui.addModule("FemGui")
FreeCADGui.doCommand("FreeCADGui.ActiveDocument.ActiveView.setAxisCross(True)")
FreeCADGui.doCommand("App.activeDocument().addObject('Fem::FemAnalysis','PartDistortion')")
FreeCADGui.doCommand("FemGui.setActiveAnalysis(App.activeDocument().ActiveObject)")
sel = FreeCADGui.Selection.getSelection()