- Big catchup commit to make sure we are up to beta7.
This includes a number of single patches, ranging from the vista fix with the buffers, to the start of many new minor features.
This commit is contained in:
@@ -11,6 +11,8 @@ import os.path
|
||||
|
||||
""" Import scyther-gui components """
|
||||
|
||||
import Scyther
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
""" Globals """
|
||||
@@ -19,9 +21,17 @@ basedir = ""
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
def setBaseDir(mybasedir):
|
||||
global basedir
|
||||
|
||||
basedir = mybasedir
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class AboutScyther(wx.Dialog):
|
||||
def __init__(self,parent,mybasedir=None):
|
||||
|
||||
from Version import SCYTHER_GUI_VERSION
|
||||
global basedir
|
||||
|
||||
self.text = '''
|
||||
@@ -29,6 +39,7 @@ class AboutScyther(wx.Dialog):
|
||||
<body bgcolor="#ffffff">
|
||||
<img src="$SPLASH">
|
||||
<p align="right"><b>Scyther : $VERSION</b></p>
|
||||
<small>
|
||||
<p>
|
||||
<b>Scyther</b> is an automatic tool for the verification and
|
||||
falsification of security protocols.
|
||||
@@ -42,21 +53,31 @@ class AboutScyther(wx.Dialog):
|
||||
<a target="_blank" href="http://people.inf.ethz.ch/cremersc/scyther/index.html">
|
||||
http://people.inf.ethz.ch/cremersc/scyther/index.html</a>
|
||||
</p>
|
||||
<p>
|
||||
$DETAILS
|
||||
</p>
|
||||
<p>
|
||||
Credits: Cas Cremers (Scyther theory, backend, and main GUI
|
||||
code), Gijs Hollestelle (Python parser for Scyther XML output).
|
||||
</p>
|
||||
</small>
|
||||
'''
|
||||
|
||||
if mybasedir:
|
||||
basedir = mybasedir
|
||||
|
||||
# Debugging output of some parameters
|
||||
|
||||
splashdir = os.path.join(basedir,"Images")
|
||||
splashimage = os.path.join(splashdir,"scyther-splash.png")
|
||||
details_html = "Base directory: %s<br>\n" % (basedir)
|
||||
details_html += Scyther.Scyther.GetInfo(html=True)
|
||||
|
||||
self.text = self.text.replace("$SPLASH",splashimage)
|
||||
self.text = self.text.replace("$DETAILS",details_html)
|
||||
|
||||
# version information
|
||||
self.text = self.text.replace("$VERSION", "1.0-beta6")
|
||||
self.text = self.text.replace("$VERSION", SCYTHER_GUI_VERSION)
|
||||
|
||||
wx.Dialog.__init__(self, parent, -1, 'About Scyther',
|
||||
size=(660,620))
|
||||
|
||||
Reference in New Issue
Block a user