Files
LuaCsForBarotraumaEP/Libraries/MonoGame.Framework/Src/Tools/Pipeline/Common/IView.cs
T
2019-06-25 16:00:44 +03:00

77 lines
2.0 KiB
C#

// MonoGame - Copyright (C) The MonoGame Team
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace MonoGame.Tools.Pipeline
{
public enum AskResult
{
Yes,
No,
Cancel
}
public interface IView
{
void Attach(IController controller);
void Invoke(Action action);
AskResult AskSaveOrCancel();
bool AskSaveName(ref string filePath, string title);
bool AskOpenProject(out string projectFilePath);
bool AskImportProject(out string projectFilePath);
void ShowError(string title, string message);
void ShowMessage(string message);
bool ShowDeleteDialog(List<IProjectItem> items);
bool ShowEditDialog(string title, string text, string oldname, bool file, out string newname);
void BeginTreeUpdate();
void SetTreeRoot(IProjectItem item);
void AddTreeItem(IProjectItem item);
void RemoveTreeItem(IProjectItem item);
void UpdateTreeItem(IProjectItem item);
void EndTreeUpdate();
void UpdateProperties();
void OutputAppend(string text);
void OutputClear();
bool ChooseContentFile(string initialDirectory, out List<string> files);
bool ChooseContentFolder(string initialDirectory, out string folder);
bool ChooseItemTemplate(string folder, out ContentItemTemplate template, out string name);
bool CopyOrLinkFile(string file, bool exists, out IncludeType action, out bool applyforall);
bool CopyOrLinkFolder(string folder, bool exists, out IncludeType action, out bool applyforall);
Process CreateProcess(string exe, string commands);
void UpdateCommands(MenuInfo info);
void UpdateRecentList(List<string> recentList);
void SetClipboard(string text);
}
}