2012-08-26 19:03:12 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Windows.Forms;
|
2012-09-08 22:03:13 +00:00
|
|
|
|
using ANX.ContentCompiler.GUI.Dialogues;
|
2012-09-10 19:10:39 +00:00
|
|
|
|
using ANX.Framework.NonXNA.Development;
|
2012-08-26 19:03:12 +00:00
|
|
|
|
|
|
|
|
|
namespace ANX.ContentCompiler.GUI.States
|
|
|
|
|
{
|
2012-09-10 19:10:39 +00:00
|
|
|
|
[Developer("SilentWarrior/Eagle Eye Studios")]
|
|
|
|
|
[PercentageComplete(90)] //TODO: Add click event to open preview window!
|
|
|
|
|
[TestState(TestStateAttribute.TestState.Tested)]
|
2012-08-26 19:03:12 +00:00
|
|
|
|
public partial class EditingState : UserControl
|
|
|
|
|
{
|
|
|
|
|
public EditingState()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
2012-08-27 19:09:10 +00:00
|
|
|
|
|
|
|
|
|
private void EditingStateLoad(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
ForeColor = Settings.ForeColor;
|
|
|
|
|
BackColor = Settings.MainColor;
|
|
|
|
|
}
|
|
|
|
|
|
2012-09-01 16:30:35 +00:00
|
|
|
|
private void ArrowButtonAddFilesClick(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
using (var dlg = new OpenFileDialog())
|
|
|
|
|
{
|
|
|
|
|
dlg.Multiselect = true;
|
|
|
|
|
dlg.Title = "Add files";
|
|
|
|
|
if (dlg.ShowDialog() == DialogResult.OK)
|
|
|
|
|
MainWindow.Instance.AddFiles(dlg.FileNames);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2012-09-08 22:03:13 +00:00
|
|
|
|
private void ArrowButtonCreateFolderClick(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
using (var dlg = new NewFolderScreen())
|
|
|
|
|
{
|
|
|
|
|
if (dlg.ShowDialog() == DialogResult.OK)
|
|
|
|
|
{
|
|
|
|
|
MainWindow.Instance.AddFolder(dlg.textBoxName.Text);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2012-09-09 15:44:49 +00:00
|
|
|
|
private void ArrowButtonBuildClick(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
MainWindow.Instance.BuildProject(sender, e);
|
|
|
|
|
}
|
2012-09-22 17:44:30 +00:00
|
|
|
|
|
|
|
|
|
private void ArrowButtonPreviewClick(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
MainWindow.Instance.ShowPreview();
|
|
|
|
|
}
|
2012-08-26 19:03:12 +00:00
|
|
|
|
}
|
2012-09-10 19:10:39 +00:00
|
|
|
|
}
|