__copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License"

import wx
from Cura.util import version

class newVersionDialog(wx.Dialog):
	url = "code.alephobjects.com/w/cura/release-notes/"

	def __init__(self):
		super(newVersionDialog, self).__init__(None, title="Welcome to the new version!")

		wx.EVT_CLOSE(self, self.OnClose)

		p = wx.Panel(self)
		self.panel = p
		s = wx.BoxSizer()
		self.SetSizer(s)
		s.Add(p, flag=wx.ALL, border=15)
		s = wx.BoxSizer(wx.VERTICAL)
		p.SetSizer(s)

		title_text = 'Cura - ' + version.getVersion()
		title = wx.StaticText(p, -1, title_text)
		font = wx.Font(18, wx.SWISS, wx.NORMAL, wx.BOLD)
		title.SetFont(font)
		dc = wx.ScreenDC()
		dc.SetFont(font)
		title.SetMinSize(dc.GetTextExtent(title_text))
		s.Add(title, flag=wx.ALIGN_CENTRE|wx.EXPAND|wx.BOTTOM, border=5)
		s.Add(wx.StaticText(p, -1, 'Welcome to the new version of Cura.'))
		s.Add(wx.StaticText(p, -1, '(This dialog is only shown once)'))
		s.Add(wx.StaticLine(p), flag=wx.EXPAND|wx.TOP|wx.BOTTOM, border=10)
		s.Add(wx.StaticText(p, -1, 'Take a look at what is new and fixed here:'))
		s.Add(wx.HyperlinkCtrl(p, -1, newVersionDialog.url))

		s.Add(wx.StaticLine(p), flag=wx.EXPAND|wx.TOP|wx.BOTTOM, border=10)
		button = wx.Button(p, -1, 'Ok')
		self.Bind(wx.EVT_BUTTON, self.OnOk, button)
		s.Add(button, flag=wx.TOP|wx.ALIGN_RIGHT, border=5)

		self.Fit()
		self.Centre()
		self.Layout()

	def OnOk(self, e):
		self.Close()

	def OnClose(self, e):
		self.Destroy()

@@ -893,23 +893,23 @@
 new 
-version
+release
  of Cura
 .'))
@@ -904,17 +904,33 @@
  of Cura
-.
+ LulzBot Edition!
 '))%0A%09%09s.
@@ -1095,22 +1095,20 @@
 1, '
-Take a look at
+Want to know
  wha
@@ -1124,18 +1124,95 @@
 and 
-fixed here
+cool in this version?'))%0A%09%09s.Add(wx.StaticText(p, -1, 'Click here for a list of changes
 :'))

Improve text on new version dialog