Skip to content

Commit

Permalink
Merging the Help module (FreeCAD#11008)
Browse files Browse the repository at this point in the history
* Adding the Help module - fixes 10527, fixes FreeCAD#10512

* Aded Help to pre-commit

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
yorikvanhavre and pre-commit-ci[bot] committed Oct 16, 2023
1 parent 70cce0d commit 1c18768
Show file tree
Hide file tree
Showing 14 changed files with 1,252 additions and 0 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Expand Up @@ -12,6 +12,7 @@ files: |
src/Mod/Drawing|
src/Mod/Fem/App|
src/Mod/Fem/Gui|
src/Mod/Help|
src/Mod/Import|
src/Mod/Inspection|
src/Mod/JtReader|
Expand Down
1 change: 1 addition & 0 deletions cMake/FreeCAD_Helpers/InitializeFreeCADBuildOptions.cmake
Expand Up @@ -106,6 +106,7 @@ macro(InitializeFreeCADBuildOptions)
option(BUILD_ARCH "Build the FreeCAD Architecture module" ON)
option(BUILD_DRAFT "Build the FreeCAD draft module" ON)
option(BUILD_DRAWING "Build the FreeCAD drawing module" OFF)
option(BUILD_HELP "Build the FreeCAD help module" ON)
option(BUILD_IDF "Build the FreeCAD idf module" ON)
option(BUILD_IMPORT "Build the FreeCAD import module" ON)
option(BUILD_INSPECTION "Build the FreeCAD inspection module" ON)
Expand Down
4 changes: 4 additions & 0 deletions src/Mod/CMakeLists.txt
Expand Up @@ -26,6 +26,10 @@ if(BUILD_FEM)
add_subdirectory(Fem)
endif(BUILD_FEM)

if(BUILD_HELP)
add_subdirectory(Help)
endif(BUILD_HELP)

if(BUILD_IDF)
add_subdirectory(Idf)
endif(BUILD_IDF)
Expand Down
25 changes: 25 additions & 0 deletions src/Mod/Help/CMakeLists.txt
@@ -0,0 +1,25 @@
IF (BUILD_GUI)
PYSIDE_WRAP_RC(Help_QRC_SRCS Resources/Help.qrc)
ENDIF (BUILD_GUI)

SET(Help_SRCS
InitGui.py
default.css
Help.py
dlgPreferencesHelp.ui
)

SOURCE_GROUP("" FILES ${Help_SRCS})

ADD_CUSTOM_TARGET(Help ALL SOURCES ${Help_SRCS} ${Help_QRC_SRCS})

fc_copy_sources(Help "${CMAKE_BINARY_DIR}/Mod/Help" ${Help_SRCS})

IF (BUILD_GUI)
fc_target_copy_resource(Help
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}/Mod/Help
Help_rc.py)
ENDIF (BUILD_GUI)

INSTALL(FILES ${Help_SRCS} ${Help_QRC_SRCS} DESTINATION Mod/Help)

0 comments on commit 1c18768

Please sign in to comment.