Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
71 changed files
with
2,920 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
IF (BUILD_GUI) | ||
PYSIDE_WRAP_RC(Tux_QRC_SRCS Resources/Tux.qrc) | ||
ENDIF (BUILD_GUI) | ||
|
||
SET(Tux_SRCS | ||
InitGui.py | ||
NavigationIndicatorGui.py | ||
) | ||
SOURCE_GROUP("" FILES ${Tux_SRCS}) | ||
|
||
ADD_CUSTOM_TARGET(Tux ALL | ||
SOURCES ${Tux_SRCS} ${Tux_QRC_SRCS} | ||
) | ||
|
||
fc_copy_sources(Tux "${CMAKE_BINARY_DIR}/Mod/Tux" ${Tux_SRCS}) | ||
|
||
IF (BUILD_GUI) | ||
fc_target_copy_resource(Tux | ||
${CMAKE_CURRENT_BINARY_DIR} | ||
${CMAKE_BINARY_DIR}/Mod/Tux | ||
Tux_rc.py) | ||
ENDIF (BUILD_GUI) | ||
|
||
INSTALL( | ||
FILES | ||
${Tux_SRCS} | ||
${Tux_QRC_SRCS} | ||
DESTINATION | ||
Mod/Tux | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Tux module for FreeCAD | ||
# Copyright (C) 2017 triplus @ FreeCAD | ||
# | ||
# | ||
# This library is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU Lesser General Public | ||
# License as published by the Free Software Foundation; either | ||
# version 2.1 of the License, or (at your option) any later version. | ||
# | ||
# This library 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 Lesser General Public | ||
# License along with this library; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
|
||
"""Tux module for FreeCAD.""" | ||
|
||
p = FreeCAD.ParamGet("User parameter:Tux") | ||
|
||
if p.GetGroup("NavigationIndicator").GetBool("Enabled", 1): | ||
import NavigationIndicatorGui | ||
else: | ||
pass |
Oops, something went wrong.