diff --git a/src/Mod/Import/CMakeLists.txt b/src/Mod/Import/CMakeLists.txt index 578a86d0f4..95f0ec5903 100644 --- a/src/Mod/Import/CMakeLists.txt +++ b/src/Mod/Import/CMakeLists.txt @@ -4,6 +4,22 @@ if(BUILD_GUI) add_subdirectory(Gui) endif(BUILD_GUI) +IF (BUILD_GUI) + PYSIDE_WRAP_RC(Import_QRC_SRCS Resources/Import.qrc) +ENDIF (BUILD_GUI) + +ADD_CUSTOM_TARGET(ImportRC ALL + SOURCES ${Draft_QRC_SRCS} +) + + +IF (BUILD_GUI) + fc_target_copy_resource(ImportRC + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/Mod/Import + Import_rc.py) +ENDIF (BUILD_GUI) + INSTALL( FILES Init.py diff --git a/src/Mod/Import/InitGui.py b/src/Mod/Import/InitGui.py index 092681cdfc..edc4b99253 100644 --- a/src/Mod/Import/InitGui.py +++ b/src/Mod/Import/InitGui.py @@ -68,3 +68,5 @@ class ImportWorkbench ( Workbench ): Gui.addWorkbench("Import",ImportWorkbench()) """ +import Import_rc +FreeCADGui.addPreferencePage(":/ui/preferences-import.ui","Import-Export") diff --git a/src/Mod/Import/Resources/Import.qrc b/src/Mod/Import/Resources/Import.qrc new file mode 100644 index 0000000000..e041b2aec2 --- /dev/null +++ b/src/Mod/Import/Resources/Import.qrc @@ -0,0 +1,5 @@ + + + ui/preferences-import.ui + + diff --git a/src/Mod/Import/Resources/ui/preferences-import.ui b/src/Mod/Import/Resources/ui/preferences-import.ui new file mode 100644 index 0000000000..2276c9a1ba --- /dev/null +++ b/src/Mod/Import/Resources/ui/preferences-import.ui @@ -0,0 +1,141 @@ + + + Gui::Dialog::DlgSettingsDraft + + + + 0 + 0 + 506 + 647 + + + + (h)STEP + + + + 6 + + + 9 + + + + + Export options + + + + + + 6 + + + 9 + + + + + Please select the STEP output format your are willing to get + + + AP 203 + + + true + + + Scheme_203 + + + Mod/Part/hSTEP + + + + + + + AP 214 + + + true + + + Scheme_214 + + + Mod/Import/hSTEP + + + + + + + + + + + + Import options + + + + + + If this is checked, no Compound merge will be done during file reading (slower but higher details). + + + Disable STEP Compound merge + + + false + + + ReadShapeCompoundMode + + + Mod/Import/hSTEP + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + qPixmapFromMimeSource + + + Gui::PrefRadioButton + QRadioButton +
Gui/PrefWidgets.h
+
+ + Gui::PrefCheckBox + QCheckBox +
Gui/PrefWidgets.h
+
+ + Gui::PrefDoubleSpinBox + QDoubleSpinBox +
Gui/PrefWidgets.h
+
+
+ + +