From 8d47560151bcb8406f4d7f72cff2fb7e7e67be10 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sun, 19 Aug 2018 17:51:54 -0300 Subject: [PATCH] Start: Fix for py3 --- src/Mod/Start/StartPage/CMakeLists.txt | 3 - src/Mod/Start/StartPage/StartPage.py | 3 +- src/Mod/Start/StartPage/preferences.ui | 462 ------------------------- 3 files changed, 2 insertions(+), 466 deletions(-) delete mode 100644 src/Mod/Start/StartPage/preferences.ui diff --git a/src/Mod/Start/StartPage/CMakeLists.txt b/src/Mod/Start/StartPage/CMakeLists.txt index 28accd8701..7c8a47a2d9 100644 --- a/src/Mod/Start/StartPage/CMakeLists.txt +++ b/src/Mod/Start/StartPage/CMakeLists.txt @@ -7,6 +7,3 @@ INSTALL(FILES ${StartPage_Resources} DESTINATION ${CMAKE_INSTALL_DATADIR}/Mod/Start/StartPage ) -INSTALL(DIRECTORY images/ - DESTINATION ${CMAKE_INSTALL_DATADIR}/Mod/Start/StartPage/images -) diff --git a/src/Mod/Start/StartPage/StartPage.py b/src/Mod/Start/StartPage/StartPage.py index 0f90d2a76d..ab0fba05bb 100644 --- a/src/Mod/Start/StartPage/StartPage.py +++ b/src/Mod/Start/StartPage/StartPage.py @@ -24,7 +24,8 @@ # This is the start page template. It builds a HTML global variable that contains # the html code of the start page. It is built only once per FreeCAD session for now... -import sys,os,FreeCAD,FreeCADGui,tempfile,time,zipfile,urllib,re,TranslationTexts +import sys,os,FreeCAD,FreeCADGui,tempfile,time,zipfile,urllib,re +from . import TranslationTexts from PySide import QtCore,QtGui FreeCADGui.addLanguagePath(":/translations") diff --git a/src/Mod/Start/StartPage/preferences.ui b/src/Mod/Start/StartPage/preferences.ui deleted file mode 100644 index 256534339a..0000000000 --- a/src/Mod/Start/StartPage/preferences.ui +++ /dev/null @@ -1,462 +0,0 @@ - - - Form - - - - 0 - 0 - 500 - 507 - - - - Start page options - - - - - - Start page template - - - - - - An optional HTML template that will be used instead of the default start page. - - - Template - - - Mod/Start - - - - - - - - - - Start page options - - - - - - false - - - - 60 - 60 - - - - the down gradient for the background color (currently unsupported) - - - - 127 - 158 - 181 - - - - BackgroundColor2 - - - Mod/Start - - - - - - - Link color - - - - - - - - 60 - 60 - - - - the background of the main start page area - - - - 255 - 255 - 255 - - - - PageColor - - - Mod/Start - - - - - - - Box background color - - - - - - - - 60 - 60 - - - - the color of the links - - - - 0 - 0 - 255 - - - - LinkColor - - - Mod/Start - - - - - - - - 60 - 60 - - - - the color of the version text - - - - 255 - 251 - 247 - - - - BackgroundTextColor - - - Mod/Start - - - - - - - Background image - - - - - - - Background color - - - - - - - Page text color - - - - - - - - 60 - 60 - - - - the color of the text on he main pages - - - - 0 - 0 - 0 - - - - PageTextColor - - - Mod/Start - - - - - - - an optional image to display as background - - - BackgroundImage - - - Mod/Start - - - - - - - Page background color - - - - - - - Show examples folder contents - - - - - - - an optional custom folder to be displayed at the bottom of the first page - - - ShowCustomFolder - - - Mod/Start - - - - - - - Show additional folder - - - - - - - - 60 - 60 - - - - the background color of the boxes inside the pages - - - - 221 - 221 - 221 - - - - BoxColor - - - Mod/Start - - - - - - - - 60 - 60 - - - - the background color behind the panels - - - - 79 - 88 - 116 - - - - BackgroundColor1 - - - Mod/Start - - - - - - - - - false - - - in same page - - - true - - - InBrowser - - - Mod/Start - - - - - - - false - - - in external browser - - - InWeb - - - Mod/Start - - - - - - - - - if you want the examples to show on the first page - - - Qt::RightToLeft - - - - - - true - - - ShowExamples - - - Mod/Start - - - - - - - Background text color - - - - - - - false - - - Background color gradient down - - - - - - - false - - - Open links - - - - - - - Switch workbench after loading a file - - - - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - Gui::FileChooser - QWidget -
Gui/FileDialog.h
-
- - Gui::ColorButton - QPushButton -
Gui/Widgets.h
-
- - Gui::PrefFileChooser - Gui::FileChooser -
Gui/PrefWidgets.h
-
- - Gui::PrefColorButton - Gui::ColorButton -
Gui/PrefWidgets.h
-
- - Gui::PrefRadioButton - QRadioButton -
Gui/PrefWidgets.h
-
- - Gui::PrefCheckBox - QCheckBox -
Gui/PrefWidgets.h
-
-
- - -