2009-04-19 18:07:22 +00:00
|
|
|
|
|
|
|
#region ================== Copyright (c) 2007 Pascal vd Heiden
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
|
|
|
|
* This program is released under GNU General Public License
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region ================== Namespaces
|
|
|
|
|
|
|
|
using System;
|
2016-05-06 08:47:30 +00:00
|
|
|
using System.Runtime.InteropServices;
|
2009-04-19 18:07:22 +00:00
|
|
|
using System.Windows.Forms;
|
2016-12-28 12:24:58 +00:00
|
|
|
using CodeImp.DoomBuilder.Config;
|
2009-04-19 18:07:22 +00:00
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
namespace CodeImp.DoomBuilder.Windows
|
|
|
|
{
|
|
|
|
internal partial class AboutForm : DelayedForm
|
|
|
|
{
|
|
|
|
// Constructor
|
|
|
|
public AboutForm()
|
|
|
|
{
|
|
|
|
// Initialize
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
|
|
// Show version
|
2015-01-06 11:49:06 +00:00
|
|
|
#if DEBUG
|
|
|
|
version.Text = Application.ProductName + " [DEVBUILD]";
|
|
|
|
#else
|
2016-12-28 12:24:58 +00:00
|
|
|
version.Text = Application.ProductName + " v" + Application.ProductVersion + " (" + General.CommitHash + ")";
|
2015-01-06 11:49:06 +00:00
|
|
|
#endif
|
2009-04-19 18:07:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Launch Doom Builder website
|
|
|
|
private void builderlink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
|
|
|
{
|
|
|
|
General.OpenWebsite("http://" + builderlink.Text);
|
|
|
|
}
|
|
|
|
|
2009-04-25 06:55:17 +00:00
|
|
|
// Launch CodeImp website
|
|
|
|
private void codeimplink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
|
|
|
{
|
|
|
|
General.OpenWebsite("http://" + codeimplink.Text);
|
|
|
|
}
|
|
|
|
|
2013-09-11 09:47:53 +00:00
|
|
|
//mxd
|
2016-12-27 10:12:10 +00:00
|
|
|
private void zdoomorglink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
2014-12-03 23:15:26 +00:00
|
|
|
{
|
2017-01-15 04:30:53 +00:00
|
|
|
General.OpenWebsite("http://forum.zdoom.org/viewtopic.php?f=44&t=54957");
|
2013-09-11 09:47:53 +00:00
|
|
|
}
|
2012-07-17 22:51:55 +00:00
|
|
|
|
2016-12-27 10:12:10 +00:00
|
|
|
//mxd
|
|
|
|
private void gitlink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
|
|
|
{
|
2017-01-15 04:30:53 +00:00
|
|
|
General.OpenWebsite("https://github.com/jewalky/GZDoom-Builder-Bugfix");
|
2016-12-27 10:12:10 +00:00
|
|
|
}
|
|
|
|
|
2009-04-19 18:07:22 +00:00
|
|
|
// This copies the version number to clipboard
|
|
|
|
private void copyversion_Click(object sender, EventArgs e)
|
|
|
|
{
|
2016-05-06 08:47:30 +00:00
|
|
|
try //mxd
|
|
|
|
{
|
2016-12-28 12:24:58 +00:00
|
|
|
Clipboard.SetDataObject(Application.ProductVersion + " (" + General.CommitHash + ")", true, 5, 200);
|
2016-05-06 08:47:30 +00:00
|
|
|
}
|
|
|
|
catch(ExternalException)
|
|
|
|
{
|
|
|
|
General.Interface.DisplayStatus(StatusType.Warning, "Failed to perform a Clipboard operation...");
|
|
|
|
}
|
2012-11-11 21:52:08 +00:00
|
|
|
}
|
2009-04-19 18:07:22 +00:00
|
|
|
}
|
|
|
|
}
|