chiark / gitweb /
Add clipper as used component (while it is used in the engine, it is good to list it)
[cura.git] / Cura / gui / aboutWindow.py
1 from __future__ import absolute_import
2 __copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License"
3
4 import wx
5 import platform
6
7 class aboutWindow(wx.Dialog):
8         def __init__(self):
9                 super(aboutWindow, self).__init__(None, title="About")
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')
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                 s.Add(wx.StaticText(p, -1, 'End solution for Open Source Fused Filament Fabrication 3D printing.'))
26                 s.Add(wx.StaticText(p, -1, 'Cura is currently developed and maintained by Ultimaker.'))
27
28                 s.Add(wx.StaticText(p, -1, 'Cura is build with the following components:'), flag=wx.TOP, border=10)
29                 self.addComponent('Cura', 'Graphical user interface', 'AGPLv3', 'https://github.com/daid/Cura')
30                 self.addComponent('CuraEngine', 'GCode Generator', 'AGPLv3', 'https://github.com/Ultimaker/CuraEngine')
31                 self.addComponent('Clipper', 'Polygon clipping library', 'Boost', 'http://www.angusj.com/delphi/clipper.php')
32
33                 self.addComponent('Python 2.7', 'Framework', 'Python', 'http://python.org/')
34                 self.addComponent('wxPython', 'GUI Framework', 'wxWindows', 'http://www.wxpython.org/')
35                 self.addComponent('PyOpenGL', '3D Rendering Framework', 'BSD', 'http://pyopengl.sourceforge.net/')
36                 self.addComponent('PySerial', 'Serial communication library', 'Python license', 'http://pyserial.sourceforge.net/')
37                 self.addComponent('NumPy', 'Support library for faster math', 'BSD', 'http://www.numpy.org/')
38                 if platform.system() == "Windows":
39                         self.addComponent('VideoCapture', 'Library for WebCam capture on windows', 'LGPLv2.1', 'http://videocapture.sourceforge.net/')
40                         self.addComponent('ffmpeg', 'Support for making timelaps video files', 'GPL', 'http://www.ffmpeg.org/')
41                         self.addComponent('comtypes', 'Library to help with windows taskbar features on Windows 7', 'MIT', 'http://starship.python.net/crew/theller/comtypes/')
42                         self.addComponent('EjectMedia', 'Utility to safe-remove SD cards', 'Freeware', 'http://www.uwe-sieber.de/english.html')
43                 self.addComponent('Pymclevel', 'Python library for reading Minecraft levels.', 'ISC', 'https://github.com/mcedit/pymclevel')
44
45                 self.Fit()
46
47         def addComponent(self, name, description, license, url):
48                 p = self.panel
49                 s = p.GetSizer()
50                 s.Add(wx.StaticText(p, -1, '* %s - %s' % (name, description)), flag=wx.TOP, border=5)
51                 s.Add(wx.StaticText(p, -1, '   License: %s - Website: %s' % (license, url)))
52
53         def OnClose(self, e):
54                 self.Destroy()
55
56 #               info = wx.AboutDialogInfo()
57 #               info.SetName("Cura")
58 #               info.SetDescription("""
59 # End solution for Open Source Fused Filament Fabrication 3D printing.
60 # * Cura is the graphical User Interface.
61 # * CuraEngine is the slicer/gcode generator.
62 # Cura and the CuraEngine are licensed AGPLv3.
63 #               """)
64 #               info.SetWebSite('http://software.ultimaker.com/')
65 #               info.SetCopyright(_("Copyright (C) David Braam"))
66 #               info.SetLicence("""
67 #     This program is free software: you can redistribute it and/or modify
68 #     it under the terms of the GNU Affero General Public License as published by
69 #     the Free Software Foundation, either version 3 of the License, or
70 #     (at your option) any later version.
71 #
72 #     This program is distributed in the hope that it will be useful,
73 #     but WITHOUT ANY WARRANTY; without even the implied warranty of
74 #     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
75 #     GNU Affero General Public License for more details.
76 #
77 #     You should have received a copy of the GNU Affero General Public License
78 #     along with this program.  If not, see <http://www.gnu.org/licenses/>.
79 # """)
80 #               wx.AboutBox(info)