1 __copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License"
4 from Cura.util import version
6 class newVersionDialog(wx.Dialog):
7 url = "code.alephobjects.com/w/cura/release-notes/"
10 super(newVersionDialog, self).__init__(None, title="Welcome to the new version!")
12 wx.EVT_CLOSE(self, self.OnClose)
18 s.Add(p, flag=wx.ALL, border=15)
19 s = wx.BoxSizer(wx.VERTICAL)
22 title_text = 'Cura - ' + version.getVersion()
23 title = wx.StaticText(p, -1, title_text)
24 font = wx.Font(18, wx.SWISS, wx.NORMAL, wx.BOLD)
28 title.SetMinSize(dc.GetTextExtent(title_text))
29 s.Add(title, flag=wx.ALIGN_CENTRE|wx.EXPAND|wx.BOTTOM, border=5)
30 s.Add(wx.StaticText(p, -1, _('Welcome to the new release of Cura LulzBot Edition!')))
31 s.Add(wx.StaticText(p, -1, _('(This dialog is only shown once)')))
32 s.Add(wx.StaticLine(p), flag=wx.EXPAND|wx.TOP|wx.BOTTOM, border=10)
33 s.Add(wx.StaticText(p, -1, _('Want to know what is new and cool in this version?')))
34 s.Add(wx.StaticText(p, -1, _('Click here for a list of changes:')))
35 s.Add(wx.HyperlinkCtrl(p, -1, newVersionDialog.url))
37 s.Add(wx.StaticLine(p), flag=wx.EXPAND|wx.TOP|wx.BOTTOM, border=10)
38 button = wx.Button(p, -1, _('OK'))
39 self.Bind(wx.EVT_BUTTON, self.OnOk, button)
40 s.Add(button, flag=wx.TOP|wx.ALIGN_RIGHT, border=5)