Start: Small fixes to the start page

This commit is contained in:
Yorik van Havre 2012-06-09 15:19:57 -03:00
parent 55a205062a
commit 152ed0f77c
6 changed files with 19 additions and 8 deletions

View File

@ -54,6 +54,8 @@ SET(StartPage_Resources
StartPage/PartDesignExample.png
StartPage/ArchExample.png
StartPage/web.png
StartPage/blank.png
StartPage/complete.jpg
)
add_library(StartGui SHARED ${StartGui_SRCS})

View File

@ -24,6 +24,8 @@ SET(StartPage_DATA
PartDesignExample.png
ArchExample.png
web.png
blank.png
complete.jpg
)
INSTALL(FILES ${StartPage_SRCS}

View File

@ -28,7 +28,9 @@ data_DATA = \
Complete.png \
PartDesignExample.png \
ArchExample.png \
web.png
web.png \
blank.png \
complete.jpg
EXTRA_DIST = \
$(data_DATA) $(python_DATA)

View File

@ -309,10 +309,10 @@ def getWebExamples():
def getExamples():
return """
<ul>
<li><a href="LoadSchenkel.py">""" + text10 + """</a></li>
<li><a href="LoadPartDesignExample.py">""" + text11 + """</a></li>
<li><a href="LoadDrawingExample.py">""" + text12 + """</a></li>
<li><a href="LoadRobotExample.py">""" + text13 + """</a></li>
<li><img src="FreeCAD.png" style="width: 16px">&nbsp;<a href="LoadSchenkel.py">""" + text10 + """</a></li>
<li><img src="FreeCAD.png" style="width: 16px">&nbsp;<a href="LoadPartDesignExample.py">""" + text11 + """</a></li>
<li><img src="FreeCAD.png" style="width: 16px">&nbsp;<a href="LoadDrawingExample.py">""" + text12 + """</a></li>
<li><img src="FreeCAD.png" style="width: 16px">&nbsp;<a href="LoadRobotExample.py">""" + text13 + """</a></li>
</ul>"""
def getLinks():
@ -366,7 +366,7 @@ def getWorkbenches():
<li><img src="Complete.png">&nbsp;
<a onMouseover="show('<h3>""" + text30 +"""</h3> \
<p>This is the <b>""" + text31 + """</b>, \
""" + text32 + """</p>')"
""" + text32 + """</p><img src=complete.jpg>')"
onMouseout="show('')"
href="DefaultWorkbench.py">""" + text31 + """</a>
</li>
@ -399,7 +399,7 @@ def getInfo(filename):
html += text35 + " " + getLocalTime(s.st_mtime) + "<br/>"
html += "<span>" + text36 + " " + filename + "</span></p>"
# get additional info from fcstd files
if os.path.splitext(filename)[1] in [".fcstd",".FcStd"]:
if os.path.splitext(filename)[1].upper() in [".FCSTD"]:
zfile=zipfile.ZipFile(filename)
files=zfile.namelist()
# check for meta-file if it's really a FreeCAD document
@ -429,7 +429,12 @@ def getRecentFiles():
if i < ct:
mr = rf.GetString("MRU%d" % (i))
fn = os.path.basename(mr)
html += '<li><a '
html += '<li>'
if mr[-5:].upper() == "FCSTD":
html += '<img src="FreeCAD.png" style="width: 16px">&nbsp;'
else:
html += '<img src="blank.png" style="width: 16px">&nbsp;'
html += '<a '
html += 'onMouseover="show(\''+getInfo(mr)+'\')" '
html += 'onMouseout="show(\'\')" '
html += 'href="LoadMRU'+str(i)+'.py">'

BIN
src/Mod/Start/StartPage/blank.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB