chiark / gitweb /
Merge branch 'new-settings' into devel
[cura.git] / Cura / gui / aboutWindow.py
1 __copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License"
2
3 import wx
4 import platform
5 from Cura.util import version
6
7 class aboutWindow(wx.Frame):
8         def __init__(self, parent):
9                 super(aboutWindow, self).__init__(parent, title=_("About"), style = wx.DEFAULT_DIALOG_STYLE)
10
11                 wx.EVT_CLOSE(self, self.OnClose)
12
13                 p = wx.Panel(self)
14                 self.panel = p
15                 s = wx.BoxSizer()
16                 self.SetSizer(s)
17                 s.Add(p, flag=wx.ALL, border=15)
18                 s = wx.BoxSizer(wx.VERTICAL)
19                 p.SetSizer(s)
20
21                 title = wx.StaticText(p, -1, 'Cura LulzBot Edition')
22                 title.SetFont(wx.Font(18, wx.SWISS, wx.NORMAL, wx.BOLD))
23                 s.Add(title, flag=wx.ALIGN_CENTRE|wx.EXPAND|wx.BOTTOM, border=5)
24
25                 version_num = version.getVersion()
26                 s.Add(wx.StaticText(p, -1, 'Version {}'.format(version_num)))
27                 s.Add(wx.StaticText(p, -1, 'End solution for Open Source Fused Filament Fabrication 3D printing.'), flag=wx.TOP, border=5)
28                 s.Add(wx.StaticText(p, -1, 'Cura is currently developed and maintained by David Braam and Ultimaker.'), flag=wx.TOP, border=5)
29                 s.Add(wx.StaticText(p, -1, 'Cura LulzBot Edition has been modified and maintained by Aleph Objects, Inc.'))
30                 s.Add(wx.StaticText(p, -1, 'for use with LulzBot 3D printers.'))
31
32                 s.Add(wx.StaticText(p, -1, 'Cura is built with the following components:'), flag=wx.TOP, border=10)
33                 self.addComponent('Cura', 'Graphical user interface', 'AGPLv3', 'https://github.com/daid/Cura')
34                 self.addComponent('CuraEngine', 'GCode Generator', 'AGPLv3', 'https://github.com/Ultimaker/CuraEngine')
35                 self.addComponent('Clipper', 'Polygon clipping library', 'Boost', 'http://www.angusj.com/delphi/clipper.php')
36
37                 self.addComponent('Python 2.7', 'Framework', 'Python', 'http://python.org/')
38                 self.addComponent('wxPython', 'GUI Framework', 'wxWindows', 'http://www.wxpython.org/')
39                 self.addComponent('PyOpenGL', '3D Rendering Framework', 'BSD', 'http://pyopengl.sourceforge.net/')
40                 self.addComponent('PySerial', 'Serial communication library', 'Python license', 'http://pyserial.sourceforge.net/')
41                 self.addComponent('NumPy', 'Support library for faster math', 'BSD', 'http://www.numpy.org/')
42                 if platform.system() == "Windows":
43                         self.addComponent('VideoCapture', 'Library for WebCam capture on windows', 'LGPLv2.1', 'http://videocapture.sourceforge.net/')
44                         #self.addComponent('ffmpeg', 'Support for making timelaps video files', 'GPL', 'http://www.ffmpeg.org/')
45                         self.addComponent('comtypes', 'Library to help with windows taskbar features on Windows 7', 'MIT', 'http://starship.python.net/crew/theller/comtypes/')
46                         self.addComponent('EjectMedia', 'Utility to safe-remove SD cards', 'Freeware', 'http://www.uwe-sieber.de/english.html')
47                 self.addComponent('Pymclevel', 'Python library for reading Minecraft levels.', 'ISC', 'https://github.com/mcedit/pymclevel')
48                 
49                 s.Add(wx.StaticText(p, -1, ""))
50                 s.Add(wx.StaticText(p, -1, "Cura utilizes graphics from:"))
51                 self.addComponent('3d-printer', 'by Toke Frello', 'CC BY 3.0 US', 'https://thenounproject.com/term/3d-printer/170216/')
52                 self.addComponent('Check Mark', 'by Stefan Parnarov', 'CC BY 3.0', 'https://thenounproject.com/term/check-mark/63794/')
53                 
54                 s.Add(wx.StaticText(p, -1, "Copyright (C) 2014 Aleph Objects, Inc. - Released under terms of the AGPLv3 License"), flag=wx.TOP, border=10)
55                 s.Add(wx.StaticText(p, -1, "Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License"))
56                 #Translations done by:
57                 #Dutch: Charlotte Jansen
58                 #German: Gregor Luetolf, Lars Potter
59                 #Polish: Piotr Paczynski
60                 #French: Jeremie Francois
61                 #Spanish: Jose Gemez
62                 self.Fit()
63
64         def addComponent(self, name, description, license, url):
65                 p = self.panel
66                 s = p.GetSizer()
67                 s.Add(wx.StaticText(p, -1, '* %s - %s' % (name, description)), flag=wx.TOP, border=5)
68                 s.Add(wx.StaticText(p, -1, '   License: %s - Website: %s' % (license, url)))
69
70         def OnClose(self, e):
71                 self.Destroy()