2009-07-20 15:16:40 +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;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.ComponentModel;
|
|
|
|
using System.Drawing;
|
|
|
|
using System.Text;
|
|
|
|
using System.Windows.Forms;
|
|
|
|
using Microsoft.Win32;
|
|
|
|
using System.Diagnostics;
|
|
|
|
using CodeImp.DoomBuilder.Actions;
|
|
|
|
using CodeImp.DoomBuilder.Data;
|
|
|
|
using CodeImp.DoomBuilder.Config;
|
|
|
|
using CodeImp.DoomBuilder.Rendering;
|
|
|
|
using System.Drawing.Imaging;
|
|
|
|
using System.Drawing.Drawing2D;
|
|
|
|
using SlimDX.Direct3D9;
|
|
|
|
using SlimDX;
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
namespace CodeImp.DoomBuilder.Controls
|
|
|
|
{
|
|
|
|
public class Docker
|
|
|
|
{
|
|
|
|
#region ================== Variables
|
|
|
|
|
|
|
|
private string shortname;
|
|
|
|
private string fullname;
|
|
|
|
private string title;
|
2009-07-22 15:16:28 +00:00
|
|
|
private Control control;
|
2009-07-20 15:16:40 +00:00
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region ================== Variables
|
|
|
|
|
|
|
|
public string Name { get { return shortname; } }
|
|
|
|
internal string FullName { get { return fullname; } }
|
|
|
|
public string Title { get { return title; } }
|
2009-07-22 15:16:28 +00:00
|
|
|
public Control Control { get { return control; } }
|
2009-07-20 15:16:40 +00:00
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region ================== Constructor
|
|
|
|
|
|
|
|
// Constructor
|
2009-07-22 15:16:28 +00:00
|
|
|
public Docker(string name, string title, Control control)
|
2009-07-20 15:16:40 +00:00
|
|
|
{
|
|
|
|
this.shortname = name;
|
|
|
|
this.title = title;
|
2009-07-22 15:16:28 +00:00
|
|
|
this.control = control;
|
2009-07-20 15:16:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region ================== Methods
|
|
|
|
|
|
|
|
// This makes the full name
|
|
|
|
internal void MakeFullName(string prefix)
|
|
|
|
{
|
|
|
|
fullname = prefix + "_" + shortname;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
}
|