| 1 |
using System; |
| 2 |
|
| 3 |
namespace FrankenDrift.Glue |
| 4 |
{ |
| 5 |
public enum QueryResult |
| 6 |
{ |
| 7 |
YES, |
| 8 |
NO, |
| 9 |
CANCEL |
| 10 |
} |
| 11 |
|
| 12 |
public interface UIGlue |
| 13 |
{ |
| 14 |
public void ErrMsg(string message, Exception ex = null); |
| 15 |
public void MakeNote(string msg); |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
public void EnableButtons(); |
| 26 |
|
| 27 |
public void SetGameName(string name); |
| 28 |
|
| 29 |
|
| 30 |
public void ScrollToEnd(); |
| 31 |
|
| 32 |
public bool AskYesNoQuestion(string question, string title = null); |
| 33 |
public void ShowInfo(string info, string title = null); |
| 34 |
|
| 35 |
|
| 36 |
public string QuerySavePath(); |
| 37 |
public string QueryRestorePath(); |
| 38 |
public QueryResult QuerySaveBeforeQuit(); |
| 39 |
|
| 40 |
public void OutputHTML(string source); |
| 41 |
|
| 42 |
public void InitInput(); |
| 43 |
|
| 44 |
public void ShowCoverArt(byte[] img); |
| 45 |
|
| 46 |
public void DoEvents(); |
| 47 |
public string GetAppDataPath(); |
| 48 |
public string GetExecutableLocation(); |
| 49 |
public string GetExecutablePath(); |
| 50 |
public string GetClaimedAdriftVersion(); |
| 51 |
} |
| 52 |
|
| 53 |
public interface frmRunner |
| 54 |
{ |
| 55 |
public Infragistics.Win.UltraWinToolbars.UltraToolbarsManager UTMMain { get; } |
| 56 |
public RichTextBox txtOutput { get; } |
| 57 |
public RichTextBox txtInput { get; } |
| 58 |
|
| 59 |
public void ReloadMacros(); |
| 60 |
public void SaveLayout(); |
| 61 |
public void SetBackgroundColour(); |
| 62 |
public void UpdateStatusBar(string desc, string score, string user); |
| 63 |
|
| 64 |
public bool Locked { get; } |
| 65 |
|
| 66 |
public void SetInput(string str) => txtInput.Text = str; |
| 67 |
public void SubmitCommand(); |
| 68 |
|
| 69 |
public void Close(); |
| 70 |
} |
| 71 |
|
| 72 |
public interface RichTextBox |
| 73 |
{ |
| 74 |
public void Clear(); |
| 75 |
public int TextLength { get; } |
| 76 |
public string Text { get; set; } |
| 77 |
public string SelectedText { get; set; } |
| 78 |
public int SelectionStart { get; set; } |
| 79 |
public int SelectionLength { get; set; } |
| 80 |
|
| 81 |
public bool IsDisposed { get; } |
| 82 |
} |
| 83 |
} |