master
Daid 2012-12-24 12:21:13 +01:00
commit 465e37a19c
11 changed files with 43 additions and 7 deletions

3
.gitignore vendored
View File

@ -1,5 +1,6 @@
*.tar.bz2
*.tar.gz
*.7z
*.pyc
*.zip
*.exe
@ -22,3 +23,5 @@ object.png
scripts/darwin/dist/*
scripts/darwin/build/*
scripts/darwin/Cura.dmg.sparseimage
scripts/win32/dist/*
log.txt

View File

@ -273,7 +273,7 @@ class mainWindow(wx.Frame):
spp = sliceProgessPanel.sliceProgessPanel(self, self, self.filelist)
self.sizer.Add(spp, (len(self.progressPanelList)+2,0), span=(1, 3 + self.extruderCount), flag=wx.EXPAND)
self.sizer.Layout()
newSize = self.GetSize();
newSize = self.GetSize()
newSize.IncBy(0, spp.GetSize().GetHeight())
if newSize.GetWidth() < wx.GetDisplaySize()[0]:
self.SetSize(newSize)
@ -292,7 +292,7 @@ class mainWindow(wx.Frame):
def removeSliceProgress(self, spp):
self.progressPanelList.remove(spp)
newSize = self.GetSize();
newSize = self.GetSize()
newSize.IncBy(0, -spp.GetSize().GetHeight())
if newSize.GetWidth() < wx.GetDisplaySize()[0]:
self.SetSize(newSize)

View File

@ -150,7 +150,7 @@ G92 E0
}
preferencesDefaultSettings = {
'startMode': 'Simple',
'lastFile': os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'example', 'UltimakerRobot_support.stl')),
'lastFile': os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'resources', 'example', 'UltimakerRobot_support.stl')),
'machine_width': '205',
'machine_depth': '205',
'machine_height': '200',
@ -397,7 +397,7 @@ def calculateEdgeWidth():
if wallThickness < nozzleSize:
return wallThickness
lineCount = int(wallThickness / nozzleSize)
lineCount = int(wallThickness / nozzleSize + 0.0001)
lineWidth = wallThickness / lineCount
lineWidthAlt = wallThickness / (lineCount + 1)
if lineWidth > nozzleSize * 1.5:

View File

@ -1,10 +1,15 @@
from __future__ import absolute_import
import os
import sys
from Cura.util import resources
def getVersion(getGitVersion = True):
gitPath = os.path.abspath(os.path.join(os.path.split(os.path.abspath(__file__))[0], "../../.git"))
versionFile = os.path.abspath(os.path.join(os.path.split(os.path.abspath(__file__))[0], "../version"))
if hasattr(sys, 'frozen'):
versionFile = os.path.normpath(os.path.join(resources.resourceBasePath, "version"))
else:
versionFile = os.path.abspath(os.path.join(os.path.split(os.path.abspath(__file__))[0], "../version"))
if os.path.exists(gitPath):
if not getGitVersion:
return "dev"

View File

@ -106,6 +106,9 @@ if [ "$BUILD_TARGET" = "darwin" ]; then
#For now, just copy all of Cura so pypy can find it
cp -a Cura scripts/darwin/dist/Cura.app/Contents/Resources/
#Add cura version file (should read the version from the bundle with pyobjc, but will figure that out later)
echo $BUILD_NAME > scripts/darwin/dist/Cura.app/Contents/Resources/version
cd scripts/darwin
# Install QuickLook plugin
@ -150,6 +153,9 @@ if [ $BUILD_TARGET = "win32" ]; then
downloadURL http://www.uwe-sieber.de/files/ejectmedia.zip
#Get pypy
downloadURL https://bitbucket.org/pypy/pypy/downloads/pypy-${PYPY_VERSION}-win32.zip
#Get the power module for python
rm -rf Power
git clone https://github.com/GreatFruitOmsk/Power
else
downloadURL https://bitbucket.org/pypy/pypy/downloads/pypy-${PYPY_VERSION}-${BUILD_TARGET}.tar.bz2
fi
@ -183,10 +189,13 @@ if [ $BUILD_TARGET = "win32" ]; then
mv PURELIB/OpenGL ${TARGET_DIR}/python/Lib
mv PURELIB/comtypes ${TARGET_DIR}/python/Lib
mv PLATLIB/numpy ${TARGET_DIR}/python/Lib
mv Power/power ${TARGET_DIR}/python/Lib
mv VideoCapture-0.9-5/Python27/DLLs/vidcap.pyd ${TARGET_DIR}/python/DLLs
mv ffmpeg-20120927-git-13f0cd6-win32-static/bin/ffmpeg.exe ${TARGET_DIR}/Cura/
mv ffmpeg-20120927-git-13f0cd6-win32-static/licenses ${TARGET_DIR}/Cura/ffmpeg-licenses/
mv Win32/EjectMedia.exe ${TARGET_DIR}/Cura/
rm -rf Power/
rm -rf \$_OUTDIR
rm -rf PURELIB
rm -rf PLATLIB

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.com.pleasantsoftware.qlgenerator.STLQuickLook</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.1</string>
<key>CFBundleVersion</key>
<string>2</string>
</dict>
</plist>

View File

Before

Width:  |  Height:  |  Size: 933 B

After

Width:  |  Height:  |  Size: 933 B

View File

@ -1,2 +1,2 @@
@python\python.exe Cura\cura.py %*
@python\python.exe -m Cura.cura %*

View File

@ -1 +0,0 @@
@python\python.exe printrun\pronterface.py