From 28d194819c790db3be0660abe70452ed059d243b Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 14 Mar 2023 09:38:42 +0100 Subject: [PATCH] Remove unused mod complete --- .../InitializeFreeCADBuildOptions.cmake | 1 - src/Mod/CMakeLists.txt | 4 - src/Mod/Complete/CMakeLists.txt | 23 ------ src/Mod/Complete/Gui/CMakeLists.txt | 14 ---- .../Gui/Resources/icons/CompleteWorkbench.svg | 80 ------------------- src/Mod/Complete/Init.py | 24 ------ src/Mod/Complete/InitGui.py | 43 ---------- 7 files changed, 189 deletions(-) delete mode 100644 src/Mod/Complete/CMakeLists.txt delete mode 100644 src/Mod/Complete/Gui/CMakeLists.txt delete mode 100644 src/Mod/Complete/Gui/Resources/icons/CompleteWorkbench.svg delete mode 100644 src/Mod/Complete/Init.py delete mode 100644 src/Mod/Complete/InitGui.py diff --git a/cMake/FreeCAD_Helpers/InitializeFreeCADBuildOptions.cmake b/cMake/FreeCAD_Helpers/InitializeFreeCADBuildOptions.cmake index 64cb23c9bd..3739ae14c8 100644 --- a/cMake/FreeCAD_Helpers/InitializeFreeCADBuildOptions.cmake +++ b/cMake/FreeCAD_Helpers/InitializeFreeCADBuildOptions.cmake @@ -104,7 +104,6 @@ macro(InitializeFreeCADBuildOptions) option(BUILD_TEMPLATE "Build the FreeCAD template module which is only for testing purposes" OFF) option(BUILD_ADDONMGR "Build the FreeCAD addon manager module" ON) option(BUILD_ARCH "Build the FreeCAD Architecture module" ON) - option(BUILD_COMPLETE "Build the FreeCAD complete module" OFF) option(BUILD_DRAFT "Build the FreeCAD draft module" ON) option(BUILD_DRAWING "Build the FreeCAD drawing module" OFF) option(BUILD_IDF "Build the FreeCAD idf module" ON) diff --git a/src/Mod/CMakeLists.txt b/src/Mod/CMakeLists.txt index 44a12bf641..3ee5aec3c6 100644 --- a/src/Mod/CMakeLists.txt +++ b/src/Mod/CMakeLists.txt @@ -10,10 +10,6 @@ if(BUILD_CLOUD) add_subdirectory(Cloud) endif(BUILD_CLOUD) -if(BUILD_COMPLETE) - add_subdirectory(Complete) -endif(BUILD_COMPLETE) - if(BUILD_DRAFT) add_subdirectory(Draft) endif(BUILD_DRAFT) diff --git a/src/Mod/Complete/CMakeLists.txt b/src/Mod/Complete/CMakeLists.txt deleted file mode 100644 index fc33c960fe..0000000000 --- a/src/Mod/Complete/CMakeLists.txt +++ /dev/null @@ -1,23 +0,0 @@ -if(BUILD_GUI) - add_subdirectory(Gui) -endif(BUILD_GUI) - -SET(Complete_SRCS - Init.py - InitGui.py -) - -SOURCE_GROUP("" FILES ${Complete_SRCS}) - -ADD_CUSTOM_TARGET(Complete ALL - SOURCES ${Complete_SRCS} -) - -fc_copy_sources(Complete "${CMAKE_BINARY_DIR}/Mod/Complete" ${Complete_SRCS}) - -INSTALL( - FILES - ${Complete_SRCS} - DESTINATION - Mod/Complete -) diff --git a/src/Mod/Complete/Gui/CMakeLists.txt b/src/Mod/Complete/Gui/CMakeLists.txt deleted file mode 100644 index d4c0a4a680..0000000000 --- a/src/Mod/Complete/Gui/CMakeLists.txt +++ /dev/null @@ -1,14 +0,0 @@ -SET(CompleteGuiIcon_SVG - Resources/icons/CompleteWorkbench.svg -) - -SOURCE_GROUP("" FILES ${CompleteGuiIcon_SVG}) - -ADD_CUSTOM_TARGET(CompleteGui ALL - SOURCES ${CompleteGuiIcon_SVG} -) - -fc_copy_sources(CompleteGui "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Mod/Complete" ${CompleteGuiIcon_SVG}) - -INSTALL(FILES ${CompleteGuiIcon_SVG} DESTINATION "${CMAKE_INSTALL_DATADIR}/Mod/Complete/Resources/icons") - diff --git a/src/Mod/Complete/Gui/Resources/icons/CompleteWorkbench.svg b/src/Mod/Complete/Gui/Resources/icons/CompleteWorkbench.svg deleted file mode 100644 index 5be7796e1e..0000000000 --- a/src/Mod/Complete/Gui/Resources/icons/CompleteWorkbench.svg +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - diff --git a/src/Mod/Complete/Init.py b/src/Mod/Complete/Init.py deleted file mode 100644 index fd4e09ab6f..0000000000 --- a/src/Mod/Complete/Init.py +++ /dev/null @@ -1,24 +0,0 @@ -#*************************************************************************** -#* Copyright (c) 2001,2002 Juergen Riegel * -#* * -#* This file is part of the FreeCAD CAx development system. * -#* * -#* This program is free software; you can redistribute it and/or modify * -#* it under the terms of the GNU Lesser General Public License (LGPL) * -#* as published by the Free Software Foundation; either version 2 of * -#* the License, or (at your option) any later version. * -#* for detail see the LICENCE text file. * -#* * -#* FreeCAD is distributed in the hope that it will be useful, * -#* but WITHOUT ANY WARRANTY; without even the implied warranty of * -#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * -#* GNU Lesser General Public License for more details. * -#* * -#* You should have received a copy of the GNU Library General Public * -#* License along with FreeCAD; if not, write to the Free Software * -#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * -#* USA * -#* * -#***************************************************************************/ - -# FreeCAD init script of the Complete module diff --git a/src/Mod/Complete/InitGui.py b/src/Mod/Complete/InitGui.py deleted file mode 100644 index 07326de920..0000000000 --- a/src/Mod/Complete/InitGui.py +++ /dev/null @@ -1,43 +0,0 @@ -#*************************************************************************** -#* Copyright (c) 2002,2003 Juergen Riegel * -#* * -#* This file is part of the FreeCAD CAx development system. * -#* * -#* This program is free software; you can redistribute it and/or modify * -#* it under the terms of the GNU Lesser General Public License (LGPL) * -#* as published by the Free Software Foundation; either version 2 of * -#* the License, or (at your option) any later version. * -#* for detail see the LICENCE text file. * -#* * -#* FreeCAD is distributed in the hope that it will be useful, * -#* but WITHOUT ANY WARRANTY; without even the implied warranty of * -#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * -#* GNU Lesser General Public License for more details. * -#* * -#* You should have received a copy of the GNU Library General Public * -#* License along with FreeCAD; if not, write to the Free Software * -#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * -#* USA * -#* * -#***************************************************************************/ - -# Complete gui init module -# -# Gathering all the information to start FreeCAD -# This is the second one of three init scripts, the third one -# runs when the gui is up - -class CompleteWorkbench(Workbench): - "Complete workbench object" - def __init__(self): - self.__class__.Icon = FreeCAD.getResourceDir() + "Mod/Complete/Resources/icons/CompleteWorkbench.svg" - self.__class__.MenuText = "Complete" - self.__class__.ToolTip = "Complete workbench" - - def Initialize(self): - pass - - def GetClassName(self): - return "Gui::PythonWorkbench" - -# Gui.addWorkbench(CompleteWorkbench())