Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
nelson-edalex committed Nov 16, 2018
1 parent ec6dfc9 commit 094c01d
Show file tree
Hide file tree
Showing 18 changed files with 8,247 additions and 2 deletions.
3 changes: 1 addition & 2 deletions package-mac/ebi-package.command
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ cp source/ebi/gtk-help.png dist/ebi.app/Contents/Resources/lib/.
cp source/ebi/gtk-stop.png dist/ebi.app/Contents/Resources/lib/.
cp source/ebi/options.png dist/ebi.app/Contents/Resources/lib/.
cp source/ebi/pause.png dist/ebi.app/Content
frjikjhjkfdf021s/Resources/lib/.
cp ebi.command dist/ebi.app/Contents/MacOS/.

cd dist
hdiutil create -srcfolder ebi.app ebi.dmg
hdiutil internet-enable -yes ebi.dmg
hdiutil internet-enable -yes ebi.dmg
Empty file modified package-mac/ebi.command
100644 → 100755
Empty file.
3,508 changes: 3,508 additions & 0 deletions package-mac/source/ebi/Engine.py

Large diffs are not rendered by default.

2,564 changes: 2,564 additions & 0 deletions package-mac/source/ebi/MainFrame.py

Large diffs are not rendered by default.

154 changes: 154 additions & 0 deletions package-mac/source/ebi/OptionsDialog.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
#Boa:Dialog:OptionsDialog

# Author: Jim Kurian, Pearson plc.
# Date: October 2014
#
# EBI Preferences dialog. Requires MainFrame.py to launch it.

import sys, wx, os, keyword, re
import wx.stc as stc

def create(parent):
return OptionsDialog(parent)

[wxID_OPTIONSDIALOG] = [wx.NewId() for _init_ctrls in range(1)]

class BasicPage(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent)

class AdvancedPage(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent)

class OptionsDialog(wx.Dialog):
def _init_ctrls(self, prnt):
wx.Dialog.__init__(self, style=wx.DEFAULT_DIALOG_STYLE, name='', parent=prnt, title='Preferences', pos=wx.Point(-1, -1), id=wxID_OPTIONSDIALOG, size=wx.Size(440, 350))

# notebook (tabs)
self.nb = wx.Notebook(parent=self, pos=wx.Point(0, 47))
self.basicPage = BasicPage(self.nb)
self.nb.AddPage(self.basicPage, "Basic")
self.advancedPage = AdvancedPage(self.nb)
self.nb.AddPage(self.advancedPage, "Advanced")

self.mainBoxSizer = wx.BoxSizer(orient=wx.VERTICAL)
self.mainBoxSizer.AddWindow(self.nb, 1, border=0, flag=wx.EXPAND)
self.SetSizer(self.mainBoxSizer)

padding = 5

sizer = wx.BoxSizer(wx.VERTICAL)

sizer.AddSpacer(10)

box = wx.BoxSizer(wx.HORIZONTAL)
self.chkLoadLastSettingsFile = wx.CheckBox(parent=self.basicPage, id=-1, label=u'Load last settings file when starting EBI', style=0)
self.chkLoadLastSettingsFile.SetValue(False)
box.Add(self.chkLoadLastSettingsFile, 1, wx.ALIGN_CENTER_VERTICAL|wx.ALL, padding)
sizer.Add(box, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, padding)

box = wx.BoxSizer(wx.HORIZONTAL)
self.chkClearLogEachRun = wx.CheckBox(parent=self.basicPage, id=-1, label="Clear log each run", style=0)
self.chkClearLogEachRun.SetValue(False)
self.chkClearLogEachRun.SetToolTipString("Clear log at the start of each run")
box.Add(self.chkClearLogEachRun, 1, wx.ALIGN_CENTER_VERTICAL|wx.ALL, padding)
sizer.Add(box, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, padding)

box = wx.BoxSizer(wx.HORIZONTAL)
self.chkSavePassword = wx.CheckBox(parent=self.basicPage, id=-1, label="Save password in settings file", style=0)
self.chkSavePassword.SetValue(True)
self.chkSavePassword.SetToolTipString("Save password in settings file")
box.Add(self.chkSavePassword, 1, wx.ALIGN_CENTER_VERTICAL|wx.ALL, padding)
sizer.Add(box, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, padding)

sizer.AddSpacer(3)

box = wx.BoxSizer(wx.HORIZONTAL)
label = wx.StaticText(self.basicPage, -1, "Log buffer size (lines):")
box.Add(label, 0, wx.ALIGN_RIGHT|wx.ALL, padding)
self.txtLogBufferSize = wx.TextCtrl(self.basicPage, -1, "", size=wx.Size(60,-1))
box.Add(self.txtLogBufferSize)
sizer.Add(box, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, padding)

self.basicPage.SetSizer(sizer)

sizer = wx.BoxSizer(wx.VERTICAL)

sizer.AddSpacer(10)


gridSizer = wx.FlexGridSizer(1, 2)

label = wx.StaticText(id=-1, label=u'Proxy Server Address:', parent=self.advancedPage, style=wx.ALIGN_RIGHT)
gridSizer.Add(label, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 4)
self.txtProxyAddress = wx.TextCtrl(id=-1,
name=u'txtProxyAddress', parent=self.advancedPage,
size=wx.Size(280, 21), style=0, value=u'')
self.txtProxyAddress.SetToolTipString(u'Proxy address e.g. "delphi_proxy:8080"')
gridSizer.Add(self.txtProxyAddress)

gridSizer.AddSpacer(5)
gridSizer.AddSpacer(5)

label = wx.StaticText(id=-1, label=u'Proxy Server Username:', parent=self.advancedPage, style=wx.ALIGN_RIGHT)
gridSizer.Add(label, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 4)
self.txtProxyUsername = wx.TextCtrl(id=-1,
name=u'txtProxyUsername', parent=self.advancedPage,
size=wx.Size(150, 21), style=0)
gridSizer.Add(self.txtProxyUsername)

gridSizer.AddSpacer(5)
gridSizer.AddSpacer(5)

label = wx.StaticText(id=-1, label=u'Proxy Server Password:', parent=self.advancedPage, style=wx.ALIGN_RIGHT)
gridSizer.Add(label, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 4)
self.txtProxyPassword = wx.TextCtrl(id=-1,
name=u'txtProxyPassword', parent=self.advancedPage,
size=wx.Size(150, 21), style=wx.TE_PASSWORD)
gridSizer.Add(self.txtProxyPassword)

sizer.Add(gridSizer, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, padding)

sizer.AddSpacer(15)

box = wx.BoxSizer(wx.HORIZONTAL)
self.chkDebugMode = wx.CheckBox(parent=self.advancedPage, id=-1, label=u'Debug Mode', style=0)
self.chkDebugMode.SetValue(False)
box.Add(self.chkDebugMode, 1, wx.ALIGN_CENTER_VERTICAL|wx.ALL, padding)
sizer.Add(box, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, padding)

box = wx.BoxSizer(wx.HORIZONTAL)
self.chkNetworkLogging = wx.CheckBox(parent=self.advancedPage, id=-1, label=u'Network Logging (Warning: only use for small runs)', style=0)
self.chkNetworkLogging.SetValue(False)
box.Add(self.chkNetworkLogging, 1, wx.ALIGN_CENTER_VERTICAL|wx.ALL, padding)
sizer.Add(box, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, padding)

sizer.AddSpacer(3)

box = wx.BoxSizer(wx.HORIZONTAL)
label = wx.StaticText(self.advancedPage, -1, "Attachment chunk size (bytes):")
box.Add(label, 0, wx.ALIGN_RIGHT|wx.ALL, padding)
self.txtAttachmentsChunkSize = wx.TextCtrl(self.advancedPage, -1, "", size=wx.Size(80,-1))
box.Add(self.txtAttachmentsChunkSize)
sizer.Add(box, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, padding)

self.advancedPage.SetSizer(sizer)

btnsizer = wx.StdDialogButtonSizer()
btn = wx.Button(self, wx.ID_OK)
btn.SetDefault()
btnsizer.AddButton(btn)
btn = wx.Button(self, wx.ID_CANCEL)
btnsizer.AddButton(btn)
btnsizer.Realize()
self.mainBoxSizer.Add(btnsizer, 0, wx.ALIGN_RIGHT|wx.RIGHT|wx.ALL, 5)


def __init__(self, parent):
self.startScript = ""
self.endScript = ""
self.preScript = ""
self.postScript = ""
self._init_ctrls(parent)

6 changes: 6 additions & 0 deletions package-mac/source/ebi/ebi.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Configuration]
loadlastsettingsfile = False

[State]
mainframesize = (1012, 575)

Loading

0 comments on commit 094c01d

Please sign in to comment.