From d6bd7f1a7d396151b07d28c70e28997f277460f7 Mon Sep 17 00:00:00 2001 From: jrheinlaender Date: Mon, 3 Dec 2012 14:01:42 +0430 Subject: [PATCH] Added for bore feature --- src/Mod/PartDesign/CMakeLists.txt | 27 +++++++++++++++++++++++++-- src/Mod/PartDesign/InitGui.py | 1 + 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/Mod/PartDesign/CMakeLists.txt b/src/Mod/PartDesign/CMakeLists.txt index 5a5821da0..72c01c533 100644 --- a/src/Mod/PartDesign/CMakeLists.txt +++ b/src/Mod/PartDesign/CMakeLists.txt @@ -41,12 +41,31 @@ SET(WizardShaft_SRCS ) SOURCE_GROUP("wizardshaft" FILES ${WizardShaft_SRCS}) -SET(all_files ${WizardShaft_SRCS}) +SET(all_wizardshaft_files ${WizardShaft_SRCS}) ADD_CUSTOM_TARGET(WizardShaft ALL - SOURCES ${all_files} + SOURCES ${all_wizardshaft_files} ) +SET(FeatureBore_SRCS + FeatureBore/__init__.py + FeatureBore/FeatureBore.py + FeatureBore/TaskBore.py +) +SOURCE_GROUP("featurebore" FILES ${FeatureBore_SRCS}) + +SET(FeatureBore_UI + FeatureBore/TaskBore.ui +) + +SET(all_featurebore_files ${FeatureBore_SRCS} ${FeatureBore_UI}) + +ADD_CUSTOM_TARGET(FeatureBore ALL + SOURCES ${all_featurebore_files} +) + +SET(all_files ${all_featurebore_files} ${all_wizardshaft_files}) + fc_copy_sources(Mod/PartDesign "${CMAKE_BINARY_DIR}/Mod/PartDesign" ${all_files}) INSTALL( @@ -54,4 +73,8 @@ INSTALL( ${WizardShaft_SRCS} DESTINATION Mod/PartDesign/WizardShaft + FILES + ${FeatureBore_SRCS} + DESTINATION + Mod/PartDesign/FeatureBore ) diff --git a/src/Mod/PartDesign/InitGui.py b/src/Mod/PartDesign/InitGui.py index 8b590eafb..6f67a02b7 100644 --- a/src/Mod/PartDesign/InitGui.py +++ b/src/Mod/PartDesign/InitGui.py @@ -31,6 +31,7 @@ class PartDesignWorkbench ( Workbench ): "PartDesign workbench object" + from FeatureBore import TaskBore Icon = """ /* XPM */ static char * partdesign_xpm[] = {