forked from MonoGame/MonoGame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIView.cs
81 lines (51 loc) · 1.99 KB
/
IView.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// 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 enum CopyAction
{
Copy,
Link,
Skip
}
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 CopyAction action, out bool applyforall);
bool CopyOrLinkFolder(string folder, bool exists, out CopyAction action, out bool applyforall);
Process CreateProcess(string exe, string commands);
void UpdateCommands(MenuInfo info);
void UpdateRecentList(List<string> recentList);
}
}