remove hole feature

A hole feature is something needed, however, the current implementation does not use the attacher code which would made it intuitive and compatibel to other workbench tools. A reimplementation is needed.
This commit is contained in:
Stefan Tröger 2015-07-06 21:13:10 +02:00
parent 72c70bcc50
commit 12c5e1f92f
6 changed files with 37 additions and 34 deletions

View File

@ -46,7 +46,7 @@
#include "FeaturePolarPattern.h" #include "FeaturePolarPattern.h"
#include "FeatureScaled.h" #include "FeatureScaled.h"
#include "FeatureMultiTransform.h" #include "FeatureMultiTransform.h"
#include "FeatureHole.h" //#include "FeatureHole.h"
#include "DatumPlane.h" #include "DatumPlane.h"
#include "DatumLine.h" #include "DatumLine.h"
#include "DatumPoint.h" #include "DatumPoint.h"
@ -93,7 +93,7 @@ PyMODINIT_FUNC init_PartDesign()
PartDesign::PolarPattern ::init(); PartDesign::PolarPattern ::init();
PartDesign::Scaled ::init(); PartDesign::Scaled ::init();
PartDesign::MultiTransform ::init(); PartDesign::MultiTransform ::init();
PartDesign::Hole ::init(); //PartDesign::Hole ::init();
PartDesign::Body ::init(); PartDesign::Body ::init();
PartDesign::Pad ::init(); PartDesign::Pad ::init();
PartDesign::Pocket ::init(); PartDesign::Pocket ::init();

View File

@ -89,17 +89,17 @@ SET(FeatureHole_UI
SET(all_featurehole_files ${FeatureHole_SRCS} ${FeatureHole_UI}) SET(all_featurehole_files ${FeatureHole_SRCS} ${FeatureHole_UI})
ADD_CUSTOM_TARGET(FeatureHole ALL #ADD_CUSTOM_TARGET(FeatureHole ALL
SOURCES ${all_featurehole_files} # SOURCES ${all_featurehole_files}
) #)
SET(all_files ${all_featurehole_files}) #SET(all_files ${all_featurehole_files})
fc_copy_sources(Mod/PartDesign "${CMAKE_BINARY_DIR}/Mod/PartDesign" ${all_files}) fc_copy_sources(Mod/PartDesign "${CMAKE_BINARY_DIR}/Mod/PartDesign" ${all_files})
INSTALL( #INSTALL(
FILES # FILES
${FeatureHole_SRCS} # ${FeatureHole_SRCS}
DESTINATION # DESTINATION
Mod/PartDesign/FeatureHole # Mod/PartDesign/FeatureHole
) #)

View File

@ -37,7 +37,7 @@ set(PartDesignGui_MOC_HDRS
TaskDraftParameters.h TaskDraftParameters.h
TaskThicknessParameters.h TaskThicknessParameters.h
TaskDressUpParameters.h TaskDressUpParameters.h
TaskHoleParameters.h #TaskHoleParameters.h
TaskRevolutionParameters.h TaskRevolutionParameters.h
TaskGrooveParameters.h TaskGrooveParameters.h
TaskTransformedMessages.h TaskTransformedMessages.h
@ -67,7 +67,7 @@ set(PartDesignGui_UIC_SRCS
TaskDraftParameters.ui TaskDraftParameters.ui
TaskThicknessParameters.ui TaskThicknessParameters.ui
TaskBooleanParameters.ui TaskBooleanParameters.ui
TaskHoleParameters.ui #TaskHoleParameters.ui
TaskRevolutionParameters.ui TaskRevolutionParameters.ui
TaskGrooveParameters.ui TaskGrooveParameters.ui
TaskTransformedMessages.ui TaskTransformedMessages.ui
@ -92,8 +92,8 @@ SET(PartDesignGuiViewProvider_SRCS CommandPrimitive.cpp
ViewProviderBody.h ViewProviderBody.h
ViewProviderPad.cpp ViewProviderPad.cpp
ViewProviderPad.h ViewProviderPad.h
ViewProviderHole.cpp #ViewProviderHole.cpp
ViewProviderHole.h #ViewProviderHole.h
ViewProviderPocket.cpp ViewProviderPocket.cpp
ViewProviderPocket.h ViewProviderPocket.h
ViewProviderChamfer.cpp ViewProviderChamfer.cpp
@ -199,9 +199,9 @@ SET(PartDesignGuiTaskDlgs_SRCS
TaskMultiTransformParameters.ui TaskMultiTransformParameters.ui
TaskMultiTransformParameters.cpp TaskMultiTransformParameters.cpp
TaskMultiTransformParameters.h TaskMultiTransformParameters.h
TaskHoleParameters.ui #TaskHoleParameters.ui
TaskHoleParameters.cpp #TaskHoleParameters.cpp
TaskHoleParameters.h #TaskHoleParameters.h
TaskDatumParameters.ui TaskDatumParameters.ui
TaskDatumParameters.cpp TaskDatumParameters.cpp
TaskDatumParameters.h TaskDatumParameters.h

View File

@ -781,7 +781,8 @@ Gui::MenuItem* Workbench::setupMenuBar() const
<< "Separator" << "Separator"
<< "PartDesign_Boolean" << "PartDesign_Boolean"
<< "Separator" << "Separator"
<< "PartDesign_Hole"; //<< "PartDesign_Hole"
<< "PartDesign_InvoluteGear";
// For 0.13 a couple of python packages like numpy, matplotlib and others // For 0.13 a couple of python packages like numpy, matplotlib and others
// are not deployed with the installer on Windows. Thus, the WizardShaft is // are not deployed with the installer on Windows. Thus, the WizardShaft is

View File

@ -52,10 +52,10 @@ class PartDesignWorkbench ( Workbench ):
import InvoluteGearFeature import InvoluteGearFeature
except ImportError: except ImportError:
print "Involute gear module cannot be loaded" print "Involute gear module cannot be loaded"
try: #try:
from FeatureHole import HoleGui # from FeatureHole import HoleGui
except: #except:
pass # pass
def GetClassName(self): def GetClassName(self):
return "PartDesignGui::Workbench" return "PartDesignGui::Workbench"

View File

@ -46,16 +46,7 @@ class PartDesignWorkbench ( Workbench ):
from FeatureHole import HoleGui from FeatureHole import HoleGui
except: except:
pass pass
<<<<<<< 1cdecc120fcdcd3447f72fdd734cf6c4f78b056b <<<<<<< b5588a8b68f0650311b83fab5cf5afffd31f9a5f
import PartDesignGui
import PartDesign
try:
import InvoluteGearFeature
except ImportError:
print "Involute gear module cannot be loaded"
def GetClassName(self):
return "PartDesignGui::Workbench"
=======
import PartDesignGui import PartDesignGui
import PartDesign import PartDesign
try: try:
@ -66,9 +57,20 @@ class PartDesignWorkbench ( Workbench ):
from FeatureHole import HoleGui from FeatureHole import HoleGui
except: except:
pass pass
=======
import PartDesignGui
import PartDesign
try:
import InvoluteGearFeature
except ImportError:
print "Involute gear module cannot be loaded"
#try:
# from FeatureHole import HoleGui
#except:
# pass
>>>>>>> remove hole feature
def GetClassName(self): def GetClassName(self):
return "PartDesignGui::Workbench" return "PartDesignGui::Workbench"
>>>>>>> some fixes
Gui.addWorkbench(PartDesignWorkbench()) Gui.addWorkbench(PartDesignWorkbench())